Размер файла: 1.48Kb
<?php
include '../guestbook/mylib.php';
if (!checkagent($_SERVER['HTTP_USER_AGENT'])) { noemul(); exit; }
list ($opname, $chatok) = check_op($_SERVER['REMOTE_ADDR']);
if (!$chatok) { unk_op(); exit; }
session_start();
header("Content-type: text/vnd.wap.wml");
$lang=$_GET['lang'];
?>
<?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>
<?php if ($lang=='eng') print "<card id=\"Search\" title=\"Search user\" newcontext=\"true\">\n";
else print "<card id=\"Search\" title=\"Поиск\" newcontext=\"true\">\n"; ?>
<p>
<?php if ($lang=='eng') print "Enter nickname:\n"; else
print "Введите ник:\n"; ?>
<input type="text" name="slogin" title="Login" maxlength="15"/><br/>
<?php if ($lang=='eng') print "or ID:\n"; else
print "или ID:\n"; ?>
<input type="text" name="id" title="ID" maxlength="7" format="*N"/><br/>
<anchor title="Ok">Ok<go href="user_search_exec.php" method="get">
<postfield name="slogin" value="$(slogin)"/>
<postfield name="id" value="$(id)"/>
<?php print "<postfield name=\"lang\" value=\"".$lang."\"/>\n"; ?>
</go></anchor><br/> <?php
if ($lang=='eng') print "<a href=\"/index.php?lang=eng\">Main page</a><br/>\n";
else print "<a href=\"/\">На главную</a><br/>\n"; ?>
</p>
<?php counters(); ?>
</card>
</wml>