From 4624e511fc61ea4a89fd576db5633746da0f0cab Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 4 Feb 2018 04:22:30 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EC=97=86=EC=9D=B4?= =?UTF-8?q?=EB=8F=84=20reset.php=EC=97=90=20=EC=A0=91=EC=86=8D=ED=95=98?= =?UTF-8?q?=EB=A9=B4=20=EC=B4=88=EA=B8=B0=ED=99=94=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=ED=95=9C=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0=20-=5F-;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/reset.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/twe/reset.php b/twe/reset.php index 01a4ae38..e763976d 100644 --- a/twe/reset.php +++ b/twe/reset.php @@ -3,8 +3,19 @@ include "lib.php"; include "func.php"; include "schema.php"; +$userID = getUserID(); +$userLevel = toInt(getRootDB()->queryFirstField('select userlevel from member where no=%i',$userID)); + +if($userLevel < 5){ + echo '관리자 아님'; + die(); +} + $connect = dbConn(); + + + // 삭제 unlink("d_setting/set.php");