<?
/*
Script Powered By [DV]Security aka SubSilence (su cheatforge/inforge).
Le stringe del codice risultano essere odrinate , nemmeno un codice copiato..
Non modificare gli script. L'eventuale modifica del codice potrebbe causare un malfunzionamento degllo script e degli script affini, il tutto a vostro rischio e pericolo.
Code and Desing by Security/SubSilence.
*/
include('conn.php');
include('statistiche.php');
function StatoIp($ipAddr)
{
ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error("Invalid IP", E_USER_ERROR) : "";
$ipDetail=array();
$xml = file_get_contents("http://api.hostip.info/?ip=".$ipAddr);
preg_match("@<Hostip>(\s)*<gml:name>(.*?)</gml:name>@si",$xml,$match);
$ipDetail['city']=$match[2];
preg_match("@<countryName>(.*?)</countryName>@si",$xml,$matches);
$ipDetail['country']=$matches[1];
preg_match("@<countryAbbrev>(.*?)</countryAbbrev>@si",$xml,$cc_match);
$ipDetail['country_code']=$cc_match[1]; //assing the country code to array
return $ipDetail;
}
/**********Bonus********/
$create_time=date('Y-m-d H:i:s');
$cash='999999';
$gold_expire='2020-12-12 12:12:12';
$silver_expire='2020-12-12 12:12:12';
$safebox_expire='2020-12-12 12:12:12';
$autoloot_expire='2020-12-12 12:12:12';
$fish_mind_expire='2020-12-12 12:12:12';
$marriage_fast_expire='2020-12-12 12:12:12';
$money_drop_rate_expire='2020-12-12 12:12:12';
if(isset($_POST['Login'])){
$Login=strip_tags(addslashes($_POST['Login']));
$Login=str_replace("'","\'",$Login);
$Login=str_replace('"','\"',$Login);
$Login=str_replace(';','\;',$Login);
$Login=str_replace('--','\--',$Login);
$Login=str_replace('+','\+',$Login);
$Login=str_replace('(','\(',$Login);
$Login=str_replace(')','\)',$Login);
$Login=str_replace('=','\=',$Login);
$Login=str_replace('>','\>',$Login);
$Login=str_replace('<','\<',$Login);
$Login=str_replace('@','\@',$Login);
$Login=str_replace('union','',$Login);
$password=strip_tags(addslashes($_POST['password']));
$password=str_replace("'","\'",$password);
$password=str_replace('"','\"',$password);
$password=str_replace(';','\;',$password);
$password=str_replace('--','\--',$password);
$password=str_replace('+','\+',$password);
$password=str_replace('(','\(',$password);
$password=str_replace(')','\)',$password);
$password=str_replace('=','\=',$password);
$password=str_replace('>','\>',$password);
$password=str_replace('<','\<',$password);
$password=str_replace('@','\@',$password);
$password=str_replace('union','',$password);
$password2=strip_tags(addslashes($_POST['password2']));
$password2=str_replace("'","\'",$password2);
$password2=str_replace('"','\"',$password2);
$password2=str_replace(';','\;',$password2);
$password2=str_replace('--','\--',$password2);
$password2=str_replace('+','\+',$password2);
$password2=str_replace('(','\(',$password2);
$password2=str_replace(')','\)',$password2);
$password2=str_replace('=','\=',$password2);
$password2=str_replace('>','\>',$password2);
$password2=str_replace('<','\<',$password2);
$password2=str_replace('@','\@',$password2);
$password2=str_replace('union','',$password2);
$email=strip_tags(addslashes($_POST['email']));
$email=str_replace("'","\'",$email);
$email=str_replace('"','\"',$email);
$email=str_replace(';','\;',$email);
$email=str_replace('--','\--',$email);
$email=str_replace('+','\+',$email);
$email=str_replace('(','\(',$email);
$email=str_replace(')','\)',$email);
$email=str_replace('=','\=',$email);
$email=str_replace('>','\>',$email);
$email=str_replace('<','\<',$email);
$email=str_replace('@','\@',$email);
$email=str_replace('union','',$email);
$deletepass=strip_tags(addslashes($_POST['deletepass']));
$deletepass=str_replace("'","\'",$deletepass);
$deletepass=str_replace('"','\"',$deletepass);
$deletepass=str_replace(';','\;',$deletepass);
$deletepass=str_replace('--','\--',$deletepass);
$deletepass=str_replace('+','\+',$deletepass);
$deletepass=str_replace('(','\(',$deletepass);
$deletepass=str_replace(')','\)',$deletepass);
$deletepass=str_replace('=','\=',$deletepass);
$deletepass=str_replace('>','\>',$deletepass);
$deletepass=str_replace('<','\<',$deletepass);
$deletepass=str_replace('@','\@',$deletepass);
$deletepass=str_replace('union','',$deletepass);
$codicello = rand(1232133, 803248973974);
mysql_select_db('account');
$query2= mysql_query("SELECT * FROM account WHERE email='$email'");
$num_rows=mysql_num_rows($query2);
if($num_rows >0){$status="<font color=\"red\">Questa mail e' gia usata da qualche altro account! Utilizza una mail diversa!</font>";}else{
$request="INSERT INTO `account`.`account` (`id` ,`Login` ,`password` ,`real_name` ,`social_id` ,`email` ,`phone1` ,`phone2` ,`address` ,`zipcode` ,`create_time` ,`question1` ,`answer1` ,`question2` ,`answer2` ,`is_testor` ,`status` ,`securitycode` ,`newsletter` ,`empire` ,`name_checked` ,`availDt` ,`mileage` ,`cash` ,`gold_expire` ,`silver_expire` ,`safebox_expire` ,`autoloot_expire` ,`fish_mind_expire` ,`marriage_fast_expire` ,`money_drop_rate_expire` ,`ttl_cash` ,`ttl_mileage` ,`channel_company`, `codicello`)
VALUES (NULL , '$Login', PASSWORD('$password'), '', '$deletepass', '$email', NULL , NULL , NULL , '', '$create_time', NULL , NULL , NULL , NULL , '0', 'BLOCK', '', '0', '0', '0', '0000-00-00 00:00:00', '0','$cash' ,'$gold_expire' ,'$silver_expire' ,'$safebox_expire' ,'$autoloot_expire' ,'$fish_mind_expire' ,'$marriage_fast_expire' ,'$money_drop_rate_expire' , '0', '0', '', '$codicello');";
if (($password==$password2) && ($password!="") && ($email!="") && ($deletepass!="")){
if(mysql_query($request)){
$stauts= "<font color=\"red\">L'account $Login è stato creato con successo! ATTIVA L'ACCOUNT VIA MAIL ADESSO PER INIZIARE A GIOCARE!</font><br>";
//set invio email
$a="$email";
$oggetto="Attivazione Account";
$messaggio="Attivazione account $Login - Clicca sul link: http://www.topmt2.it/attiva.php?codicello=$codicello&login=$Login";
$intestazioni= "From:staff@topmt2.it";
$intestazioni .= "Reply-To:staff@topmt2.it";
mail($a, $oggetto, $messaggio, $intestazioni);
//fine set invio email *-*
$ip=$_SERVER['REMOTE_ADDR'];
$Stato=StatoIp($ip);
if ($Stato['country']=="ITALY" || $Stato['country']=="EUROPEAN UNION" || $Stato['country']=="unknown" ){
}else{
$status.="<br><font color=\"red\">Buon Divertimento!</font>";
}
}else{
$status="<font color=\"red\">Questo ID Esiste gia</font>";
}
}else{
$status= "<font color=\"red\">password error</font>";
}}
}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title><? echo"TopMt2 registrazione";?></title>
</head>
<div id="main">
<div id="head"></div>
<div id="nav_t"></div>
<div id="nav">
<? //include menù
include('menu.php');?>
</div>
<div id="nav_b"></div>
<div class="left">
<div class="lbox_t"></div>
<div class="lbox_m">
<center>
Login Server: <img src="images/online1.png"/>
Char Server: <img src="images/online1.png"/>
World Server: <img src="images/online1.png"/>
</center>
</div>
<div class="lbox_b"></div>
<div class="lbox_t"></div>
<div class="lbox_m">
<span class="headline">Registrazione & Convalida</span><br/><br/><div class="left20">
<div id="newstop"></div>
<div id="newscontent">
<table>
<tr>
<td>
<b>[TopMt2 Evento Natalizio]</b>
<br/><br/>
</td>
</tr>
<tr>
<td><p><font color="red">Tool Registrazione TopMt2</font><br />
La registrazione dell'account deve essere convalidata via mail! INSERIRE UNA MAIL VALIDA!</p>
<p>
<?=$status?>
<br />
</p>
<FORM action='reg.php' method='post'>
Id :Massimo 9 caratteri<br />
<input tabindex='1' name='Login' class='text' size='30' /><br />
Password :Massimo 9 Caratteri<br />
<input tabindex='2' name='password' type='password' class='text' size='30' /><br />
Ripeti password :<br />
<input tabindex='3' name='password2' type='password' class='text' size='30' /><br />
Email :<br />
<input tabindex='4' name='email' class='text' size='30' /><br />
Password per cancellare PG :massimo 7 NUMERI<br />
<input tabindex='5' name='deletepass' class='text' size='30' /><br />
<center><button tabindex='6' name='submit' value='submit' class='eingabe-button' type='submit'>Registrati</button></center>
</FORM>
</p>
<p> </p></td>
</tr>
<tr>
<td>
<p style="font-size:9px;"><br/>Von: Ap0kalyps3 am 29.10.2010 um 19:00 Uhr</font>
</td>
</tr>
</table>
</div>
</div> </div>
<div class="lbox_b"></div>
<div class="lbox_t"></div>
<div class="lbox_m">
<span class="headline">Screenshots</span>
<div id="gradi_left"><img src="images/gradient_left.png"></div>
<div id="gradi_right"><img src="images/gradient_right.png"></div>
<div id="right">
<a href="images/screen1.jpg" onclick="return hs.expand(this)"><img src="images/screen1_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen2.jpg" onclick="return hs.expand(this)"><img src="images/screen2_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen3.jpg" onclick="return hs.expand(this)"><img src="images/screen3_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen4.jpg" onclick="return hs.expand(this)"><img src="images/screen4_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen6.jpg" onclick="return hs.expand(this)"><img src="images/screen6_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen7.jpg" onclick="return hs.expand(this)"><img src="images/screen7_th.jpg" style="margin-right:3px;"/></a>
<a href="images/screen5.jpg" onclick="return hs.expand(this)"><img src="images/screen5_th.jpg" style="margin-right:3px;"/></a>
</div>
</div>
<div class="lbox_b"></div>
</div>
<div class="right">
<div class="rbox_t"></div><div class="rbox_m">
<span class="headline">Login</span>
<div class="left20">
<? include('login.php'); ?>
</div>
</div><div class="rbox_b"></div>
<div class="rbox_t"></div>
<div class="rbox_m"><span style="padding-left:20px;"><a href="http://www.megaupload.com/?d=V4WJWG31"><a href="http://www.megaupload.com/?d=V4WJWG31"><img src="images/down.jpg"/></a></a></span></div>
<div class="rbox_b"></div>
<div class="rbox_t"></div>
<div class="rbox_m">
<b>Top 10 Classifica</b>
<div class="left20">
<? include('top10_home.php'); ?></div>
</div>
<div class="rbox_b"></div>
<div class="rbox_t"></div>
<div class="rbox_m">
<span class="headline">Caratteristiche</span><br/>
<span style="font-size:9px; padding-left:19px;">Le caratteristiche si aggiornano ogni 5 min.</span>
<div class="left20">
<b>Server 1</b> - TopMt2
<div id="s1_ucount" style="margin-top:5px;">
<table width="219" cellpadding="0" cellspacing="0">
<tr>
<td width="153"><u>Dettagli:</u></td><td width="51"></tr>
<tr>
<td> Numero Player:</td>
<td style="color:#000;"> </td></tr>
<tr>
<td> Numero Account:</td><td style="color:#000;">25</td></tr>
<tr>
<td> Numero Account attivi:</td><td style="color:#000;">140</td></tr>
<tr>
<td><u>Staff</u></td><td></tr>
<tr>
<td> Nuemro Staffers:</td><td style="color:#000;">13</td></tr>
<tr>
<td> Amministratori:</td><td style="color:#000;">6</td></tr>
<tr>
<td> NON-Amministratori:</td><td style="color:#000;">21</td></tr>
<tr>
<td><u>Top Player</u></td><td></tr>
<tr>
<td> Nome:</td><td style="color:#000;">14</td></tr>
<tr>
<td> Livello:</td><td style="color:#000;">9</td></tr>
<tr>
<td> Razza:</td><td style="color:#000;">32</td></tr>
</table>
</div>
<br/>
</div>
</div>
<div class="rbox_b"></div>
<center></center>
</div>
<div style="clear:left;"></div>
<div id="footer">
© Copyright 2010 - Security aka SubSilence<br/>
Code & Design by Security
</div>
</div>
</html>