diff --git a/www/index.php b/www/index.php index 63c8c1fdb5..e1407ecdfc 100644 --- a/www/index.php +++ b/www/index.php @@ -49,14 +49,20 @@ if(isset($_GET['mode']) and $_GET['mode'] == 'getconfig') die(helper::removeUTF8 /* Check for need upgrade. */ $config->installedVersion = $common->loadModel('setting')->getVersion(); if(!(!is_numeric($config->version{0}) and $config->version{0} != $config->installedVersion{0}) and version_compare($config->version, $config->installedVersion, '>')) die(header('location: upgrade.php')); + +/* Remove install.php and upgrade.php. */ if(file_exists('install.php') or file_exists('upgrade.php')) { $wwwDir = dirname(__FILE__); - echo ""; - echo "

目录 {$wwwDir} 下存在 install.php 和 upgrade.php 文件,为了系统的安全,请您删掉这两个文件。

"; - echo "

Please remove install.php and upgrade.php for security reason.

"; - echo ''; - exit; + echo << + + +
安全期间,请删除{$wwwDir}目录下的install.php和upgrade.php文件。
+Please remove install.php and upgrade.php under $wwwDir dir for security reason.
+ +EOT; + die(); } $app->parseRequest();