Yardımcı olursanız sevinirim
<?php
$deger=$_POST["id"];
if ($deger=="top"){
?>
<center><span style="text-decoration:underline;font-size:25px;font-family:Comic Sans;font-weight:bold;">Top 10 SrO PvP ServeR & Server Online Player Güncelleme 3 Dk.</span></center>
<center><span style="text-decoration:underline;font-size:15px;font-family:Comic Sans;font-weight:">Server Online Durumları Server Sunucusundan Otomatik Olarak Ãekilir. BaÄımsız ve Gerçek Anlık Online Sayılarıdır</span></center>
<center><span>ip Adresini BildiÄiniz Bir Serveri Ekleyerek Gerçek Online Playerlerini Listeleyebilirsiniz.</span></center>
<table width="800" height="30" id="toptbl" class="toptbl">
<tr class="trclass">
<th width="33" height="30"class="sbrc1" scope="col"><center>No</center></th>
<th width="200" height="30"class="sbrc3" scope="col"><center>Server Name</center></th>
<th width="300" height="30"class="sbrc9" scope="col"><center>Notice</center></th>
<th width="150" height="30"class="sbrc4" scope="col"><center>Online Players</center></th>
<th width="107" height="30"class="sbrc5" scope="col"><center>Status</center></th>
<th width="110" height="30"class="sbrc6" scope="col"><center>Since</center></th>
<th width="50" height="30"class="sbrc7" scope="col"><center>Website</center></th>
<th width="50" height="30"class="sbrc8" scope="col"><center>Vote</center></th>
</tr>
<?php
include ('dbconfig.php');
$sql = "SELECT * FROM stats where puan > 0 ORDER BY puan DESC limit 10";
$i = "0" ;
$ergebnis = mysql_query($sql);
if($ergebnis){
while($row = mysql_fetch_object($ergebnis))
{
$i = $i + 1 ;
if ($i % 2 ==0){
$renk="#660000";
}else{$renk="#000";}
if ($row->status=="Online"){$zrenk="#00FF00";}
if ($row->status=="Offline"){$zrenk="#F00";}
$href= "onclick=\"window.open('index.php?shw=sv&id=$row->id')\"";
$href2= "onclick=\"window.open('$row->site')\"";
$votearti="onclick=\"voteUp($row->id,1);\"";
$voteeksi="onclick=\"voteDown($row->id,0);\"";
echo "
<center>
<tr style='background:".$renk.";'>
<center>
<td class=\"sbrc1\" ><font color=#FFF><span id='lnk' style='cursor:pointer;' ".$href."><center>$i</center></span></font></td>
<td class=\"sbrc3\"><font color=#CC9900><span id='lnk' style='cursor:pointer;' ".$href.">$row->name</span></font></td>
<td class=\"sbrc9\"><font color=#FFF><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->notice</span></center></font></td>
<td class=\"sbrc4\"><font color=#CC9900><center><span id='lnk' style='cursor:pointer;' ".$href."><b>$row->cur / $row->max</b></span></center></font></td>
<td class=\"sbrc5\"><font color=".$zrenk."><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->status</span></center></font></td>
<td class=\"sbrc6\"><font color=#CC9900><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->acilis</span></center></font></td>
<td class=\"sbrc7\"><font color=#99FFFF><center><span id='lnk' style='cursor:pointer;' ".$href2.">Visit</span></center></font></td>
<td class=\"sbrc8\"><font color=#99FFFF><center><span id='lnk' style='cursor:pointer;' ".$votearti.">(+)</span><span id='lnk' style='cursor:pointer;' ".$voteeksi.">(-)</span></center></font></td>
</tr>
</center>
<center>
";
}
echo "</td>
</tr>
</table>"; }else{echo "Hata : Bilgi Alınamıyor";}
mysql_close();
?>
<td height="3"></tr>
</table>
<?php } if ($deger=="last"){ ?>
<center><span style="text-decoration:underline;font-size:25px;font-family:Comic Sans;font-weight:bold;">Last 25 Server are listing & Son Eklenen 25 SrO PvP Server</span></center>
<table width="800" height="30" id="toptbl" class="toptbl">
<tr class="trclass">
<th width="33" height="30"class="sbrc1" scope="col"><center>No</center></th>
<th width="200" height="30"class="sbrc3" scope="col"><center>Server Name</center></th>
<th width="300" height="30"class="sbrc9" scope="col"><center>Notice</center></th>
<th width="150" height="30"class="sbrc4" scope="col"><center>Online Players</center></th>
<th width="107" height="30"class="sbrc5" scope="col"><center>Status</center></th>
<th width="110" height="30"class="sbrc6" scope="col"><center>Since</center></th>
<th width="50" height="30"class="sbrc7" scope="col"><center>Website</center></th>
<th width="50" height="30"class="sbrc8" scope="col"><center>Vote</center></th>
</tr>
<?php
include ('dbconfig.php');
$sql = "SELECT * FROM stats ORDER BY id DESC limit 25";
$i = "0" ;
$ergebnis = mysql_query($sql);
if($ergebnis){
while($row = mysql_fetch_object($ergebnis))
{
$i = $i + 1 ;
if ($i % 2 ==0){
$renk="#660000";
}else{$renk="#000";}
if ($row->status=="Online"){$zrenk="#00FF00";}
if ($row->status=="Offline"){$zrenk="#F00";}
$href= "onclick=\"window.open('index.php?shw=sv&id=$row->id')\"";
$href2= "onclick=\"window.open('$row->site')\"";
$votearti="onclick=\"voteUp($row->id,1);\"";
$voteeksi="onclick=\"voteDown($row->id,0);\"";
echo "
<center>
<tr style='background:".$renk.";'>
<center>
<td class=\"sbrc1\" ><font color=#FFF><span id='lnk' style='cursor:pointer;' ".$href."><center>$i</center></span></font></td>
<td class=\"sbrc3\"><font color=#CC9900><span id='lnk' style='cursor:pointer;' ".$href.">$row->name</span></font></td>
<td class=\"sbrc9\"><font color=#FFF><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->notice</span></center></font></td>
<td class=\"sbrc4\"><font color=#CC9900><center><span id='lnk' style='cursor:pointer;' ".$href."><b>$row->cur / $row->max</b></span></center></font></td>
<td class=\"sbrc5\"><font color=".$zrenk."><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->status</span></center></font></td>
<td class=\"sbrc6\"><font color=#CC9900><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->acilis</span></center></font></td>
<td class=\"sbrc7\"><font color=#99FFFF><center><span id='lnk' style='cursor:pointer;' ".$href2.">Visit</span></center></font></td>
<td class=\"sbrc8\"><font color=#99FFFF><center><span id='lnk' style='cursor:pointer;' ".$votearti.">(+)</span><span id='lnk' style='cursor:pointer;' ".$voteeksi.">(-)</span></center></font></td>
</tr>
</center>
<center>
";
}
echo "</td>
</tr>
</table>"; }else{echo "Hata : Bilgi Alınamıyor";}
mysql_close();
?>
<?php } if ($deger=="all"){?>
<center><span style="text-decoration:underline;font-size:25px;font-family:Comic Sans;font-weight:bold;">All Servers</span></center>
<table width="800" height="30" id="toptbl" class="toptbl">
<tr class="trclass">
<th width="33" height="30"class="sbrc1" scope="col"><center>No</center></th>
<th width="200" height="30"class="sbrc3" scope="col"><center>Server Name</center></th>
<th width="300" height="30"class="sbrc9" scope="col"><center>Notice</center></th>
<th width="150" height="30"class="sbrc4" scope="col"><center>Online Players</center></th>
<th width="107" height="30"class="sbrc5" scope="col"><center>Status</center></th>
<th width="110" height="30"class="sbrc6" scope="col"><center>Since</center></th>
<th width="50" height="30"class="sbrc7" scope="col"><center>Website</center></th>
<th width="50" height="30"class="sbrc8" scope="col"><center>Vote</center></th>
</tr>
<?php
include ('dbconfig.php');
$sql = "SELECT * FROM stats ORDER BY puan DESC";
$i = "0" ;
$ergebnis = mysql_query($sql);
if($ergebnis){
while($row = mysql_fetch_object($ergebnis))
{
$i = $i + 1 ;
if ($i % 2 ==0){
$renk="#660000";
}else{$renk="#000";}
if ($row->status=="Online"){$zrenk="#00FF00";}
if ($row->status=="Offline"){$zrenk="#F00";}
$href= "onclick=\"window.open('index.php?shw=sv&id=$row->id')\"";
$href2= "onclick=\"window.open('$row->site')\"";
$votearti="onclick=\"voteUp($row->id,1);\"";
$voteeksi="onclick=\"voteDown($row->id,0);\"";
echo "
<center>
<tr style='background:".$renk.";'>
<center>
<td class=\"sbrc1\" ><font color=#FFF><span id='lnk' style='cursor:pointer;' ".$href."><center>$i</center></span></font></td>
<td class=\"sbrc3\"><font color=#CC9900><span id='lnk' style='cursor:pointer;' ".$href.">$row->name</span></font></td>
<td class=\"sbrc9\"><font color=#FFF><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->notice</span></center></font></td>
<td class=\"sbrc4\"><font color=#CC9900><center><span id='lnk' style='cursor:pointer;' ".$href."><b>$row->cur / $row->max</b></span></center></font></td>
<td class=\"sbrc5\"><font color=".$zrenk."><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->status</span></center></font></td>
<td class=\"sbrc6\"><font color=#CC9900><center><span id='lnk' style='cursor:pointer;' ".$href.">$row->acilis</span></center></font></td>
<td class=\"sbrc7\"><font color=#99FFFF><center><span id='lnk' style='cursor:pointer;' ".$href2.">Visit</span></center></font></td>
<td class=\"sbrc8\"><font color=#99FFFF><center><span id='lnk' style='cursor:pointer;' ".$votearti.">(+)</span><span id='lnk' style='cursor:pointer;' ".$voteeksi.">(-)</span></center></font></td>
</tr>
</center>
<center>
";
}
echo "</td>
</tr>
</table>"; }else{echo "Hata : Bilgi Alınamıyor";}
mysql_close();
?>
<?php }?>