Need Help On This Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need Help On This Code

    I have i wapchat script and have i problem on code;

    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 !=&#39;&#39;) {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 ==&#39;&#39;) {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

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

    #2
    <?php
    <span style="font-size:18pt;line-height:100%">$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");
    }
    header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
    </span>
    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 ::";
    $fpfopen("onay.txt","a");
    @fputs($fp,"$text \r\n");
    @fclose($fp);

    if ($nick !=&#39;&#39;) {echo "islem Tamam.Bilgiler admin tarafindan onaylandigi zaman chate girebilirsiniz!
    ";
    echo "Nickiniz:".$nick."
    ";
    echo "Sifreniz:".$sifre."
    ";
    echo "<a href=\"home.php\">[Chat Girisi]</a>";}

    $fpfopen("nims.txt","r");
    @fclose($fp);
    if ($nick ==&#39;&#39;) {
    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);
    }
    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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


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

      Comment


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

        Comment


          #5
          ok ill make one
          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...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            if you can i will wery happy waiting ..

            Comment


              #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

              Comment


                #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[/b]
                Code:
                <?
                if(preg_match("/[^\da-zA-Z-@#!_]+/",$nick))?$error=&#39;Not?suported?chars?in?Nickname!
                &#39;;?
                
                if($error)  echo?$error;
                ?>
                Advertise your mobile site for FREE with AdTwirl

                Comment

                Working...
                X