Файл: Space race/classes/prereqs.php
Строк: 41
<?php
/**
* Checks server for required PHP extensions.
*
*/
/**
* Controls showing the PHP Gettext warning message on every page.
*
* Set this to false to hide the warning.
* Eg: $getTextError = false;
*/
$getTextError = true;
try {
/** Gettext. */
if ($getTextError)
if ( !function_exists('gettext') )
throw new Exception('
<h4 class="alert-warning">Warning, PHP Gettext not enabled</h4>
PHP Gettext is not required. If you would like to disable this message, open <code>prereqs.php</code> and set getTextError to false.');
/** CURL. */
if ( !function_exists('curl_init') )
throw new Exception('This script requires the CURL PHP extension.');
/** JSON. */
if ( !function_exists('json_decode') )
throw new Exception('This script requires the JSON PHP extension.');
} catch (Exception $e) {
$error = sprintf("<div class='alert alert-warning'>%s</div>", $e->getMessage());
}