» =$US['pconfig-head']?>
=$US['pconfig-conf']?>
# -- Determines Apache version. if (preg_match("/Apache\/2/i", $_SERVER["SERVER_SOFTWARE"])) { $Apache2 = True; } else { $Apache2 = False; } # -- # -- Determines PHP mode if (!preg_match("/^cgi/",php_sapi_name())) { $PHPmod = True; } else { $PHPmod = False; } # -- $PHP = new Config ("/usr/local/PHP/php.ini",";"); $PHP->Var_Name =array ("safe_mode =","expose_php =", "register_globals =", "max_execution_time =", "memory_limit =", "display_errors =", "post_max_size =", "upload_max_filesize ="); $PHP->Var_Text =array ( "".$US['pconfig-smode']."","".$US['pconfig-ssig']."", "".$US['pconfig-rg']."", "".$US['pconfig-mtexec']."","".$US['pconfig-mmexec']."","".$US['pconfig-perror']."", "".$US['pconfig-mpsize']."","".$US['pconfig-musize'].""); $PHP->Var_Help =array ( "http://php.benscom.com/manual/en/features.safe-mode.php", "http://www.php.net/manual/en/security.hiding.php#security.hiding", "http://www.php.net/release_4_1_0.php", "http://www.php.net/manual/en/configuration.php#ini.max-execution-time", "http://www.php.net/manual/en/configuration.php#ini.memory-limit", "http://www.php.net/manual/en/configuration.php#ini.display-errors", "http://www.php.net/manual/en/features.file-upload.php#features.file-upload.post-method", "http://www.php.net/manual/en/configuration.php#ini.upload-max-filesize"); //-------------------------------------------------------------------- // import_request_variables("gP", "st"); $step=$HTTP_POST_VARS['Submit']; if ($step == "next") { echo "".$US['pconfig-text-0']."
"; } else { if ($step == "Save") { $PHP->replace_values ($HTTP_POST_VARS); echo "".$US['pconfig-text-1']."
"; } ?>if ($PHPmod==True) { echo "
".$US['aconfig-module']."
"; } else { echo "".$US['aconfig-cgi']."
"; } } //-------------------------------------------------------------------- class Config { var $contents; var $name; var $comments; var $Var_Name; var $Var_Text; var $Var_Help; var $classnum; function Config ($file_name, $comments) { $this->comments=$comments; $this->name=$file_name; $fd = fopen ($this->name, "r"); $this->contents = fread ($fd, filesize ($file_name)); fclose ($fd); $this->classnumber=$GLOBALS["$Configclassnumber"]=$GLOBALS["$Configclassnumber"]+1; } function f_write () { $fd = fopen ($this->name, "w"); $ok = fwrite ($fd, $this->contents); fclose ($fd); } function echo_values () { include "includes/lang/".file_get_contents("includes/.lang").".php"; echo "$Var_Text: |
"; if ($Var_Help != "") {echo "".$US['pconfig-help']."";}; echo " "; echo " | ";
echo "