Preinstall Check
| ";
echo "Checking PHP Version... " . $ivo . PHP_VERSION . $sc . " ";
if (version_compare(PHP_VERSION, "5.0") >= 0) echo $ivo . "(ok)" . $sc;
else {
echo $ivf . "(5.0 or higher required)" . $sc;
$fatal = true;
}
echo " |
";
echo "Checking System Information... " . $ivo . PHP_OS . $sc . " |
";
echo "Checking PHP Server API... " . $ivo . php_sapi_name() . $sc . " |
";
echo "Checking Path to 'php.ini'... " . $ivo . PHP_CONFIG_FILE_PATH . $sc . " |
";
//$curlversion = curl_version();
echo "Checking Curl Version... " . $ivo . curl_version() . " (ok)". $sc." |
";;
echo $ivo . (($curlsupport) ? "$curlversion" : " $ivf This program requires Curl extension. Please recompile your PHP with Curl Support.") . $sc;
echo "";
/*echo "Checking PHP GD extension... ";
echo $ivo . (($gdv) ? "On" : " $ivf This program requires PHP GD extension. Please recompile your PHP with GD Support.") . $sc;
echo " |
";
if ($errmess_gdsupport != "") {
echo "Checking currently installed GD library ... ";
echo $ivo . (($gdvsupport) ? "On" : " $ivf $errmess_gdsupport.") . $sc;
echo " |
";
} */
echo "Checking safe_mode... ";
echo ((!empty($val1) || $val1 == 1) ? $ivf . "On-Please turn off safe_mode in the php.ini" : $ivo . "Off") . $sc;
echo " |
";
/*echo "Checking short_tags... ";
echo ((!empty($val2) || $val2 == 1) ?$ivo . "On" : $ivf . "Off-Please turn on short_tags in the php.ini") . $sc;
echo " |
";
echo "Checking file_uploads...";
echo ((!empty($val3) || $val3 == 1) ? $ivo . "On" : $ivf . "Off - Please turn on file_uplaods in the php.ini file") . $sc;
echo " |
";
*/
echo "Checking open base directory...";
echo (( (!empty($val4) || $val4 == 1) and $openbasedircheck != "1") ? $ivf . "On - $ivf Please upload a test file " : $ivo . "Off ") . $sc . " |
";
echo "";
if ((!empty($val4) || $val4 == 1) and (!empty($val3) || $val3 == 1)) {
if ($_POST["submittest"] == "Upload") {
echo $errormessageforopenbasedir;
$_SESSION['sess_openbasedircheck'] = $openbasedircheck;
}
if ($openbasedircheck != "1") {
?>
|
";
if ((! empty($val1) || $val1 == 1) or (empty($val2) || $val2 != 1) or (empty($val3) || $val3 != 1) or ! $gdv /*or $openbasedircheck != '1'*/) {
echo " " . $ivf . "Fatal errors detected. Please correct the above red items and reload. |
";
}
?>