"; $ivf = ""; $sc = ""; $val1 = ini_get("safe_mode"); $val2 = ini_get("short_open_tag"); $val3 = ini_get("file_uploads"); $val4 = ini_get("open_basedir"); /* $openbasedircheck = "0" ; if ((!empty($val4) || $val4 == 1) and (!empty($val3) || $val3 == 1)) { if ($_POST["submittest"] == "Upload") { $uploadpath = substr($_FILES['testupload']['tmp_name'], 0, strlen($_FILES['testupload']['tmp_name']) - strlen(basename($_FILES['testupload']['tmp_name']))-1); $uploadpatharray = explode("/", $uploadpath); $openbasedirarray = explode(":", $val4); $existflag = 0; $checkitem = ""; for($i = 1;$i < count($uploadpatharray);$i++) { $checkitem = $checkitem . "/" . $uploadpatharray[$i]; if (! in_array($checkitem, $openbasedirarray) and ! in_array($checkitem . "/", $openbasedirarray)) {; } else { $existflag = 1; break; } } if ($existflag == 1) { $openbasedircheck = "1"; } else { $errormessageforopenbasedir = "
  " . $ivf . "Please add '$uploadpath' in openbase directory entry of your configuration file.[contact your hosting provider]"; } $_SESSION['sess_openbasedircheck'] = $openbasedircheck; } } else { $_SESSION['sess_openbasedircheck'] = "1"; } */ $curlsupport = true; if (!function_exists('curl_version')) { $curlsupport = false; } $domxmlsupport = true; if (!function_exists('xmldoc')) { $domxmlsupport = false; } if ((! empty($val1) || $val1 == 1) or (empty($val2) || $val2 != 1) or (empty($val3) || $val3 != 1) or !$curlsupport or $_SESSION['sess_openbasedircheck'] != '1') { $serverconfiguration = "FAILURE"; } else { $serverconfiguration = "OK"; } /***********Server configuration check ends here*****************/ ?>
 
Server Configuration OK!!
 
"; echo ""; echo ""; echo ""; echo ""; //$curlversion = curl_version(); echo "";; echo $ivo . (($curlsupport) ? "$curlversion" : " $ivf This program requires Curl extension. Please recompile your PHP with Curl Support.") . $sc; echo ""; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; if ((! empty($val1) || $val1 == 1) or (empty($val2) || $val2 != 1) or (empty($val3) || $val3 != 1) /*or $openbasedircheck != '1'*/) { echo ""; } ?>
Preinstall Check

Checking PHP Version... " . $ivo . PHP_VERSION . $sc . " "; if (version_compare(PHP_VERSION, "4.3.0") >= 0) echo $ivo . "(ok)" . $sc; else { echo $ivf . "(4.3.0 or higher required)" . $sc; $fatal = true; } echo "
Checking System Information... " . $ivo . PHP_OS . $sc . "
Checking PHP Server API... " . $ivo . php_sapi_name() . $sc . "
Checking Path to 'php.ini'... " . $ivo . PHP_CONFIG_FILE_PATH . $sc . "
Checking Curl Version... " . $ivo . curl_version() . " (ok)". $sc."
Checking DOMXML extension... "; if($domxmlsupport == 1) { echo $ivo."On".$sc; } else { echo $ivf."This program requires DOMXML extension. Please recompile your PHP with DOMXML support".$sc; } //echo $ivo . (($gdv) ? "On" : " $ivf This program requires PHP GD extension. Please recompile your PHP with GD Support.") . $sc; echo "
Checking safe_mode... "; echo ((!empty($val1) || $val1 == 1) ? $ivf . "On-Please turn off safe_mode in the php.ini" : $ivo . "Off") . $sc; echo "
Checking short_tags... "; echo ((!empty($val2) || $val2 == 1) ?$ivo . "On" : $ivf . "Off-Please turn on short_tags in the php.ini") . $sc; 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 "
Checking open base directory..."; echo (( (!empty($val4) || $val4 == 1) and $openbasedircheck != "1") ? $ivf . "On - $ivf Please upload a test file " : $ivo . "Off ") . $sc . "
"; if ((!empty($val4) || $val4 == 1) and (!empty($val3) || $val3 == 1)) { if ($_POST["submittest"] == "Upload") { echo $errormessageforopenbasedir; $_SESSION['sess_openbasedircheck'] = $openbasedircheck; } if ($openbasedircheck != "1") { ?>

" . $ivf . "Fatal errors detected. Please correct the above red items and reload.