View file znaki_LIM/znaki_LIM/search.php

File size: 2.04Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print '<?xml version="1.0" encoding="utf-8"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
include "./ini.php";

print '<card title="'.$lang['p_search'].'"><p align="center">'.$lang['s_search'].'</p>'.
'<p>';
if(!empty($login))
$q = @mysql_query("select `id` from `".$px.$utable."` where `login`='".$login."';");
if(empty($id)) {
$data = @mysql_fetch_array($q);
$id = $data['id']; 
}

$login = autorize();
if($login) {
if(!$login['ip']) { @mysql_query("update `".$px.$utable."` set `ip`='".getenv(REMOTE_ADDR)."' where `id`='".$id."';"); }
	if(!$login['soft']) { @mysql_query("update `".$px.$utable."` set `soft`='".getenv(HTTP_USER_AGENT)."' where `id`='".$id."';"); }
	if($login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
	elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
	elseif($login['fsize'] == "i") { $fsize1 = "<i>"; $fsize2 = "</i>"; }
	elseif($login['fsize'] == "em") { $fsize1 = "<em>"; $fsize2 = "</em>"; }
 	elseif($login['fsize'] == "b") { $fsize1 = "<b>"; $fsize2 = "</b>"; }
	elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
	elseif($login['fsize'] == "u") { $fsize1 = "<u>"; $fsize2 = "</u>"; }
      else { $fsize1 = ""; $fsize2 = ""; }
      
	ustatus();

print $lang['s_login'].'<br/><input type="text" name="dblogin"/><br/>'.
'<anchor>'.$lang['s_ok'].'<go href="user.php?id='.$login['id'].'&amp;pass='.$login['pass'].'&amp;mod=see&amp;r='.$r.'" method="post">'.
'<postfield name="dblogin" value="$(dblogin)"/>'.
'<postfield name="search" value="1"/></go></anchor><br/>';
print "<br/><a href=\"enter.php?id=$id&amp;pass=$pass\">".$lang['holl']."</a><br/>";
} else { print $lang['not_loged']; }
//а §алў Ґ¬ ᮥ¤Ё­Ґ­ЁҐ б Ў §®©
@mysql_close();
print '</p>'.
'</card>'.
'</wml>';
ob_end_flush();
?>