class_exists 다시 수정

This commit is contained in:
2018-03-25 00:33:31 +09:00
parent 51d62b54d4
commit 3fbf1d4b0c
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ if(strlen($password)!=128){
]);
}
if(!class_exists('sammo\RootDB')){
if(!class_exists('\\sammo\\RootDB')){
Json::die([
'result'=>false,
'reason'=>'DB 설정이 완료되지 않았습니다.'
+1 -1
View File
@@ -16,7 +16,7 @@ function dbSQLFail($params){
]);
}
if(!class_exists('sammo\RootDB')){
if(!class_exists('\\sammo\\RootDB')){
Json::die([
'step'=>'config'
]);
+1 -1
View File
@@ -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 파일이 있습니다'
+1 -1
View File
@@ -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
View File
@@ -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 = '';
+2 -2
View File
@@ -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();
}
+1 -1
View File
@@ -5,5 +5,5 @@ require('vendor/autoload.php');
Json::die([
'haha',
RootDB::getServerBasepath(),
'RootDB'=>class_exists('sammo\\RootDB')
'RootDB'=>class_exists('\\sammo\\RootDB')
]);