twe_close를 twe로 변경(서비스모드로 변경)

앞으로 추가 테스트 시작
This commit is contained in:
Hide_D committed 2018-01-14 05:01:11 +09:00
1 parent c5c9137b35
commit 35e92365f2
155 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -2879,7 +2879,7 @@ function pushProcessLog($connect, $log) {
function delStepLog() { function delStepLog() {
$date = date('Y_m_d'); $date = date('Y_m_d');
@unlink("logs/_{$date}_steplog.txt"); @unlink(realpath(dirname(__FILE__))."/logs/_{$date}_steplog.txt");
} }
function pushStepLog($log) { function pushStepLog($log) {
+6 -6
View File
@@ -238,12 +238,12 @@ function printFighting($tournament, $phase) {
function startTournament($connect, $auto, $type) { function startTournament($connect, $auto, $type) {
for($i=0; $i < 8; $i++) { for($i=0; $i < 8; $i++) {
@unlink("logs/fight{$i}.txt"); @unlink(realpath(dirname(__FILE__))."/logs/fight{$i}.txt");
@unlink("logs/fight1{$i}.txt"); @unlink(realpath(dirname(__FILE__))."/logs/fight1{$i}.txt");
@unlink("logs/fight2{$i}.txt"); @unlink(realpath(dirname(__FILE__))."/logs/fight2{$i}.txt");
@unlink("logs/fight3{$i}.txt"); @unlink(realpath(dirname(__FILE__))."/logs/fight3{$i}.txt");
@unlink("logs/fight4{$i}.txt"); @unlink(realpath(dirname(__FILE__))."/logs/fight4{$i}.txt");
@unlink("logs/fight5{$i}.txt"); @unlink(realpath(dirname(__FILE__))."/logs/fight5{$i}.txt");
} }
switch($auto) { switch($auto) {
+3 -3
View File
@@ -15,9 +15,9 @@ $connect = MYDB_connect($hostname,$user_id,$password) or Error("MySQL-DB Connect
if(MYDB_error($connect)) Error(__LINE__.MYDB_error($connect),""); if(MYDB_error($connect)) Error(__LINE__.MYDB_error($connect),"");
MYDB_select_db($dbname, $connect) or Error("MySQL-DB Select<br>Error!!!",""); MYDB_select_db($dbname, $connect) or Error("MySQL-DB Select<br>Error!!!","");
delInDir("logs"); delInDir(realpath(dirname(__FILE__))."/logs");
delInDir("data/session"); delInDir(realpath(dirname(__FILE__))."/data/session");
@unlink("data/connected.php"); @unlink(realpath(dirname(__FILE__))."/data/connected.php");
// 관리자 테이블 삭제 // 관리자 테이블 삭제
if(isTable($connect, "game", $dbname)) @MYDB_query("drop table game", $connect) or Error("drop ".MYDB_error($connect),""); if(isTable($connect, "game", $dbname)) @MYDB_query("drop table game", $connect) or Error("drop ".MYDB_error($connect),"");
+6 -6
View File
@@ -45,19 +45,19 @@ if($member['GRADE'] < 6) {
$serverDir = $_serverDirs[$server]; $serverDir = $_serverDirs[$server];
if($select == 0) { if($select == 0) {
rename(ROOT.W.$serverDir, ROOT.W.$serverDir.'_close'); rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir, realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_close');
rename(ROOT.W.$serverDir.'_rest', ROOT.W.$serverDir); rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_rest', realpath(dirname(__FILE__)).W.ROOT.W.$serverDir);
$response['result'] = 'SUCCESS'; $response['result'] = 'SUCCESS';
} elseif($select == 1) { } elseif($select == 1) {
if(file_exists(ROOT.W.$serverDir.'_close'.W.D_SETTING.W.SET.PHP)){ if(file_exists(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_close'.W.D_SETTING.W.SET.PHP)){
@unlink(ROOT.W.$serverDir.'_close'.W.D_SETTING.W.SET.PHP); @unlink(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_close'.W.D_SETTING.W.SET.PHP);
} }
$response['installURL'] = ROOT.W."{$serverDir}_close/install.php"; $response['installURL'] = ROOT.W."{$serverDir}_close/install.php";
$response['result'] = 'SUCCESS'; $response['result'] = 'SUCCESS';
} elseif($select == 2) { } elseif($select == 2) {
rename(ROOT.W.$serverDir, ROOT.W.$serverDir."_rest"); rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir, realpath(dirname(__FILE__)).W.ROOT.W.$serverDir."_rest");
rename(ROOT.W.$serverDir."_close", ROOT.W.$serverDir); rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir."_close", realpath(dirname(__FILE__)).W.ROOT.W.$serverDir);
$response['result'] = 'SUCCESS'; $response['result'] = 'SUCCESS';
} }
} else { } else {
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 155 files, more files were not shown because too many files have changed in this diff. Show more