twe_close를 twe로 변경(서비스모드로 변경)
앞으로 추가 테스트 시작
This commit is contained in:
+1
-1
@@ -2879,7 +2879,7 @@ function pushProcessLog($connect, $log) {
|
||||
|
||||
function delStepLog() {
|
||||
$date = date('Y_m_d');
|
||||
@unlink("logs/_{$date}_steplog.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/_{$date}_steplog.txt");
|
||||
}
|
||||
|
||||
function pushStepLog($log) {
|
||||
|
||||
@@ -238,12 +238,12 @@ function printFighting($tournament, $phase) {
|
||||
|
||||
function startTournament($connect, $auto, $type) {
|
||||
for($i=0; $i < 8; $i++) {
|
||||
@unlink("logs/fight{$i}.txt");
|
||||
@unlink("logs/fight1{$i}.txt");
|
||||
@unlink("logs/fight2{$i}.txt");
|
||||
@unlink("logs/fight3{$i}.txt");
|
||||
@unlink("logs/fight4{$i}.txt");
|
||||
@unlink("logs/fight5{$i}.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/fight{$i}.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/fight1{$i}.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/fight2{$i}.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/fight3{$i}.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/fight4{$i}.txt");
|
||||
@unlink(realpath(dirname(__FILE__))."/logs/fight5{$i}.txt");
|
||||
}
|
||||
|
||||
switch($auto) {
|
||||
|
||||
@@ -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),"");
|
||||
MYDB_select_db($dbname, $connect) or Error("MySQL-DB Select<br>Error!!!","");
|
||||
|
||||
delInDir("logs");
|
||||
delInDir("data/session");
|
||||
@unlink("data/connected.php");
|
||||
delInDir(realpath(dirname(__FILE__))."/logs");
|
||||
delInDir(realpath(dirname(__FILE__))."/data/session");
|
||||
@unlink(realpath(dirname(__FILE__))."/data/connected.php");
|
||||
|
||||
// 관리자 테이블 삭제
|
||||
if(isTable($connect, "game", $dbname)) @MYDB_query("drop table game", $connect) or Error("drop ".MYDB_error($connect),"");
|
||||
|
||||
@@ -45,19 +45,19 @@ if($member['GRADE'] < 6) {
|
||||
$serverDir = $_serverDirs[$server];
|
||||
|
||||
if($select == 0) {
|
||||
rename(ROOT.W.$serverDir, ROOT.W.$serverDir.'_close');
|
||||
rename(ROOT.W.$serverDir.'_rest', ROOT.W.$serverDir);
|
||||
rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir, realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_close');
|
||||
rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_rest', realpath(dirname(__FILE__)).W.ROOT.W.$serverDir);
|
||||
$response['result'] = 'SUCCESS';
|
||||
} elseif($select == 1) {
|
||||
if(file_exists(ROOT.W.$serverDir.'_close'.W.D_SETTING.W.SET.PHP)){
|
||||
@unlink(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(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir.'_close'.W.D_SETTING.W.SET.PHP);
|
||||
}
|
||||
|
||||
$response['installURL'] = ROOT.W."{$serverDir}_close/install.php";
|
||||
$response['result'] = 'SUCCESS';
|
||||
} elseif($select == 2) {
|
||||
rename(ROOT.W.$serverDir, ROOT.W.$serverDir."_rest");
|
||||
rename(ROOT.W.$serverDir."_close", ROOT.W.$serverDir);
|
||||
rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir, realpath(dirname(__FILE__)).W.ROOT.W.$serverDir."_rest");
|
||||
rename(realpath(dirname(__FILE__)).W.ROOT.W.$serverDir."_close", realpath(dirname(__FILE__)).W.ROOT.W.$serverDir);
|
||||
$response['result'] = 'SUCCESS';
|
||||
}
|
||||
} else {
|
||||
|
||||
|
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user