* @license http://www.gnu.org/licenses/gpl-2.0.html GPL License 2 * @version 5.3.8.1 * @link http://www.easyphp.org */ include("functions.inc.php"); if (isset($HTTP_GET_VARS)){ while(list($name, $value) = each($HTTP_GET_VARS)) { $$name = $value; } } if (!isset($_GET['to'])) $_GET['to'] = ''; if (!isset($_POST['to'])) $_POST['to'] = ''; if (!isset($_GET['exts'])) $_GET['exts'] = ''; if (!isset($_GET['exts'])) $directory = ''; if ($_GET['to'] == "phpinfo") { ob_start(); phpinfo(); $info = ob_get_contents(); ob_end_clean(); preg_match_all("=]*>(.*)=siU", $info, $tab); $val_phpinfo = $tab[1][0]; $val_phpinfo = str_replace(";", "; ", $val_phpinfo); $val_phpinfo = str_replace(",", ", ", $val_phpinfo); } // Port initialization if ($_SERVER['SERVER_PORT'] == '8887') { $source = "../conf_files/httpd.conf"; $httpdconf = file_get_contents($source); // Backup old httpd.conf $backup_httpdconf = "../conf_files/httpd_" . date("Y-m-d@U") . ".conf"; $fp_backup = fopen($backup_httpdconf, 'w'); fputs($fp_backup, $httpdconf); fclose($fp_backup); // Search and replace if (!check_port(80)) { $new_port = 80; } elseif (!check_port(8080)) { $new_port = 8080; } elseif (!check_port(8888)) { $new_port = 8888; } $search = ':' . $_SERVER['SERVER_PORT']; $replace = ':' . $new_port; $httpdconf = str_replace($search, $replace, $httpdconf); // Save new httpd.conf $fp_update = fopen('../conf_files/httpd.conf', 'w'); fputs($fp_update, $httpdconf); fclose($fp_update); $redirect = "http://" . $_SERVER['SERVER_NAME'] . ":" . $new_port . "/home/index.php"; sleep(2); header("Location: " . $redirect); exit; } $www = @opendir($_SERVER["DOCUMENT_ROOT"]); $www_files = array(); while ($file = @readdir($www)){ if (($file != '..') && ($file != '.') && ($file != '') && (@is_dir($_SERVER["DOCUMENT_ROOT"]."/".$file))){ // XSS vulnerability fixed // http://blog.madpowah.org/archives/2011/07/index.html#e2011-07-20T00_31_36.txt $www_files[] = addslashes($file); } sort($www_files); } @closedir($www); clearstatcache(); $modules = @opendir("../modules"); $modules_files = array(); while ($modules_file = @readdir($modules)){ if (($modules_file != '..') && ($modules_file != '.') && ($modules_file != '') && (@is_dir("../modules/".$modules_file)) && @file_exists("../modules/".$modules_file."/easyphp+.php")){ $modules_files[] = $modules_file; } sort($modules_files); } @closedir($modules); clearstatcache(); include("i18n.inc.php"); include("alias.inc.php"); include("versions.inc.php"); ?> [EasyPHP] - <?php echo $administration ?>
:help     :
:
:
:
root
:
 help
:
help

"; } elseif ($_POST['alias_link'] == "") { echo "
« $back $alias_warning_2
"; } elseif (($_POST['alias_link'] != "") && (!is_dir($_POST['alias_link']))) { echo "
« $back $alias_warning_3
"; } elseif ($name_test == FALSE) { echo "
« $back $alias_warning_4
"; } ?>

()

localwebRoot
"; $i = 1; while (($i < $nbycol) AND (key($www_files) !== null)) { echo "localweb" . cut(current($www_files),40) . "
"; next($www_files); $i++; } echo "
"; } if (count($www_files) != 0) echo "
"; ?>

" . $alias_none . "". $menu_alias_add .""; } else { list_alias(); } //================================================================================================== //= MODULES ======================================================================================== ?>

MODULES

" . $module_none . "". $menu_module_add .""; } else { foreach ($modules_files as $file) { include("../modules/$file/easyphp+.php"); } } //================================================================================================== ?>
EasyPHP
  • PHP
  • Apache
  • MySQL
  • PhpMyAdmin
  • Xdebug