File size: 2.24Kb
<?
error_reporting(0);include "config.php";include "head.php";if(!$edit){$setdata=file("users/$usern.$antihack.dat");$numbus=trim($setdata[0]);$nus=trim($setdata[1]);$passus=trim($setdata[2]);$stus=trim($setdata[3]);$timereg=trim($setdata[4]);echo '<b>Анкета пользователя</b><br/></center>ID: <font color="'.$mtcolor.'">'.$numbus.'</font><br/>
Имя: <font color="'.$mtcolor.'">'.$nus.'</font><br/>';if ($stus=="ban"){$st="Забанен";}if ($stus=="user"){$st="Пользователь";}if ($stus=="admin"){$st="Админ";}echo 'Статус: <font color="'.$mtcolor.'">'.$st.'</font><br/>Дата регистрации: <font color="'.$mtcolor.'">'.date("d.m.Y", $timereg-3600).'</font><br/><center>';if ($status=="admin"){if ($task=="edit"){echo 'Изменить статус?<br/>';echo "<div><form action=\"anketa.php\" method=\"post\"><input type=\"hidden\" name=\"edit\" value=\"set\"/><input type=\"hidden\" name=\"task\" value=\"$task\"/><input type=\"hidden\" name=\"usern\" value=\"$usern\"/><input type=\"hidden\" name=\"n\" value=\"$n\"/><input type=\"hidden\" name=\"pass\" value=\"$pass\"/><input type=\"hidden\" name=\"rum\" value=\"$rum\"/><input type=\"hidden\" name=\"numbus\" value=\"$numbus\"/><input type=\"hidden\" name=\"timereg\" value=\"$timereg\"/><input type=\"hidden\" name=\"nus\" value=\"$nus\"/><input type=\"hidden\" name=\"passus\" value=\"$passus \"/>";if ($stus=="user"){echo "<select name=\"stus\"><option value=\"admin\">Админ</option><option value=\"ban\">Забанен</option>
</select><br/>";}if ($stus=="admin"){echo "<select name=\"stus\"><option value=\"user\">Пользователь</option><option value=\"ban\">Забанен</option></select><br/>";}if ($stus=="ban"){echo "<select name=\"stus\"><option value=\"admin\">Админ</option><option value=\"user\">Пользователь</option></select><br/>";}echo "<input type=\"submit\" value=\"изменить\"/></form></div>";}}echo "<a href=\"index.php?n=$n&pass=$pass&task=$task&rum=$rum\">Назад</a><br/>";}else{$setdata ="users/$usern.$antihack.dat";$file = fopen("$setdata","w+");fputs($file,"$numbus\r\n$nus\r\n$passus\r\n$stus\r\n$timereg\r\n");fclose($file);header ("location: index.php?n=$n&pass=$pass&rum=$rum&task=$task");
}echo $end;
?>