새로운 설정 파일을 위한 gitignore 확보
처리하지 않고 남겨둔 array 참조 해결 main.js 를 별도로 이동
This commit is contained in:
@@ -24,6 +24,13 @@ $me = MYDB_fetch_array($result);
|
||||
$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
|
||||
if($con >= 2) {
|
||||
//echo "<script>window.top.main.location.replace('main.php');</script>"; exit();
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode([
|
||||
'result' => false,
|
||||
'reason' => '권한이 충분하지 않습니다.',
|
||||
'redirect' => 'main.php',
|
||||
'page_target' => 'top'
|
||||
]);
|
||||
echo 'main.php';//TODO:debug all and replace
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user