diff --git a/includes/account.php b/includes/account.php index f9ddb85..e180a0f 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2041,6 +2041,24 @@ mysql_query("update `users` set `codesign`='$ver' where `id`='$memid'"); } + if($id == 43 && $_GET['ttpadmin'] > 0) + { + $memid = $_GET['userid'] = intval($_GET['ttpadmin']); + $query = "select * from `users` where `id`='$memid'"; + $row = mysql_fetch_assoc(mysql_query($query)); + $ver = !$row['ttpadmin']; + mysql_query("update `users` set `ttpadmin`='$ver' where `id`='$memid'"); + } + + if($id == 43 && $_GET['locadmin'] > 0) + { + $memid = $_GET['userid'] = intval($_GET['locadmin']); + $query = "select * from `users` where `id`='$memid'"; + $row = mysql_fetch_assoc(mysql_query($query)); + $ver = !$row['locadmin']; + mysql_query("update `users` set `locadmin`='$ver' where `id`='$memid'"); + } + if($id == 50) { if($_GET['userid'] != "") diff --git a/includes/account_stuff.php b/includes/account_stuff.php index 5f9c214..50e00ea 100644 --- a/includes/account_stuff.php +++ b/includes/account_stuff.php @@ -84,7 +84,8 @@ case 47: case 48: case 49: - case 50: $expand = " explode('sysadmin');"; break; + case 50: + case 53: $expand = " explode('sysadmin');"; break; case 500: case 501: case 502: @@ -210,10 +211,10 @@ function hideall() {
} ?> - if($_SESSION['profile']['admin'] == 1) { ?> + if($_SESSION['profile']['admin'] == 1 || $_SESSION['profile']['locadmin'] == 1) { ?>