Scripts Website
Autor: ALFA | Publicado: 2011-06-07T19:02:00-07:00


Scripts Website - Ajuda MuOnline


&lt; /tr&gt;
&lt; tr&gt;
&lt; td width="115"&gt;Blood Castle:
&lt; script&gt;
&lt; ?
echo "var minuta2 = ".date("i").";";
echo "var sekunda2 = ".date("s").";";
?&gt;
danagodzina2 = minuta2 * 60 + sekunda2;
if(minuta2 &gt; 30) dopelnej = 3600 - danagodzina2;
else dopelnej = -danagodzina2;
dobc = dopelnej + 25*60;
function changetimea2()
{
dobc = dobc - 1;
if(dobc &lt; -5*60)
{
dobc = 3600 + 30*60;
dobc = dobc-1;
}
min2 = Math.floor(dobc/60);
sec2 = dobc%60;
if(min2 &lt; 0)
{
document.getElementById("timespan2").innerHTML="<!--? echo 'Aberto'; ?-->";
}
else
{
if(min2 &lt; 10) min2 = "0"+min2;
if(sec2 &lt; 10) sec2 = "0"+sec2;
document.getElementById("timespan2").innerHTML=min2+":"+sec2;
}
window.setTimeout("changetimea2()",1000);
}
changetimea2();
&lt; /script&gt;

Reset
QUOTE
&lt; ?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 '';
echo "\n";
echo '';
echo '';
echo '
ScriptsScripts PHP:
Status do servidor:
QUOTE
&lt; ?
$fp = @fsockopen("127.0.0.1", 55901, $errno, $errstr, 1);
if($fp &gt;= 1){
echo 'Online';}
else{ echo 'Offline'; }
?&gt;Número de Usuários Banidos:
QUOTE
&lt; ?php $sql = mssql_query("SELECT count(*) FROM Character where ctlcode=1");
echo mssql_result($sql, 0, 0); ?&gt;Número de Usuários Online:
QUOTE
&lt; ?php
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = 1");
if( mssql_result($sql, 0, 0) &lt;= 50){ //esse script da pra configurar a cor dos numeros
echo ""; //de 0 a 50 fica preto de 50 a 100 fica laranja
echo mssql_result($sql, 0, 0);} //e de 100 pra cima fica vermelho
elseif( mssql_result($sql, 0, 0) &gt;= 50 AND mssql_result($sql, 0, 0) &lt;= 100){
echo "";
echo mssql_result($sql, 0, 0);}
elseif( mssql_result($sql, 0, 0) &gt; 100){
echo "";
echo mssql_result($sql, 0, 0);} ?&gt;Número de Contas:
QUOTE
&lt; ?php
$tacountresult= mssql_query("select memb___id from MEMB_INFO");
$tacount = mssql_num_rows ($tacountresult);
?&gt;
&lt; ?php print "$tacount"; ?&gt;Número de Personagens:
QUOTE
&lt; ?php
$tcharsresult = mssql_query("select Name from Character");
$tchars = mssql_num_rows ($tcharsresult);
?&gt;
&lt; ?php print "$tchars"; ?&gt;Lembrando que para esses scripts funcionarem, é nesessario a conexão com o mssql. exemplo:
QUOTE
&lt; ?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);
?&gt;Codigo do tempo para Abrir BC e DS :Coloque o codico no lugar da pagina que você quiser ou se preferir criei um link
OBS: O codico é em php
&lt; td width="134" class="texto" bgcolor="#000000"&gt;Devil Square: 
&lt; script&gt;
var czas;
&lt; ?
echo "var minuta = ".date("i").";";
echo "var sekunda = ".date("s").";";
?&gt;
//document.write(55-minuta);
danagodzina = minuta * 60 + sekunda;
function changetimea()
{
danagodzina = danagodzina + 1;
czas = 55*60 - danagodzina;
min = Math.floor(czas/60);
sec = czas%60;
if(czas &lt; 0)
{
document.getElementById("timespan").innerHTML="<!--? echo 'Aberto'; ?-->";
}
else
{
if(min &lt; 10) min = "0"+min;
if(sec &lt; 10) sec = "0"+sec;
document.getElementById("timespan").innerHTML=min+":"+sec;
}
window.setTimeout("changetimea()",1000);
}
changetimea();
&lt; /script&gt;
&lt; /font&gt; 
';
echo '
&lt; td bgcolor=F5F5F5&gt;Rank
&lt; td bgcolor=F5F5F5&gt;Personagem
&lt; td bgcolor=F5F5F5&gt;Classe
&lt; td bgcolor=F5F5F5&gt;Level
&lt; td bgcolor=F5F5F5&gt;Strenght
&lt; td bgcolor=F5F5F5&gt;Agility
&lt; td bgcolor=F5F5F5&gt;Vitality
&lt; td bgcolor=F5F5F5&gt;Energy
&lt; td bgcolor=F5F5F5&gt;Resets';
//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 &lt; 100;++$i)
{
$row = mssql_fetch_row($result);
$personag = htmlentities($row[0]);
echo '';
}
echo '

';
echo $i + 1;
echo 'º';
echo $personag;
echo '';
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 '';
echo $row[2];
echo '';
echo $row[3];
echo '';
echo $row[4];
echo '';
echo $row[5];
echo '';
echo $row[6];
echo '';
echo $row[9];
echo'
';
echo '';
echo '';
$conn=mssql_close();
?&gt;
Corrigindo Bug PHP :Na pasta de seu site, tem o config.php, abra-o após abri-lo vc terá q adicionar esse codigo após o <!--?php(uma linha abaixo):&nbsp;$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) &gt; 0)
die("Security Warning!
Forbidden simbols are included, please remove them and try again -&gt; $xa");
Assim ele bloqeará os codigos usados para hakear usando o sql injection