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");