From cfac4bb068a652a7dd5ecb23df81f4cdefa79261 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 Dec 2006 00:37:06 +0000 Subject: [PATCH] advertising admin code --- includes/account.php | 4 +++- pages/account/43.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/account.php b/includes/account.php index f4a5f5a..9c8af34 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2289,7 +2289,9 @@ $memid = $_REQUEST['userid'] = intval($_REQUEST['adadmin']); $query = "select * from `users` where `id`='$memid'"; $row = mysql_fetch_assoc(mysql_query($query)); - $ver = !$row['adadmin']; + $ver = $row['adadmin'] + 1; + if($ver > 2) + $ver = 0; mysql_query("update `users` set `adadmin`='$ver' where `id`='$memid'"); } diff --git a/pages/account/43.php b/pages/account/43.php index 2b74ea2..cd22e20 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -168,7 +168,7 @@ : - + (0 = none, 1 = submit, 2 = approve) :