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