getDB(), getRootDB()를 autoload 클래스로 변경
- 각각 DB::db(), RootDB::db()임.
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ if(Session::getUserGrade(true) < 5){
|
||||
die('관리자 아님');
|
||||
}
|
||||
|
||||
if(file_exists("d_setting/conf.php")) error("이미 conf.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
if(file_exists("d_setting/DB.php")) error("이미 DB.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
|
||||
@chmod(".",0707);
|
||||
?>
|
||||
|
||||
@@ -7,7 +7,7 @@ if(Session::getUserGrade(true) < 5){
|
||||
die('관리자 아님');
|
||||
}
|
||||
|
||||
if(file_exists("d_setting/conf.php")) error("이미 conf.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
if(file_exists("d_setting/DB.php")) error("이미 DBD.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -9,7 +9,7 @@ if(Session::getUserGrade(true) < 5){
|
||||
die('관리자 아님');
|
||||
}
|
||||
|
||||
if(file_exists("d_setting/conf.php")) error("이미 conf.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
if(file_exists("d_setting/DB.php")) error("이미 DB.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
|
||||
|
||||
$hostname = Util::array_get($_POST['hostname'], '');
|
||||
@@ -103,7 +103,7 @@ if(!isTable($connect, "history",$dbname)) @MYDB_query($history_schema, $connect)
|
||||
|
||||
@mkdir("data",0707);
|
||||
@chmod("data",0707);
|
||||
@chmod("d_setting/conf.php",0707);
|
||||
@chmod("d_setting/DB.php",0707);
|
||||
|
||||
$temp=MYDB_fetch_array(MYDB_query("select count(*) from general where level = '1'", $connect));
|
||||
|
||||
|
||||
@@ -374,7 +374,7 @@ function insertCity($name, $level, $pop2, $agri2, $comm2, $secu2, $def2, $wall2,
|
||||
case 8: $pop = 150000; $agri = 1000; $comm = 1000; $secu = 1000; $def = 5000; $wall = 5000; break;
|
||||
}
|
||||
|
||||
getDB()->insert('city',[
|
||||
DB::db()->insert('city',[
|
||||
'name'=>$name,
|
||||
'level'=>$level,
|
||||
'path'=>$path,
|
||||
|
||||
Reference in New Issue
Block a user