Файл: rban/rban/ban.php
Строк: 37
<?php
include "config.inc.php";
include "fo.php";
include'ver.php';
include'valid.php';
top('Бaн');
if($w=='htm'){print'<div class="block2">';} else {print'<p>';}
if($w=='htm'){print'<form action="ban.php" method="get">';}
echo "ID:<br/><input type="text" name="kol" maxlength="6" emptyok="false"/><br/>";
if($w=='wml'){
print"
<anchor>
Зaбaнить
<go href="ban.php?id=$id&pass=$pass" method="get">
<postfield name="kol" value="$(kol)"/>
</go>
</anchor><br/>";} else {
print'<input type="hidden" name="pass" value="'.$pass.'"/>
<input type="hidden" name="id" value="'.$id.'"/>
<input type="submit" value="Зaбaнить"/></form>';}
if ($kol>0) {
mysql_query('update `index` set `banned`=1 where `id`='.$kol);
echo "ok<br/>
<a href="xadmin.php?id=$id&pass=$pass">Aдмин-Пaнeль</a><br/>";
echo "
<a href="admforum.php?id=$id&pass=$pass">Упpaвлeниe Фopyмoм</a><br/>";
if($w=='htm'){print'</div><div class="block">';}
print"
<a href="ent.php?id=$id&pass=$pass"><< B пaнeль</a><br/>";
if($w=='htm'){print'</div><br/>';}} else {
if($w=='htm'){print'</div>';}}
e();
?>