Файл: files/xtotut1.php
Строк: 76
<?php
$self = $_SERVER['SCRIPT_NAME'];
$time=time();
echo '<hr>';
mysql_query("UPDATE `users` SET `udata55`='$self' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata56`='$time' WHERE `udata0`='$log'");
$pr_q = mysql_query("SELECT * from `users` where `udata56`>('".time()."'-'600') and `udata55`='$self' and `udata20`='$udata20' and `udata37`='$udata37' ");
while($arr = mysql_fetch_array($pr_q)){
$aglava=mysql_query("SELECT * FROM `clan` WHERE `clan0`='$arr[udata23]' ");
$arrs= mysql_fetch_array($aglava);
$ggg=$arrs['clan2'];
if($arr['udata67']=="200"){
$sss=$arr['udata23'];
if($sss!==""){
if(!empty($ggg)){
echo"<img src="pic/clan/$ggg" alt="clan"/>";}}
echo " <a href="search.php?&nick=$arr[udata0]&go=go">
<font color="lime"><b><up>$arr[udata0]</b></up></font></a>
</small> ";
if($arr['udata48']!=="dead" and $arr[udata0]!=="$log"){
$elita=mysql_query("SELECT * FROM `clanwar` WHERE `war`='$udata23' and `war1`='$arr[udata23]' or `war1`='$udata23' and `war`='$arr[udata23]' ");
if(mysql_num_rows($elita)==1){
echo"<a href="okrestnosti.php?war&&nick=$arr[udata0]">[O]</a></small> ";}else{
echo"<a href="okrestnosti.php?pk&&nick=$arr[udata0]">[x]</a></small>";}
}}
else{
if($arr['udata86']>="1"){
$sss=$arr['udata23'];
if($sss!==""){
if(!empty($ggg)){
echo"<img src="pic/clan/$ggg" alt="clan"/>";}}
echo " <a href="search.php?&nick=$arr[udata0]&go=go">
<i><font color="red"><up>$arr[udata0]</up></font></i></a>
</small> ";
if($arr['udata48']!=="dead" and $arr[udata0]!=="$log"){
$elita=mysql_query("SELECT * FROM `clanwar` WHERE `war`='$udata23' and `war1`='$arr[udata23]' or `war1`='$udata23' and `war`='$arr[udata23]' ");
if(mysql_num_rows($elita)==1){
echo"<a href="okrestnosti.php?war&&nick=$arr[udata0]">[O]</a></small> ";}else{
echo"<a href="okrestnosti.php?pk&&nick=$arr[udata0]">[x]</a></small>";}
}}else
if($arr[udata75]=="vip"){
$sss=$arr['udata23'];
if($sss!==""){
if(!empty($ggg)){
echo"<img src="pic/clan/$ggg" alt="clan"/>";}}
echo " <a href="search.php?&nick=$arr[udata0]&go=go">
<font color="gold"><b><up>$arr[udata0]</b></up></font></a>
</small> ";
if($arr['udata48']!=="dead" and $arr[udata0]!=="$log"){
$elita=mysql_query("SELECT * FROM `clanwar` WHERE `war`='$udata23' and `war1`='$arr[udata23]' or `war1`='$udata23' and `war`='$arr[udata23]' ");
if(mysql_num_rows($elita)==1){
echo"<a href="okrestnosti.php?war&&nick=$arr[udata0]">[O]</a></small> ";}else{
echo"<a href="okrestnosti.php?pk&&nick=$arr[udata0]">[x]</a></small>";}
}}else
if($arr[udata25]!==""){
$sss=$arr['udata23'];
if($sss!==""){
if(!empty($ggg)){
echo"<img src="pic/clan/$ggg" alt="clan"/>";}}
echo " <a href="search.php?&nick=$arr[udata0]&go=go">
<font color="$arr[udata25]"><up>$arr[udata0]</up></font></a>
</small> ";
if($arr['udata48']!=="dead" and $arr[udata0]!=="$log"){
$elita=mysql_query("SELECT * FROM `clanwar` WHERE `war`='$udata23' and `war1`='$arr[udata23]' or `war1`='$udata23' and `war`='$arr[udata23]' ");
if(mysql_num_rows($elita)==1){
echo"<a href="okrestnosti.php?war&&nick=$arr[udata0]">[O]</a></small> ";}else{
echo"<a href="okrestnosti.php?pk&&nick=$arr[udata0]">[x]</a></small>";}
}
}else{
$sss=$arr['udata23'];
if($sss!==""){
if(!empty($ggg)){
echo"<img src="pic/clan/$ggg" alt="clan"/>";}}
echo " <a href="search.php?&nick=$arr[udata0]&go=go">$arr[udata0]</a></small>";
if($arr['udata48']!=="dead" and $arr[udata0]!=="$log"){
$elita=mysql_query("SELECT * FROM `clanwar` WHERE `war`='$udata23' and `war1`='$arr[udata23]' or `war1`='$udata23' and `war`='$arr[udata23]' ");
if(mysql_num_rows($elita)==1){
echo"<a href="okrestnosti.php?war&&nick=$arr[udata0]">[O]</a></small> ";}else{
echo"<a href="okrestnosti.php?pk&&nick=$arr[udata0]">[x]</a></small>";}
}
}
}
}
if($_SESSION['version'] == 'web'){
echo '<hr>';
}
?>