getDB(), getRootDB()를 autoload 클래스로 변경

- 각각 DB::db(), RootDB::db()임.
This commit is contained in:
2018-03-25 00:07:37 +09:00
parent bb1a496835
commit 9e1aadf486
62 changed files with 258 additions and 269 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ include "func.php";
$db = getDB();
$db = DB::db();
$userID = Session::getUserID();
@@ -37,8 +37,8 @@ case 3:
MessageBox("절대 1계정만 사용하십시오! {$me['killturn']}시간 후 재등록 가능합니다."); break;
}
$_SESSION[getServPrefix().'p_no'] = Util::toInt($me['no']);
$_SESSION[getServPrefix().'p_name'] = $me['name'];
$_SESSION[DB::prefix().'p_no'] = Util::toInt($me['no']);
$_SESSION[DB::prefix().'p_name'] = $me['name'];
$_SESSION['p_time'] = time();
$date = date('Y-m-d H:i:s');