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

앞으로 추가 테스트 시작
This commit is contained in:
2018-01-14 05:01:11 +09:00
parent c5c9137b35
commit 35e92365f2
155 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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) {
+6 -6
View File
@@ -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) {
+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),"");
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),"");
+6 -6
View File
@@ -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 {
View File
View File

Before

Width:  |  Height:  |  Size: 582 B

After

Width:  |  Height:  |  Size: 582 B

View File
View File
View File

Some files were not shown because too many files have changed in this diff Show More