- Katılım
- 26 Tem 2010
- Konular
- 19
- Mesajlar
- 189
- Reaksiyon Skoru
- 2
- Altın Konu
- 0
- TM Yaşı
- 15 Yıl 11 Ay
- Başarım Puanı
- 64
- MmoLira
- 0
- DevLira
- 0
HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Arkadaşlar netten bi panel indirdim herşeyini düzenledim , fakat kayıt sayfasından kayıt ola tıkladığımda kayıt olmuyor (kod aşağıda).config.php yede ip ve navicat şifresini düzelttim , her şey tam yani bi bakarmısınız niye böyle oluyor? :SDüzeltilecek bi şey varsa lütfen kodu düzeltip atarmısınız ! Şimdiden teşekkür ederim.
KOD:
<?php
function DeCode($string,$operation,$key='')
{
$key=md5($key);
$key_length=strlen($key);
$string=$operation=='D'?base64_decode($string):substr(md5($string.$key),0,8).$string;
$string_length=strlen($string);
$rndkey=$box=array();
$result='';
for($i=0;$i<=255;$i++)
{
$rndkey[$i]=ord($key[$i%$key_length]);
$box[$i]=$i;
}
for($j=$i=0;$i<256;$i++)
{
$j=($j+$box[$i]+$rndkey[$i])%256;
$tmp=$box[$i];
$box[$i]=$box[$j];
$box[$j]=$tmp;
}
for($a=$j=$i=0;$i<$string_length;$i++)
{
$a=($a+1)%256;
$j=($j+$box[$a])%256;
$tmp=$box[$a];
$box[$a]=$box[$j];
$box[$j]=$tmp;
$result.=chr(ord($string[$i])^($box[($box[$a]+$box[$j])%256]));
}
if($operation=='D')
{
if(substr($result,0,8)==substr(md5(substr($result,8).$key),0,8))
{
return substr($result,8);
}
else
{
return'';
}
}
else
{
return str_replace('=','',base64_encode($result));
}
}
?>
<?php
session_start();
$UserID=$_POST["UserID"];
$Password=$_POST["Password"];
$Email=$_POST["Email"];
$UserName=$_POST["UserName"];
$Sex=$_POST["Sex"];
$IDCard=$_POST["IDCard"];
$mt2regCode=$_POST["mt2regCode"];
$code=$_SESSION["code"];
$Ques=$_POST["Ques"];
$Ques=DeCode($_POST["Ques"],'E','daichao');
$Answ=DeCode($_POST["Answ"],'E','daichao');
$BirthYear=$_POST["BirthYear"];
$BirthMonth=$_POST["BirthMonth"];
$BirthDay=$_POST["BirthDay"];
$Addr=$_POST["Addr"];
$PostCode=$_POST["PostCode"];
$Mobile=$_POST["Mobile"];
$Telephone=$_POST["Telephone"];
?>
<!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=ISO-8859-9" />
<title>OlymposMT2 - Kayıt</title>
</head>
<body>
<?php;
if (strlen($UserID) < 8) {$error=$error."<br>Kullanıcı Adı Geçersiz</br> ";}
if (strlen($Password) < 9) {$error=$error."<br>Sifre 9 Harften Küçük</br>";}
if (strlen($Email) < 7) {$error=$error."<br>Email Adresini Kontrol Ediniz</br>";}
if (strlen($error) > 0){
echo "Kontrol Ediniz href=\"javascript:history.back();\"Geri Dön</a>$error";exit;
}else{
require_once("conn.php");
mysql_select_db("account");
$exec="select * from account where Login='$UserID'";
$result=mysql_query($exec);
$rs=mysql_fetch_object($result);
if($rs){
echo"Hesap Kullanılıyor<a href=\"javascript:history.back();\">Geri Dön</a>";
exit;
}else{
$exec="insert into account (Login,Password,Real_name,Social_id,Email,Phone1,Phone2,Address,Question1,Answer1) values('$UserID',password('$Password'),'$UserName','$IDCard','$Email','$Mobile','$Telephone','$Addr','$Ques','$Answ')";
mysql_query("set names big5 ");
mysql_query("set CHARACTER big5 ");
mysql_query($exec);
//echo mysql_error();
//echo $exec;
//$exec="insert into player.safebox(account_id,size,password) values((select id from account.account where login='$UserID') ,1,'000')";
//mysql_query($exec);
//echo mysql_error();
//echo "<br>".$exec;
?>
<center>
<table width="76%" border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center"><span class="content style2"><h3>Kayıt Başarılı, Hesap Oluşturuldu. İyi Oyunlar.</h3>
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="36%" align="center">Kullanıcı Adı</td>
<td width="64%"><?php echo $UserID?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">
Şifre</td>
<td>***************</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">Şifre</td>
<td >***************</td>
</tr>
</table>
<a href="index.php"><div class="submit"><input type="submit" name="send" id="submit" value="Ana Sayfa" /></div></a>
</center>
<?php
}
}
?>
</body>
</html>
KOD:
<?php
function DeCode($string,$operation,$key='')
{
$key=md5($key);
$key_length=strlen($key);
$string=$operation=='D'?base64_decode($string):substr(md5($string.$key),0,8).$string;
$string_length=strlen($string);
$rndkey=$box=array();
$result='';
for($i=0;$i<=255;$i++)
{
$rndkey[$i]=ord($key[$i%$key_length]);
$box[$i]=$i;
}
for($j=$i=0;$i<256;$i++)
{
$j=($j+$box[$i]+$rndkey[$i])%256;
$tmp=$box[$i];
$box[$i]=$box[$j];
$box[$j]=$tmp;
}
for($a=$j=$i=0;$i<$string_length;$i++)
{
$a=($a+1)%256;
$j=($j+$box[$a])%256;
$tmp=$box[$a];
$box[$a]=$box[$j];
$box[$j]=$tmp;
$result.=chr(ord($string[$i])^($box[($box[$a]+$box[$j])%256]));
}
if($operation=='D')
{
if(substr($result,0,8)==substr(md5(substr($result,8).$key),0,8))
{
return substr($result,8);
}
else
{
return'';
}
}
else
{
return str_replace('=','',base64_encode($result));
}
}
?>
<?php
session_start();
$UserID=$_POST["UserID"];
$Password=$_POST["Password"];
$Email=$_POST["Email"];
$UserName=$_POST["UserName"];
$Sex=$_POST["Sex"];
$IDCard=$_POST["IDCard"];
$mt2regCode=$_POST["mt2regCode"];
$code=$_SESSION["code"];
$Ques=$_POST["Ques"];
$Ques=DeCode($_POST["Ques"],'E','daichao');
$Answ=DeCode($_POST["Answ"],'E','daichao');
$BirthYear=$_POST["BirthYear"];
$BirthMonth=$_POST["BirthMonth"];
$BirthDay=$_POST["BirthDay"];
$Addr=$_POST["Addr"];
$PostCode=$_POST["PostCode"];
$Mobile=$_POST["Mobile"];
$Telephone=$_POST["Telephone"];
?>
<!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=ISO-8859-9" />
<title>OlymposMT2 - Kayıt</title>
</head>
<body>
<?php;
if (strlen($UserID) < 8) {$error=$error."<br>Kullanıcı Adı Geçersiz</br> ";}
if (strlen($Password) < 9) {$error=$error."<br>Sifre 9 Harften Küçük</br>";}
if (strlen($Email) < 7) {$error=$error."<br>Email Adresini Kontrol Ediniz</br>";}
if (strlen($error) > 0){
echo "Kontrol Ediniz href=\"javascript:history.back();\"Geri Dön</a>$error";exit;
}else{
require_once("conn.php");
mysql_select_db("account");
$exec="select * from account where Login='$UserID'";
$result=mysql_query($exec);
$rs=mysql_fetch_object($result);
if($rs){
echo"Hesap Kullanılıyor<a href=\"javascript:history.back();\">Geri Dön</a>";
exit;
}else{
$exec="insert into account (Login,Password,Real_name,Social_id,Email,Phone1,Phone2,Address,Question1,Answer1) values('$UserID',password('$Password'),'$UserName','$IDCard','$Email','$Mobile','$Telephone','$Addr','$Ques','$Answ')";
mysql_query("set names big5 ");
mysql_query("set CHARACTER big5 ");
mysql_query($exec);
//echo mysql_error();
//echo $exec;
//$exec="insert into player.safebox(account_id,size,password) values((select id from account.account where login='$UserID') ,1,'000')";
//mysql_query($exec);
//echo mysql_error();
//echo "<br>".$exec;
?>
<center>
<table width="76%" border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center"><span class="content style2"><h3>Kayıt Başarılı, Hesap Oluşturuldu. İyi Oyunlar.</h3>
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="36%" align="center">Kullanıcı Adı</td>
<td width="64%"><?php echo $UserID?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">
Şifre</td>
<td>***************</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">Şifre</td>
<td >***************</td>
</tr>
</table>
<a href="index.php"><div class="submit"><input type="submit" name="send" id="submit" value="Ana Sayfa" /></div></a>
</center>
<?php
}
}
?>
</body>
</html>
Son düzenleme:


