f_config/DB.php 제거
class_exists('RootDB')로 대체 가능
This commit is contained in:
@@ -25,14 +25,13 @@ if(strlen($password)!=128){
|
||||
]);
|
||||
}
|
||||
|
||||
if(!AppConf::getRoot()->isExists()){
|
||||
if(!class_exists('RootDB')){
|
||||
Json::die([
|
||||
'result'=>false,
|
||||
'reason'=>'DB 설정이 완료되지 않았습니다.'
|
||||
]);
|
||||
}
|
||||
|
||||
require(__DIR__.'/../f_config/DB.php');
|
||||
$rootDB = RootDB::db();
|
||||
|
||||
//초기 관리자 계정은 딱 하나만 있어야하므로, 중요함.
|
||||
|
||||
@@ -16,13 +16,12 @@ function dbSQLFail($params){
|
||||
]);
|
||||
}
|
||||
|
||||
if(!AppConf::getRoot()->isExists()){
|
||||
if(!class_exists('RootDB')){
|
||||
Json::die([
|
||||
'step'=>'config'
|
||||
]);
|
||||
}
|
||||
|
||||
require(__DIR__.'/../f_config/DB.php');
|
||||
$rootDB = RootDB::db();
|
||||
|
||||
$rootDB->throw_exception_on_nonsql_error = false;
|
||||
|
||||
@@ -45,7 +45,7 @@ if(file_exists(ROOT.'/d_setting/RootDB.php') && is_dir(ROOT.'/d_setting/RootDB.p
|
||||
]);
|
||||
}
|
||||
|
||||
if(AppConf::getRoot()->isExists()){
|
||||
if(class_exists('RootDB')){
|
||||
Json::die([
|
||||
'result'=>false,
|
||||
'reason'=>'이미 RootDB.php 파일이 있습니다'
|
||||
|
||||
Reference in New Issue
Block a user