class_exists 다시 수정
This commit is contained in:
@@ -25,7 +25,7 @@ if(strlen($password)!=128){
|
||||
]);
|
||||
}
|
||||
|
||||
if(!class_exists('sammo\RootDB')){
|
||||
if(!class_exists('\\sammo\\RootDB')){
|
||||
Json::die([
|
||||
'result'=>false,
|
||||
'reason'=>'DB 설정이 완료되지 않았습니다.'
|
||||
|
||||
@@ -16,7 +16,7 @@ function dbSQLFail($params){
|
||||
]);
|
||||
}
|
||||
|
||||
if(!class_exists('sammo\RootDB')){
|
||||
if(!class_exists('\\sammo\\RootDB')){
|
||||
Json::die([
|
||||
'step'=>'config'
|
||||
]);
|
||||
|
||||
@@ -45,7 +45,7 @@ if(file_exists(ROOT.'/d_setting/RootDB.php') && is_dir(ROOT.'/d_setting/RootDB.p
|
||||
]);
|
||||
}
|
||||
|
||||
if(class_exists('sammo\RootDB')){
|
||||
if(class_exists('\\sammo\\RootDB')){
|
||||
Json::die([
|
||||
'result'=>false,
|
||||
'reason'=>'이미 RootDB.php 파일이 있습니다'
|
||||
|
||||
@@ -3,7 +3,7 @@ namespace sammo;
|
||||
|
||||
require('_common.php');
|
||||
|
||||
if(!class_exists('sammo\RootDB')){
|
||||
if(!class_exists('\\sammo\\RootDB')){
|
||||
header ('Location:install.php');
|
||||
die();
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace kakao;
|
||||
|
||||
if (class_exists('sammo\KakaoKey') === false) {
|
||||
if (class_exists('\\sammo\\KakaoKey') === false) {
|
||||
class KakaoKey{
|
||||
const REST_KEY = '';
|
||||
const ADMIN_KEY = '';
|
||||
|
||||
@@ -27,7 +27,7 @@ class AppConf{
|
||||
* @return \MeekroDB
|
||||
*/
|
||||
public static function requireRootDB(){
|
||||
if(!class_exists('sammo\RootDB')){
|
||||
if(!class_exists('\\sammo\\RootDB')){
|
||||
trigger_error('RootDB.php가 설정되지 않았습니다.', E_USER_ERROR);
|
||||
die();
|
||||
}
|
||||
@@ -40,7 +40,7 @@ class AppConf{
|
||||
* @return \MeekroDB
|
||||
*/
|
||||
public static function requireDB(){
|
||||
if(!class_exists('sammo\DB')){
|
||||
if(!class_exists('\\sammo\\DB')){
|
||||
trigger_error('DB.php가 설정되지 않았습니다.', E_USER_ERROR);
|
||||
die();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user