Need Help On This Code

Started on the old forum in August 2006 · view the original in the archive · old links redirect here

7 replies · 706 views · started 20 years ago · 1 min read

2 participants
wapistan #1

I have i wapchat script and have i problem on 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>";
?>

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

$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 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..

subzero Super moderator Fellow · 3,954 posts #2
<?php $browser="$HTTP_USER_AGENT"; $ip="$REMOTE_ADDR"; if($browser=="Nokia3650/1.0 (4.13) SymbianOS/6.1 Series60/1.2 Profile/MIDP-1.0 Configuration/CLDC-1.0"|NokiaN-Gage/1.0 (4.03) SymbianOS/6.1 Series60/0.9 Profile/MIDP-1.0 Configuration/CLDC-1.0 $ip=="217.31.234.241|207.44.164.68") { header("Location: [http://wapistan.com/wapchat/defol.wml");](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 " "; echo "</card>"; echo "</wml>"; ?>

$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);
}

try that if not in mobile chat

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

wapistan #3

Sorry but i cant find difference?? Can you highlight what the change code???

wapistan #4

that code for banning a user from chat..My problem is using special chars..When someone register chat he must able to only use a-z and 0-9 chars.. i need a ontime char checker code that can say user "you must use only chars a-z 0- 9 not special.. And if he use a special char it says you cant use that char on resgistration etc..

subzero Super moderator Fellow · 3,954 posts #5

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

wapistan #7

Who can help me to solve that problem? i will give him all chat codes..

*admin control ( clear chat, clear room, banning etc ) *multi room chat *registration (only registered user can enter chat ) *registration in admin controled *smiyles ( color or wb ) *User list option ( under upgrading for user infos etc..) *Sensored words option *private chat with a user and private room (offline msg avaible ) *Admin and mod option ( command like a link and only saw if a user admin or mod ) *User online in each room and total of chat option Thing my work on;

Speacial character problem, Profile for each user with picture, More admin command Searc user by info

in feature i want to add a portal site option like downloads, pictures etc..ONly open for register users..

if you think you can help me on that add me on msn messenger poly2wap@hotmail.com

Or send mail to wapistan@gmail.com

GumSlone Administrator Principal · 1,690 posts #8

Who can help me to solve that problem? i will give him all chat codes..

*admin control ( clear chat, clear room, banning etc ) *multi room chat *registration (only registered user can enter chat ) *registration in admin controled *smiyles ( color or wb ) *User list option ( under upgrading for user infos etc..) *Sensored words option *private chat with a user and private room (offline msg avaible ) *Admin and mod option ( command like a link and only saw if a user admin or mod ) *User online in each room and total of chat option Thing my work on;

Speacial character problem, Profile for each user with picture, More admin command Searc user by info

in feature i want to add a portal site option like downloads, pictures etc..ONly open for register users..

if you think you can help me on that add me on msn messenger poly2wap@hotmail.com

Or send mail to wapistan@gmail.com

<?
if(preg_match("/[^\da-zA-Z-@#!_]+/",$nick))?$error='Not?suported?chars?in?Nickname!
';?

if($error)  echo?$error;
?>

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close