From fa1f5a8aa38f71709dbefa161ffb8e38eb49b0dd Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 13 Mar 2018 09:42:44 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EC=85=8B=20=EA=B3=BC=EC=A0=95?= =?UTF-8?q?=EC=97=90=EC=84=9C=20install3=5Fok.php=20=EC=97=90=EC=84=9C=20r?= =?UTF-8?q?equireUserLevel()=EC=9D=B4=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EA=B2=83=20=EC=88=98=EC=A0=95=20requireUserLevel()?= =?UTF-8?q?=EC=97=90=EC=84=9C=20$reqLevel=20=EB=B0=98=EC=98=81=EC=9D=B4=20?= =?UTF-8?q?=EB=90=98=EB=8B=A4=20=EB=A7=8C=20=EA=B2=83=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- che_close/install3_ok.php | 1 - che_close/lib.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/che_close/install3_ok.php b/che_close/install3_ok.php index 5784571..815739b 100644 --- a/che_close/install3_ok.php +++ b/che_close/install3_ok.php @@ -3,7 +3,6 @@ include "lib.php"; include "func.php"; $connect=dbConn(); -requireUserLevel($connect, 5); LogHistory($connect, 1); diff --git a/che_close/lib.php b/che_close/lib.php index 677d866..21063db 100644 --- a/che_close/lib.php +++ b/che_close/lib.php @@ -173,7 +173,7 @@ function requireUserLevel($connect, $reqLevel=5){ $p_id = isset($_SESSION['p_id'])?$_SESSION['p_id']:null; if(!$p_id){ - $query = "select count(*) as cnt from general where userlevel < 4 limit 1"; + $query = "select count(*) as cnt from general where userlevel < $reqLevel limit 1"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $cnt = MYDB_fetch_array($result);