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