plz help me 2 fix diz!

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

    plz help me 2 fix diz!

    This is register.php and when i register my self and click submit it opens page wid back option,plz can any1 tell me watz da wrong wid diz register.php and how can i fix diz?!
    Code:
    <?php
    
    include ("config.php"); 
    
    include ("core.php"); 
    
    include ("reload.php"); 
    
    echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML Mobile 1.0//EN\"". " \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    
    ?>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
    <title>Registration</title>
    
    <meta forua="true" http-equiv="Cache-Control" content="no-cache"/>
    
    <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/><?php 
    
    connectdb();
    
    $pstyle4 = vhome5();
    
    
    
    
    
      echo xhtmlhead0("REGISTER",$pstyle4);
    
       
    
    ?>
    
    </head>
    
    <body>
    
    <?php 
    
    echo "<div class=\"content\">EASTWAP</div>\n";
    
    
    
    $uid = $_POST["uid"]; 
    
    $pwd = $_POST["pwd"]; 
    
    $bdt = $_POST["bdt"]; 
    
    $bdu = $_POST["bdu"];
    
    $bdv = $_POST["bdv"];
    
    $email=$_POST["email"];
    
    $bdy = $bdv."-".$bdu."-".$bdt;
    
    $cpw = $_POST["cpw"];
    
    $sex = $_POST["usex"];
    
    $location = $_POST["uloc"];
    
    //$likes = $_POST["likes"];
    
    //$hates = $_POST["hates"];
    
    $ms = $_POST["ms"];
    
    //$signature = $_POST["signature"];
    
    $rname = $_POST["rname"];
    
    $lname = $_POST["lname"];
    
    //$avatar = $_POST["avatar"];
    
    $canreg=canreg();
    
    
    
    if($canreg=='0'){
    
    echo "<p>"; 
    
    echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Registration is presently closed, please try later."; 
    
    echo "</p></small></div></div></body></html>";
    
    exit();
    
    
    
    }
    
    ?> 
    
    
    
    <?  
    
    if(trim($uid)==""){ 
    
    echo registerform(1); 
    
    }else if(trim($pwd)==""){ 
    
    echo registerform(2); 
    
    }else if(trim($cpw)==""){ 
    
    echo registerform(3); 
    
    }else if(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)<1){ 
    
    echo registerform(7); 
    
    } 
    
    else if(strlen($pwd)<3){
    
    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(register($uid,$rname,$lname,$pwd,$sex,$bdy,$location,$ms,$email)==1){ 
    
    echo registerform(9); 
    
    }
    
    else if(register($uid,$rname,$lname,$pwd,$sex,$bdy,$location,$ms,$email)==2){ 
    
    echo registerform(10); 
    
    }
    
    
    
    else {
    
    
    
    $usid = mysql_fetch_array(mysql_query("SELECT id from ibwf_users WHERE name = '$uid'"));
    
    
    
    if ($canreg=='2'){
    
    
    
    $ptime=time()+2*24*60*60;
    
    $moutb=mysql_query("INSERT INTO ibwf_penalties SET uid='".$usid[0]."', penalty='0', exid='4', timeto='".$ptime."', pnreas='You have just registered.', ipadd='".$REMOTE_ADDR."', browserm='".$HTTP_USER_AGENT."'");
    
    $mforb=mysql_query("INSERT INTO ibwf_penalties SET uid='".$usid[0]."', penalty='3', exid='4', timeto='".$ptime."', pnreas='You have just registered.', ipadd='".$REMOTE_ADDR."', browserm='".$HTTP_USER_AGENT."'");
    
    $mshob=mysql_query("INSERT INTO ibwf_penalties SET uid='".$usid[0]."', penalty='4', exid='4', timeto='".$ptime."', pnreas='You have just registered.', ipadd='".$REMOTE_ADDR."', browserm='".$HTTP_USER_AGENT."'");
    
    $outb = mysql_query("UPDATE ibwf_users SET inboxb='1' WHERE id='".$usid[0]."'");
    
    $forb = mysql_query("UPDATE ibwf_users SET forumb='1' WHERE id='".$usid[0]."'");
    
    $shob = mysql_query("UPDATE ibwf_users SET shoutb='1' WHERE id='".$usid[0]."'");
    
    
    
    mysql_query("UPDATE ibwf_users SET lastpnreas='You have just registered, please wait until your account gets validated.', ua='$HTTP_USER_AGENT', ip='$REMOTE_ADDR' WHERE id='".$usid[0]."'");
    
    
    
    mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='<b>".getnick_uid($usid[0])."</b> has just registered and is currently Outbox, Shoutbox and Forum blocked.', actdt='".time()."'");
    
    
    
    /*echo "<p><b>Registration completed successfully!</b><br/>Your ID is presently banned. You can login after it is validated by our mods. You may login after that. This process can take a maximum of 24 hours. Normally it takes less than an hour.</p></small></div></div></body></html>";*/
    
    echo "<p><b>Registration completed successfully!!</b>";
    
    echo "<br/>You may login now. <a 
    
    
    
    href=\"login.php?user=$uid&amp;pass=$pwd\">Click here</a> to login.</p></small></div></div></body></html>";
    
    exit();
    
    
    
    }
    
    else
    
    {
    
    mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='$uid has just signed up.', actdt='".time()."'");
    
    
    
    $logit = mysql_query("UPDATE ibwf_users SET ua='$HTTP_USER_AGENT', ip='$REMOTE_ADDR' WHERE id=$usid[0]");
    
    
    
    if ($logit) {
    
    echo "<p><b>Registration completed successfully!!</b>";
    
    echo "<br/>You may login now. <a 
    
    
    
    href=\"login.php?user=$uid&amp;pass=$pwd\">Click here</a> to login.</p>"; 
    
    
    
    }
    
    echo "<p><a href=\"index.php\">Back</a></p>"; 
    
    echo "</small></div></div></body></html>";
    
    
    
    exit();
    
    } 
    
    
    
    }
    
    
    
    ?> 
    
    </small></div></div></body></html>
    Last edited by riderz; 25.07.10, 05:35.

    #2
    can any1 help me?

    Comment


      #3
      PHP Code:
      <?php

      include ("config.php"); 

      include (
      "core.php"); 

      include (
      "reload.php"); 

      echo(
      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>");

      echo 
      "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML Mobile 1.0//EN\""" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";

      ?>

      <html xmlns="http://www.w3.org/1999/xhtml">

      <head>

      <title>Registration</title>

      <meta forua="true" http-equiv="Cache-Control" content="no-cache"/>

      <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/><?php 

      connectdb
      ();

      $pstyle4 vhome5();





        echo 
      xhtmlhead0("REGISTER",$pstyle4);

         

      ?>

      </head>

      <body>

      <?php 

      echo "<div class=\"content\">EASTWAP</div>\n";



      $uid $_POST["uid"]; 

      $pwd $_POST["pwd"]; 

      $bdt $_POST["bdt"]; 

      $bdu $_POST["bdu"];

      $bdv $_POST["bdv"];

      $email=$_POST["email"];

      $bdy $bdv."-".$bdu."-".$bdt;

      $cpw $_POST["cpw"];

      $sex $_POST["usex"];

      $location $_POST["uloc"];

      //$likes = $_POST["likes"];

      //$hates = $_POST["hates"];

      $ms $_POST["ms"];

      //$signature = $_POST["signature"];

      $rname $_POST["rname"];

      $lname $_POST["lname"];

      //$avatar = $_POST["avatar"];

      $canreg=canreg();



      if(
      $canreg=='0'){

      echo 
      "<p>"

      echo 
      "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Registration is presently closed, please try later."

      echo 
      "</p></small></div></div></body></html>";

      exit();



      }

      ?> 



      <?  

      if(trim($uid)==""){ 

      echo registerform(1); 

      }else if(trim($pwd)==""){ 

      echo registerform(2); 

      }else if(trim($cpw)==""){ 

      echo registerform(3); 

      }else if(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)<1){ 

      echo registerform(7); 



      else if(strlen($pwd)<3){

      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(register($uid,$rname,$lname,$pwd,$sex,$bdy,$location,$ms,$email)==1){ 

      echo registerform(9); 

      }

      else if(register($uid,$rname,$lname,$pwd,$sex,$bdy,$location,$ms,$email)==2){ 

      echo registerform(10); 

      }



      else {



      $usid = mysql_fetch_array(mysql_query("SELECT id from ibwf_users WHERE name = '$uid'"));



      if ($canreg=='2'){



      $ptime=time()+2*24*60*60;

      $moutb=mysql_query("INSERT INTO ibwf_penalties SET uid='".$usid[0]."', penalty='0', exid='4', timeto='".$ptime."', pnreas='You have just registered.', ipadd='".$REMOTE_ADDR."', browserm='".$HTTP_USER_AGENT."'");

      $mforb=mysql_query("INSERT INTO ibwf_penalties SET uid='".$usid[0]."', penalty='3', exid='4', timeto='".$ptime."', pnreas='You have just registered.', ipadd='".$REMOTE_ADDR."', browserm='".$HTTP_USER_AGENT."'");

      $mshob=mysql_query("INSERT INTO ibwf_penalties SET uid='".$usid[0]."', penalty='4', exid='4', timeto='".$ptime."', pnreas='You have just registered.', ipadd='".$REMOTE_ADDR."', browserm='".$HTTP_USER_AGENT."'");

      $outb = mysql_query("UPDATE ibwf_users SET inboxb='1' WHERE id='".$usid[0]."'");

      $forb = mysql_query("UPDATE ibwf_users SET forumb='1' WHERE id='".$usid[0]."'");

      $shob = mysql_query("UPDATE ibwf_users SET shoutb='1' WHERE id='".$usid[0]."'");



      mysql_query("UPDATE ibwf_users SET lastpnreas='You have just registered, please wait until your account gets validated.', ua='$HTTP_USER_AGENT', ip='$REMOTE_ADDR' WHERE id='".$usid[0]."'");



      mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='<b>".getnick_uid($usid[0])."</b> has just registered and is currently Outbox, Shoutbox and Forum blocked.', actdt='".time()."'");



      /*echo "<p><b>Registration completed successfully!</b><br/>Your ID is presently banned. You can login after it is validated by our mods. You may login after that. This process can take a maximum of 24 hours. Normally it takes less than an hour.</p></small></div></div></body></html>";*/

      echo "<p><b>Registration completed successfully!!</b>";

      echo "<br/>You may login now. <a 



      href=\"login.php?user=$uid&amp;pass=$pwd\">Click here</a> to login.</p></small></div></div></body></html>";

      exit();



      }

      else

      {

      mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='$uid has just signed up.', actdt='".time()."'");



      $logit = mysql_query("UPDATE ibwf_users SET ua='$HTTP_USER_AGENT', ip='$REMOTE_ADDR' WHERE id=$usid[0]");



      if ($logit) {

      echo "<p><b>Registration completed successfully!!</b>";

      echo "<br/>You may login now. <a 



      href=\"login.php?user=$uid&amp;pass=$pwd\">Click here</a> to login.</p>"; 



      }



      echo "</small></div></div></body></html>";



      exit();





      }



      ?> 

      </small></div></div></body></html>
      try now
      Nice Effects

      Comment


        #4
        thnx m8,i will test..

        Comment

        Working...
        X