View file moderoff.php
<?php include 'inc/db.php'; include 'inc/1.php'; $id=intval($_GET['id']); $ank=gus($id); if (($ank['admin']==0) && ($ank['moder']==0)){ header("Location: /index.php"); exit; } if ($user['id']>1){ header("Location: /index.php"); exit; } mysql_query("UPDATE `user` SET `admin` = '0', `moder` = '0' WHERE `id` = '$id'"); header("Location: /ank.php?id=$id"); exit; include 'inc/foot.php'; ?>