I have i wapchat script and have i problem on code;
This is my registration page. it running but when someone write a special character the logins says incorrect couse it seems blank on database username or password.. Also i have a char code but it not enogh
i want only that characters must used.." A, B, C, D, E, F,..........V,Y,Z, AND ONLY 0,1,2,...8,9 "
i need a field checker and says wrong char entered please correct etc..
My mail: wapistan@gmail.com
Msn messenger : poly2wap@hotmail.com
if i solve that problem i will publish my chat..
Code:
<?php
$browser="$REMOTE_ADDR$HTTP_USER_AGENT";
if($browser=="217.31.234.241Nokia3650/1.0 (4.13) SymbianOS/6.1 Series60/1.2 Profile/MIDP-1.0 Configuration/CLDC-1.0"||
$browser=="207.44.164.68NokiaN-Gage/1.0 (4.03) SymbianOS/6.1 Series60/0.9 Profile/MIDP-1.0 Configuration/CLDC-1.0")
{
header("Location: http://wapistan.com/wapchat/defol.wml");
}
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<wml>";
echo "<card title=\"Hesap Aciliyor!..\">";
echo "
";
$text = "$nick::$sifre::$HTTP_USER_AGENT::$REMOTE_ADDR::";
$fp=@fopen("onay.txt","a");
@fputs($fp,"$text \r\n");
@fclose($fp);
if ($nick !='') {echo "islem Tamam.Bilgiler admin tarafindan onaylandigi zaman chate girebilirsiniz!
";
echo "Nickiniz:".$nick."
";
echo "Sifreniz:".$sifre."
";
echo "<a href=\"home.php\">[Chat Girisi]</a>";}
$fp=@fopen("nims.txt","r");
@fclose($fp);
if ($nick =='') {echo "Bu nick Zaten Alinmis.
Baska Bir Nick Secin.
";
echo "<a href=\"luonti.wml\">[Geri Don]</a>";}
echo "</p>";
echo "</card>";
echo "</wml>";
?>
Code:
$swe_from = array("?","ç","ü","?","?","?","ö","Å","Ä","?","$","&","?","ı","ı","İ","?","ş","?","ğ","?","ş","?","o?","o?","?","o?","?");
$swe_to = array("ı","?","?","ğ","ş","o","?","?","?","o","d","j","x","ı","ı","ı","?","ş","?","g","?","ş","ş","?","?","i","?","ğ");
for ($t=0; $t<count($swe_from); $t++)
{
$nimi = str_replace ($swe_from[$t], $swe_to[$t], $nimi);
$salasana = str_replace ($swe_from[$t], $swe_to[$t], $salasana);
$viesti = str_replace ($swe_from[$t], $swe_to[$t], $viesti);
}
i need a field checker and says wrong char entered please correct etc..
My mail: wapistan@gmail.com
Msn messenger : poly2wap@hotmail.com
if i solve that problem i will publish my chat..
fopen("onay.txt","a");
Comment