10) min = "0"+min; if(sec < 10) sec = "0"+sec; document.getElementById("timespan").innerHTML=min+":"+sec; } window.setTimeout("changetimea()",1000); } changetimea(); < /script> < /font> </td> < /tr> < tr> < td width="115"><font style=""><span class="texto">Blood Castle:</span><span class="textoR"><span id=timespan2></span> < script> < ? echo "var minuta2 = ".date("i").";"; echo "var sekunda2 = ".date("s").";"; ?> danagodzina2 = minuta2 * 60 + sekunda2; if(minuta2 > 30) dopelnej = 3600 - danagodzina2; else dopelnej = -danagodzina2; dobc = dopelnej + 25*60; function changetimea2() { dobc = dobc - 1; if(dobc < -5*60) { dobc = 3600 + 30*60; dobc = dobc-1; } min2 = Math.floor(dobc/60); sec2 = dobc%60; if(min2 < 0) { document.getElementById("timespan2").innerHTML="<? echo 'Aberto'; ?>"; } else { if(min2 < 10) min2 = "0"+min2; if(sec2 < 10) sec2 = "0"+sec2; document.getElementById("timespan2").innerHTML=min2+":"+sec2; } window.setTimeout("changetimea2()",1000); } changetimea2(); < /script> Reset QUOTE < ?php $alogin = "sa"; $apass = "Senha do SQL"; $db = "MuOnline"; $host = "Seu IP Aqui"; $msconnect=mssql_connect($host,$alogin,$apass); $msdb=mssql_select_db("$db",$msconnect); $query = 'select Name,Class,cLevel,Strength,Dexterity,Vitality,Energy,LevelUpPoint,CtlCode,resets from Character order by resets desc , cLevel desc'; $result = mssql_query( $query ); echo '<html>'; echo "<head>\n"; echo '<body>'; echo '<font face=Verdana>'; echo '<center><table cellSpacing=1 width=100% align=center>'; echo '<tr> < td bgcolor=F5F5F5><center><b>Rank</td> < td bgcolor=F5F5F5><b>Personagem</td> < td bgcolor=F5F5F5><b>Classe</td> < td bgcolor=F5F5F5><b>Level</td> < td bgcolor=F5F5F5><b>Strenght</td> < td bgcolor=F5F5F5><b>Agility</td> < td bgcolor=F5F5F5><b>Vitality</td> < td bgcolor=F5F5F5><b>Energy</font></td> < td bgcolor=F5F5F5><b>Resets</font></td>'; //Aqui voce coloca o numero do rank //no caso esta top 100 //se quiser mudar eh soh trocar o 100 pelo numero desejado for($i=0;$i < 100;++$i) { $row = mssql_fetch_row($result); $personag = htmlentities($row[0]); echo '<tr><td width=5% bgcolor=F5F5F5><center><b>'; echo $i + 1; echo 'o</td><td width=21% bgcolor=F5F5F5><table>'; echo $personag; echo '</table></td><td width=19% bgcolor=F5F5F5>'; if($row[8] == 8){ echo 'Game Master'; } else { if($row[1] == 0){ echo 'Dark Wizard'; } if($row[1] == 1){ echo 'Soul Master'; } if($row[1] == 16){ echo 'Dark Knight'; } if($row[1] == 17){ echo 'Blade Knight'; } if($row[1] == 32){ echo 'Elf'; } if($row[1] == 33){ echo 'Muse Elf'; } if($row[1] == 48){ echo 'Magic Gladiator'; } if($row[1] == 64){ echo 'Dark Lord'; } } echo '</td><td width=8% bgcolor=F5F5F5>'; echo $row[2]; echo '</td><td width=9% bgcolor=F5F5F5>'; echo $row[3]; echo '</td><td width=9% bgcolor=F5F5F5>'; echo $row[4]; echo '</td><td width=9% bgcolor=F5F5F5>'; echo $row[5]; echo '</td><td width=9% bgcolor=F5F5F5>'; echo $row[6]; echo '</td><td width=9% bgcolor=F5F5F5>'; echo $row[9]; echo'</td></tr>'; } echo '</table>'; echo '</body>'; echo '</html>'; $conn=mssql_close(); ?> Corrigindo Bug PHP : Na pasta de seu site, tem o config.php, abra-o apos abri-lo vc tera q adicionar esse codigo apos o <?php(uma linha abaixo): $xa = getenv('REMOTE_ADDR'); $badwords = array(";","'","\"","*","union","del","DEL","insert","update","=","drop","sele","$"); foreach($_POST as $value) foreach($badwords as $word) if(substr_count($value, $word) > 0) die("Security Warning!<br />Forbidden simbols are included, please remove them and try again -> $xa"); Assim ele bloqeara os codigos usados para hakear usando o sql injection