Размер файла: 1.2Kb
<?php
include 'config.php';
include 'guestbook/mylib.php';
session_start();
header("Cache-Control: no-cache");
header("Content-type: text/vnd.wap.wml");
$uid=0;
$lang=$_GET['lang'];
$r=$_GET['r'];
$id=htmlspecialchars(trim($_GET['id']),ENT_QUOTES);
if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) exit;
?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml_1.2.dtd">
<wml>
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card id="Kick" title="Kick" newcontext="true">
<p>
<?php
$res=pg_query($conn,"select login from users where id='$id';");
if (pg_numrows($res)==1) $login=uconv(pg_result($res,0,0));
print "Kick user ".$login."<br/>\n";
print "<input name=\"kick\" type=\"text\" value=\"5\" maxlength=\"3\" format=\"3N\"/><br/>\n";
?>
<anchor title="Ok">Kick<go href="user_ban.php" method="get">
<postfield name="kick" value="$(kick)"/>
<?php print "<postfield name=\"lang\" value=\"".$lang."\"/>\n";
print "<postfield name=\"id\" value=\"".$id."\"/>\n";
print "<postfield name=\"r\" value=\"".$r."\"/>\n"; ?>
</go></anchor>
</p>
</card>
</wml>