diff --git a/_common.php b/_common.php index fecd45f7..0d95a8ad 100644 --- a/_common.php +++ b/_common.php @@ -3,7 +3,7 @@ if(!defined('ROOT')){ define('ROOT', '.'); } require_once(ROOT.'/f_config/config.php'); -require_once(ROOT.W.F_CONFIG.W.APP.PHP); -require_once(ROOT.W.F_FUNC.W.FUNC.PHP); +require_once(ROOT.'/f_config/app.php'); +require_once(ROOT.'/f_func/func.php'); CustomHeader(); diff --git a/d_setting/_common.php b/d_setting/_common.php index 25378505..eac8582e 100644 --- a/d_setting/_common.php +++ b/d_setting/_common.php @@ -3,7 +3,7 @@ if(!defined('ROOT')){ define('ROOT', '..'); } require_once(ROOT.'/f_config/config.php'); -require_once(ROOT.W.F_CONFIG.W.APP.PHP); -require_once(ROOT.W.F_FUNC.W.FUNC.PHP); +require_once(ROOT.'/f_config/app.php'); +require_once(ROOT.'/f_func/func.php'); CustomHeader(); diff --git a/f_config/DB.php b/f_config/DB.php index 73bbf2da..50a9f863 100644 --- a/f_config/DB.php +++ b/f_config/DB.php @@ -1,6 +1,6 @@ isExist()) { require_once($SETTING->getSettingFile()); diff --git a/f_config/MAIL.php b/f_config/MAIL.php index 3ac77b70..ab5da471 100644 --- a/f_config/MAIL.php +++ b/f_config/MAIL.php @@ -1,7 +1,7 @@ isExist()) { $MAIL = new _Mail(); diff --git a/f_config/SESSION.php b/f_config/SESSION.php index c619ac35..fb08d019 100644 --- a/f_config/SESSION.php +++ b/f_config/SESSION.php @@ -1,14 +1,14 @@ IsLoggedIn() == false) { -// echo(''); - header ("Location: ".ROOT.W.'i_login/login.php'); +// echo(''); + header ("Location: ".ROOT.'/i_login/login.php'); exit(1); - //echo(''); + //echo(''); //exit(1); } diff --git a/f_config/SETTING.php b/f_config/SETTING.php index 05e0bde1..b0b4c376 100644 --- a/f_config/SETTING.php +++ b/f_config/SETTING.php @@ -1,6 +1,6 @@ ['체', 'white', new _Setting(__DIR__.ROOT.W.'che')], - 'kwe'=>['퀘', 'yellow', new _Setting(__DIR__.ROOW.W.'kwe')], - 'pwe'=>['풰', 'orange', new _Setting(__DIR__.ROOW.W.'pwe')], - 'twe'=>['퉤', 'magenta', new _Setting(__DIR__.ROOW.W.'twe')], - 'hwe'=>['훼', 'red', new _Setting(__DIR__.ROOW.W.'hwe')] + 'che'=>['체', 'white', new _Setting(__DIR__.ROOT.'/che')], + 'kwe'=>['퀘', 'yellow', new _Setting(__DIR__.ROOT.'/kwe')], + 'pwe'=>['풰', 'orange', new _Setting(__DIR__.ROOT.'/pwe')], + 'twe'=>['퉤', 'magenta', new _Setting(__DIR__.ROOT.'/twe')], + 'hwe'=>['훼', 'red', new _Setting(__DIR__.ROOT.'/hwe')] ]; diff --git a/f_func/_common.php b/f_func/_common.php index b25b4786..c95ed0e0 100644 --- a/f_func/_common.php +++ b/f_func/_common.php @@ -3,8 +3,8 @@ if(!defined('ROOT')){ define('ROOT', '..'); } require_once(ROOT.'/f_config/config.php'); -require_once(ROOT.W.F_CONFIG.W.APP.PHP); -require_once(ROOT.W.F_FUNC.W.FUNC.PHP); +require_once(ROOT.'/f_config/app.php'); +require_once(ROOT.'/f_func/func.php'); CustomHeader(); diff --git a/f_func/class._Chat.php b/f_func/class._Chat.php deleted file mode 100644 index 60a805da..00000000 --- a/f_func/class._Chat.php +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/f_install/install1Post.php b/f_install/install1Post.php index 96c6a175..124469b9 100644 --- a/f_install/install1Post.php +++ b/f_install/install1Post.php @@ -12,11 +12,11 @@ $mailPw = $_POST['mailPw']; $mailAddr = $_POST['mailAddr']; -require_once(ROOT.W.F_FUNC.W.'class._DB.php'); -require_once(ROOT.W.F_FUNC.W.'class._String.php'); +require_once(ROOT.'/f_func/class._DB.php'); +require_once(ROOT.'/f_func/class._String.php'); -if(file_exists(ROOT.W.D_SETTING.W.'conf.php')) ErrorToScreen('이미 설치되어 있습니다. 재설치하려면 설정 파일을 지우세요.'); -if(fileperms(ROOT.W.D_SETTING.W) != 040707 && fileperms(ROOT.W.D_SETTING.W) != 040777) ErrorToScreen('설정 디렉토리 권한을 707 또는 777로 설정해주세요.'); +if(file_exists(ROOT.'/d_setting/conf.php')) ErrorToScreen('이미 설치되어 있습니다. 재설치하려면 설정 파일을 지우세요.'); +if(fileperms(ROOT.'/d_setting') != 040707 && fileperms(ROOT.'/d_setting') != 040777) ErrorToScreen('설정 디렉토리 권한을 707 또는 777로 설정해주세요.'); $db = getRootDB(); //로그 등 삭제 @@ -46,10 +46,10 @@ foreach($querys as $query) { } // 파일로 DB 정보 저장 -$file = @fopen(ROOT.W.D_SETTING.W.'conf.php', 'w') or ErrorToScreen('설정 실패. 디렉토리의 퍼미션을 707로 주십시요'); +$file = @fopen(ROOT.'/d_setting/conf.php', 'w') or ErrorToScreen('설정 실패. 디렉토리의 퍼미션을 707로 주십시요'); @fwrite($file, " diff --git a/f_install/install2Post.php b/f_install/install2Post.php index f35ba763..a7e829af 100644 --- a/f_install/install2Post.php +++ b/f_install/install2Post.php @@ -6,8 +6,8 @@ $id = $_POST['id']; $pw = $_POST['pw']; $pw = md5($pw.$pw); -require_once(ROOT.W.F_FUNC.W.'class._Time.php'); -require_once(ROOT.W.F_CONFIG.W.DB.PHP); +require_once(ROOT.'/f_func/class._Time.php'); +require_once(ROOT.'/f_config/DB.php'); // 시스템정보 1개 등록 $db->insert('SYSTEM', array( diff --git a/f_retrival/_common.php b/f_retrival/_common.php index 9ed1eefa..f3837d1b 100644 --- a/f_retrival/_common.php +++ b/f_retrival/_common.php @@ -3,8 +3,8 @@ if(!defined('ROOT')){ define('ROOT', '.'); } require_once(ROOT.'/f_config/config.php'); -require_once(ROOT.W.F_CONFIG.W.APP.PHP); -require_once(ROOT.W.F_FUNC.W.FUNC.PHP); +require_once(ROOT.'/f_config/app.php'); +require_once(ROOT.'/f_func/func.php'); CustomHeader(); diff --git a/i_entrance/Frame.php b/i_entrance/Frame.php index 310b7005..eb6ef598 100644 --- a/i_entrance/Frame.php +++ b/i_entrance/Frame.php @@ -1,7 +1,7 @@ queryFirstRow('SELECT `NOTICE` FROM `SYSTEM` WHERE `NO`=1'); @@ -23,10 +23,10 @@ if($member['GRADE'] >= 6) {
심의
- +
- +
diff --git a/i_entrance/_common.php b/i_entrance/_common.php index f57670c9..886ced47 100644 --- a/i_entrance/_common.php +++ b/i_entrance/_common.php @@ -4,8 +4,8 @@ if(!defined('ROOT')){ } require_once(ROOT.'/f_config/config.php'); -require_once(ROOT.W.F_CONFIG.W.APP.PHP); -require_once(ROOT.W.F_FUNC.W.FUNC.PHP); +require_once(ROOT.'/f_config/app.php'); +require_once(ROOT.'/f_func/func.php'); CustomHeader(); diff --git a/i_entrance/adminPost.php b/i_entrance/adminPost.php index ebd1c42c..0810e624 100644 --- a/i_entrance/adminPost.php +++ b/i_entrance/adminPost.php @@ -1,8 +1,8 @@ $allow_ip, 'xforward_allow_ip' => $xforward_allow_ip]); file_put_contents($serverPath.'/.htaccess', $htaccess); } elseif($select == 1) {//리셋 - if(file_exists($serverPath.W.D_SETTING.W.'conf.php')){ - @unlink($serverPath.W.D_SETTING.W.'conf.php'); + if(file_exists($serverPath.'/d_setting/conf.php')){ + @unlink($serverPath.'/d_setting/conf.php'); } $response['installURL'] = $serverDir.W."install.php"; diff --git a/i_entrance/entrance.php b/i_entrance/entrance.php index a976ccc2..87641cd8 100644 --- a/i_entrance/entrance.php +++ b/i_entrance/entrance.php @@ -1,6 +1,5 @@ @@ -11,26 +10,26 @@ require_once(ROOT.W.F_CONFIG.W.SESSION.PHP); 서버목록 - > - > + + - > - > + + - - - - - + + + + + - - + + - - > + diff --git a/i_entrance/logoutPost.php b/i_entrance/logoutPost.php index 6635cce4..a7036288 100644 --- a/i_entrance/logoutPost.php +++ b/i_entrance/logoutPost.php @@ -1,8 +1,8 @@
-
+
diff --git a/i_entrance/manage/Get.php b/i_entrance/manage/Get.php index 9e2d64cf..608da5d1 100644 --- a/i_entrance/manage/Get.php +++ b/i_entrance/manage/Get.php @@ -1,8 +1,8 @@ alert('{$response['msg']}'); - location.replace('".ROOT.W.I.ENTRANCE.W.ENTRANCE.PHP."'); + location.replace('".ROOT.'/i_entrance/entrance.php'."'); "; */ -echo ROOT.W.I.ENTRANCE.W.ENTRANCE.PHP;//TODO:debug all and replace +echo ROOT.'/i_entrance/entrance.php';//TODO:debug all and replace diff --git a/i_entrance/manage/passwordPost.php b/i_entrance/manage/passwordPost.php index 83414c75..3d004b88 100644 --- a/i_entrance/manage/passwordPost.php +++ b/i_entrance/manage/passwordPost.php @@ -1,8 +1,8 @@ queryFirstRow('SELECT `REG`, `LOGIN` FROM `SYSTEM` WHERE `NO`=1'); ?> @@ -13,10 +13,10 @@ $system = getRootDB()->queryFirstRow('SELECT `REG`, `LOGIN` FROM `SYSTEM` WHERE
심의
- +
- +