File size: 1.65Kb
<?php
require"start_c.php";
echo'<html><head><title>цитадель</title>';
require"css.php";
echo'</head><body>';
echo'<div class=kto>Kтo здecь:<div class=on>';
$onl=date("U")-600;
$col2=mysql_query("SELECT * FROM users WHERE online>\"$onl\" && lok=\"12\" && thp>0 ORDER BY online DESC") or die('error');
while($row2=mysql_fetch_array($col2)){
$v=0;
$nickk=$row2['nick'];
$thpp=$row2['thp'];
$qp=0;
if($row2['class']==3){
$sq=mysql_query("SELECT * FROM skills WHERE nick=\"$nickk\"") or die('error');
$ron=mysql_fetch_array($sq);
if($ron['time3']>=$online)
$qp=1;}
if($qp!=1){
if($row2['rep']>5){
echo"<a href=\"infa.php?ses=$ses&nick2=$nickk&mt=$mt\">$nickk</a>[$thpp]"; $v=1;}
if($row2['rep']<-5){
echo"<a href=\"infa.php?ses=$ses&nick2=$nickk&mt=$mt\">$nickk</a><font color=\"black\">[$thpp]</font>"; $v=1;}
if($v==0){
echo"<a href=\"infa.php?ses=$ses&nick2=$nickk&mt=$mt\">$nickk</a><font color=\"green\">[$thpp]</font>"; $v=1;}
if((int)$row2['clan']>0){
$xx=$row2['clan'];
$col3=mysql_query("SELECT * FROM clans WHERE id=\"$xx\"") or die('error');
$row1=mysql_fetch_array($col3);
$abbr=$row1['abr'];
echo"<font color=\"#af2f8f\">($abbr)</font>";}
if($row2['class']==6){
$b=@file("monster.dat");
$sb=sizeof($b);
$n=0;
$p=0;
if($sb>0){
while($n<$sb){
$bb=$b[$n];
$mh=@explode(".",$bb);
if($mh[0]==$nickk && $mh[1]!='0'){
$mnaz=$mh[1];
$mthp=$mh[3];
echo", <a href=\"monster.php?ses=$ses&nick2=$nickk&mt=$mt\"><font color=\"green\">$mnaz</font></a> [$mthp]"; $n=$sb;}
$n++;}}}
if($index!='0'){
$ff=@explode('.',$index);
if((int)$ff[0]!=0){
}
}
echo',';
}}
?>