Files
core/f_install/j_install_status.php
T
Hide_D 4b33461c70 _admin2의 query를 수정.
- 메시지 전송을 새로 만든 구현을 사용함.
- 테이블 두개 (MEMBER, SYSTEM)을 소문자로 변경
2018-04-16 22:31:54 +09:00

38 lines
667 B
PHP

<?php
namespace sammo;
require(__dir__.'/../vendor/autoload.php');
if(!class_exists('\\sammo\\RootDB')){
Json::die([
'step'=>'config'
]);
}
$rootDB = RootDB::db();
$rootDB->throw_exception_on_nonsql_error = false;
$rootDB->nonsql_error_handler = function($params){
Json::die([
'step'=>'conn_fail'
]);
};
$rootDB->error_handler = function($params){
Json::die([
'step'=>'sql_fail'
]);
};
$memberCnt = $rootDB->queryFirstField('SELECT count(`NO`) from member');
if($memberCnt == 0){
Json::die([
'step'=>'admin',
'globalSalt'=>RootDB::getGlobalSalt()
]);
}
Json::die([
'step'=>'done'
]);