Block Register Mozilla Browser

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

    Block Register Mozilla Browser

    Any1 can help me to add block mozilla browser at page register.php of my script wapdesire???
    this is a register page... please help me..
    Code:
    <?php
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;); 
    echo "<?xml version=\"1.0\"?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    $uid = $_POST["uid"];
    $pwd = $_POST["pwd"];
    $cpw = $_POST["cpw"];
    $email = $_POST["email"];
    include ("config.php");
    include ("core.php");
    connectdb();
    $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name=&#39;sitename&#39;"));
    $sitename = $sitename[0];
    $brws = explode("/",$HTTP_USER_AGENT);
    $ubr = $brws[0];
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
    echo "</head>";
    echo "<body>";
    $ipr = getip();
    $uip = explode(".",$ipr);
    
    if((!canreg())||(isipbanned($ipr,$ubr)))
    {
        echo "
    
    ";
        echo "<img src=\"../images/notok.gif\" border=\"0\" alt=\"X\"/>Registration is closed at the moment";
        echo "</p>";
    }else{
    echo "
    
    ";
    ?>
    [img]../images/point.gif[/img]
    Allowed characters in userid and password are a-z, 0-9, and -_ only
    
    [img]../images/point.gif[/img]
    No vulgar words are accepted in Username
    
    [img]../images/point.gif[/img]
    Username and Password must contain at least 4 characters
    
    [img]../images/point.gif[/img]
    Username must begin with a letter and cannot contain capitals
    
    [img]../images/point.gif[/img]
    Password will be case sensitive
    
    <?php
    $tolog = false;
    if(trim($uid)=="")
    {
        echo registerform(1);
    }else if(trim($pwd)=="")
    {
        echo registerform(2);
    }else if(trim($cpw)=="")
    {
        echo registerform(3);
    }else if(spacesin($uid)||scharin($uid))
    {
        echo registerform(4);
    }else if(spacesin($pwd)||scharin($pwd))
    {
        echo registerform(5);
    }else if($pwd!=$cpw)
    {
        echo registerform(6);
    }else if(strlen($uid)<4)
    {
        echo registerform(7);
    }else if(strlen($pwd)<4)
    {
        echo registerform(8);
    }else if(isdigitf($uid))
    {
        echo registerform(11);
    }else if(checknick($uid)==1)
    {
        echo registerform(12);
    
    }else if(checknick($uid)==2)
    {
        echo registerform(13);
    
    }else if(trim($email)=="")
    {
        echo registerform(14);
    
    }else if(register($uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$info, $ubr)==1)
    {
        echo registerform(9);
    }else if(register($uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$info, $ubr)==2)
    {
        echo registerform(10);
    }else{
    //$brws = explode(" ",$HTTP_USER_AGENT);
        //$ubr = $brws[0];
        //$fp = fopen("gallery/info.txt","a+");
        //fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n");
        //fclose($fp);
        
      echo "Registration completed successfully!
    ";
      echo "
    [b]Username: [/b]$uid
    ";
      echo "[b]Password: [/b]$pwd
    
    ";
      if(validation())
      {
      echo "Please give us up to 12hrs to validate you (normally it be done within an hour) if you have not been after this period of time u can email the owner at: [email]afta_drk@hotmail.com[/email]";
      }
      $tolog = true;
    }
    echo "</p>";
    }
    echo "
    
    ";
    if($tolog)
    {
    $msg = "\n Username: ".$uid." \n Password: ".$pwd." \n\n ".$sitename." is a nice friendly chat community we are glad to hav u with us :o) pls feel free to bring ya m8s along \n\n Thank You\n".$sitename."";
    $subj = "Registration details for ".$sitename."";
    $headers = &#39;From: [email]owner@wapdesire.com[/email]&#39; . "\r\n" .
    &#39;Reply-To: [email]owner@wapdesire.com[/email]&#39; . "\r\n" .
    &#39;X-Mailer: PHP/&#39; . phpversion();
    mail($email, $subj, $msg, $headers);
    echo "<a href=\"login.php?loguid=$uid&amp;logpwd=$pwd\"><img src=\"../images/home.gif\" alt=\"\"/>Login</a>";
    }else{
    echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    }
    echo "</p>";
    echo "</body>";
    ?>
    </html>
    please is important
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    #2
    blocked.php blocks the Browser it should be in Wapdesire script



    Code:
    <?php
    
    $mobile = "blocked2.php";
    $text = $_SERVER[&#39;HTTP_USER_AGENT&#39;];
    $var[0] = &#39;J2ME&#39;;
    $var[1] = &#39;Opera Mini246/&#39;;
    $var[2] = &#39;anonymouse.org&#39;;
    $var[3] = &#39;Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Series 60&#39;;
    $var[4] = &#39;[url]http://www.verkata.com&#39;;[/url]
    
    $result = count($var);
    
    for ($i=0;$i<$result;$i++)
    {
    $ausg = stristr($text, $var[$i]);
    if(strlen($ausg)>0)
    {
    header("location: $mobile");
    echo &#39;
    java/opera mini browser detected
    &#39;;
    break;
    }
    
    }
    ?>




    Comment


      #3
      use what killaklan posted


      and add this line into register.php


      include ("blocked2.php");
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        but how I can block total browser mozilla from only page register???
        mozilla5 mozilla4 and more???
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment

        Working...
        X