PHP_SELF 를 SCRIPT_NAME 으로 변경

This commit is contained in:
chicpro
2015-06-24 17:02:29 +09:00
parent b4b24aadfd
commit 808ac0f0e6
33 changed files with 107 additions and 108 deletions

View File

@ -3,7 +3,7 @@ define('G5_IS_ADMIN', true);
include_once ('../../common.php');
include_once(G5_ADMIN_PATH.'/admin.lib.php');
if (!strstr($_SERVER['PHP_SELF'], 'install.php')) {
if (!strstr($_SERVER['SCRIPT_NAME'], 'install.php')) {
if(!mysql_num_rows(mysql_query(" show tables like '{$g5['sms5_config_table']}' ")))
goto_url('install.php');