Account Creation website issues *please help* menu

User Tag List

Results 1 to 1 of 1
  1. #1
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Account Creation website issues *please help*

    Heres the problem i have these two files from my Website.

    The accounts creation works fine except it always flags the accounts for WOTLK.
    some people even though they have clicked The Burning Crusade it flags thier account for WOTLK. Can anyone fix these two files so that it will flag it for whichever selection they make on the Register page?

    Register.php
    Code:
    <?php 
    include "../config.php"; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Panakill Repack Account Creation</title>
    <style type="text/css">
    <!--
    body {
    	background-color: #000000;
    	background-image: url(../images/alliance-tile.jpg); background-repeat:repeat-x;
    }
    body,td,th {
    	color: #CC9900;
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 13px;
    }
    input { background:transparent; background-image:url(../images/transpblack.png); color:#FFFFFF; border: 1px solid #333333}
    select { background-color:#000000; color:#FFFFFF; border: 1px solid #333333}
    textarea { background-color:#000000; color:#FFFFFF; border: 1px solid #333333}
    
    -->
    </style></head>
    
    <body>
    <br><br><br><br>
    <table border='0' cellpadding="3" cellspacing="3" align="center" style="border: 1px solid #000000; background-image: url(../images/transp.png)">
       <tr>
         <td colspan="2" align="center"><div style=" padding: 5px; font-size:16px; background-image:url(../images/transpblack.png); border:1px solid black"><strong><?php print "$sitetitle"; ?> Account Creation</strong><br />
         <span style="color:#FFFFFF; font-size:12px">This Will Make An Account, For Both The Website And Ingame.</span> </div></td>
       </tr>
        <tr class='forumrow'>
    	    <td><form method="post" action="reguser.php">*Username:</td><td><input type="text" name="username" size="30"></td></tr>
    <tr class='forumrow'><td>*Password:</td>
    <td><input type="password" name="password" size="30">
    <br></td></tr>
    <tr class='forumrow'><td>*Confirm password:</td><td><input type="password" name="pass2" size="30"><br></td></tr>
    <tr class='forumrow'><td>*E-mail Address:</td><td><input type="text" name="email" size="30"><br></td></tr>
    <tr class='forumrow'>
      <td>Location:</td>
      <td><input type='text' name='location' size='30'><br></td></tr>
    <tr class='forumrow'>
      <td>AIM:</td>
      <td><input type='text' name='aim' size='30'><br></td></tr>
    <tr class='forumrow'>
      <td>Msn Messenger:</td>
      <td><input type='text' name='msn' size='30'><br></td></tr>
    <tr class='forumrow'><td>Account Type:</font></th><td align="center">
    <select name="Select Account Type" type="select">
    <option value="24">Wrath of the Lich King</option>
    <option value="8" >The Burning Crusade</option>
    </select></td>
    
    <tr class='forumrow'><td>Show Profile?</td><td><select name='showprofile'><option value='1'>Yes</option><option value='0'>No</option></select></td></tr>
    
    
      <td valign='top'></td><td></td></tr>
    <tr class='forumrow'><td></td><td><input type="submit" name="submit" value="  Create Account  " style="border:1px solid #666666; background:#000000; color: orange"></form>
    <tr class='forumrow'><td></td><td><A href='getpassword.php'>Forgot Your Password?</a>
    </center>
    
    </td></tr></table>
    
    </body>
    </html>
    Reguser.php
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Account Creation Complete</title>
    <style type="text/css">
    <!--
    body {
    	background-color: #000000;
    	background-image: url(../images/alliance-tile.jpg); background-repeat:repeat-x;
    }
    body,td,th {
    	color: #CC9900;
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 13px;
    }
    a:link {
        color:#CC9900; 
    
    }
    a:visited {
        color:#CC9900;
    	
    }
    a:hover {
        color:#ffffff;
    }
    a:active {
        color:#FF0000;
    
    	
    }
    input { background:transparent; background-image:url(../images/transp.png); color:#FFFFFF; border: 1px solid #333333}
    select { background-color:#000000; color:#FFFFFF; border: 1px solid #333333}
    textarea { background-color:#000000; color:#FFFFFF; border: 1px solid #333333}
    
    -->
    </style></head>
    
    <body>
    <?php
    include "../config.php";
    if(isset($_POST['submit']))
    {
      $bademail=0; //trackers for banned e-mails
      $email=$_POST['email'];
      $email=strip_tags($email);
      $email=trim($email);
      $getbademails="SELECT * from b_banemails";
      $getbademails2=mysql_query($getbademails) or die("SQL ERROR (mail) #1: [".mysql_error()."]");
      while($getbademails3=mysql_fetch_array($getbademails2))
      {
          if(substr_count($email,$getbademails3[email])>0)
          {
             $bademail++;
          }
      }
      if($bademail>0)
      {
        die("<br><br><br><br><table border='0' cellpadding='3' cellspacing='3' align='center' style='border: 1px solid #000000; background-image: url(../images/transp.png)'><tr><td style='background-image: url(../images/transpblack.png)'><center><font style='color: #FF0000'><strong>Error</strong></font></center></td></tr><tr><td><center>That email is banned from registering</center></td></tr></table>");
      }
      $valid=1;
      $username=$_POST['username'];
      $username=strip_tags($username);
      $username=trim($username);
      $password=$_POST['password'];
      $password=trim($password);
      $password=strip_tags($password);
      $signature=$_POST['signature'];
      $signature=trim($signature);
      $pass2=$_POST['pass2'];
      $usercheck="SELECT*from b_users where username='$username' or email='$email'";
      $usercheck2=mysql_query($usercheck);
      while ($usercheck3=mysql_fetch_array($usercheck2))
      {
        $valid=0;
      }
      if($valid==0)
      {
        print "<br><br><br><br><table border='0' cellpadding='3' cellspacing='3' align='center' style='border: 1px solid #000000; background-image: url(../images/transp.png)'>";
         print "<tr><td style='background-image: url(../images/transpblack.png)'><center><font style='color: #FF0000'><strong>Error</strong></font></center></td></tr>";
        print "<tr><td><center>";  
        print "That username has been taken or there is already someone registered with that email or you did not enter email,<br> please <A href='register.php'>try to register again</a>. (or hit back)";
        print "</td></tr></table></center>";
      }
      else if(substr_count($username," ")>0)
      {
         die("Spaces are not allowed in names");
      }
      else if(!preg_match("^[A-Za-z0-9]+$^", "$username"))
      {
        print "There were invalid characters in the username.";
      }   
      else if(strlen($username)>15 || strlen($username)<3)
      {
        print "<br><br><br><br><table border='0' cellpadding='3' cellspacing='3' align='center' style='border: 1px solid #000000; background-image: url(../images/transp.png)'>";
         print "<tr><td style='background-image: url(../images/transpblack.png)'><center><font style='color: #FF0000'><strong>Error</strong></font></center></td></tr>";
        print "<tr><td><center>";  
        die("Username must be between 3 and 15 characters in length");
        print "</center></td></tr></table>";
      }
      else if(strlen($email)<4 || substr_count($email," ")>0)
      {
        die("<br><br><br><br><table border='0' cellpadding='3' cellspacing='3' align='center' style='border: 1px solid #000000; background-image: url(../images/transp.png)'><tr><td style='background-image: url(../images/transpblack.png)'><center><font style='color: #FF0000'><strong>Error</strong></font></center></td></tr><tr><td>You did not enter an email or email has not valid format.</center></td></tr></table>"); 
      }
      else
      {
        if ($password==$pass2 && $_POST['password'])
        {
          $password2=md5($password);
          $supervalue=$value;
          $day=date("U");
          $email=$_POST['email'];
          $location=$_POST['location'];
          $aim=$_POST['aim'];
          $showprofile=$_POST['showprofile'];
          $icq=$_POST['icq'];
          $seedval=$day%100000;
          srand($seedval);
          $key=RAND(1000000,2000000);
          $accounttype=$_POST['Account Type'];
          if($requirekey=="no"||$requirekey=="No") //if you do no require an activation key
          {
           $SQL ="INSERT into b_users (username,password,email,validated,location,AIM,ICQ,showprofile) values('$username','$password2','$email','1','$location','$aim','$icq','$showprofile')";
           mysql_query($SQL) or die(mysql_error()."<br>SQL ERROR");
    	   mysql_select_db($chardb);
    	   $SQLwow ="INSERT into accounts (login,password,gm,banned,lastip,email,flags,forceLanguage) values ('$username','$pass2','','0','".$_SERVER['REMOTE_ADDR']."','$email','$accounttype','enUS')";
    	    mysql_query($SQLwow) or die(mysql_error()."<br>Account with that name already exist in server database, this is admin fault, please notify admin about this problem. Go back to register new account with new username.");
          }
          else //you require an activation key
          {
            $SQL ="INSERT into b_users (username,password,sig, keynode,email,location,AIM,ICQ,showprofile) values('$username','$password2','$signature','$key','$email','$location','$aim','$icq','$showprofile')";
            mysql_query($SQL) or die(mysql_error());
    		mysql_select_db($chardb);
    	   $SQLwow ="INSERT into accounts (login,password,gm,banned,lastip,email,flags,forceLanguage) values ('$username','$pass2','','0','".$_SERVER['REMOTE_ADDR']."','$email','$accounttype','enUS')";
    	    mysql_query($SQLwow) or die(mysql_error());
            mail("$email","Your forum activation key","Paste the URL to activate your account.  $boardpath/activate.php?username=$username&password=$password&keynode=$key");
    		
          } 
          print "<br><br><br><br><table border='0' cellpadding='3' cellspacing='3' align='center' style='border: 1px solid #000000; background-image: url(../images/transp.png)'>";
          print "<tr><td style='background-image: url(../images/transpblack.png)'><center><strong><font style='color: #00CC00'>Success! Account Created!</font></strong></center></td></tr>";
          print "<tr><td>";
          if($requirekey=="no"||$requirekey=="No")
          {
            print "<center>Your Forum And Server Account Were Both Created Without Any Errors<br>You Can Now Log In To The Forums By Clicking Below<br><br>Please Give The Server 2 Minutes To Activate Your Account<br><br><strong><font color='white'>set realmlist $realmlist</font></strong></center><br><br>";
    		print "";
    		print "<tr><td style='background-image: url(../images/transp.png)'><center>Your username is $username.<br>Your password is $pass2.</center></td></tr>";
    
    		print "<tr><td style='background-image: url(../images/transpblack.png)'><center><A href='login.php'>Click here to Login</a></center></td></tr>";
          }
          else
          {
             print "Forum Registration Completed, Check Your Email To Confirm It. Go <A href='login.php'>Here To Login</a>.";
          }
          if($notifyme=="Yes" || $notifyme=="yes")
          {
             mail("$adminemail","Registration at $sitetitle Forums","This Is Just To Inform You That $username Has Just Registered In Your Forums");
          }
          print "</td></tr></table>";
       }
       else
       {
         print "<br><br><br><br><table border='0' cellpadding='3' cellspacing='3' align='center' style='border: 1px solid #000000; background-image: url(../images/transp.png)'>";
         print "<tr><td style='background-image: url(../images/transpblack.png)'><center><font style='color: #FF0000'><strong>Error</strong></font></center></td></tr>";
         print "<tr><td><center>"; 
         print "The Passwords You Entered Did Not Match";
         print "</center></td></tr></table>";
       }
      }
    }
    ?>
    </body>
    </html>
    Thanks in advance to any that can offer help i appreciate it..

    Account Creation website issues *please help*

Similar Threads

  1. account creation website help!
    By trujillo in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-03-2009, 04:33 AM
  2. Arcemu char creation issue - please help
    By Havas in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 03-08-2009, 08:21 PM
  3. Need help with my account creation website
    By strand95 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 02-21-2009, 02:01 PM
  4. Need help with creating a account creation website for mangos!
    By Insanity in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-13-2008, 04:58 AM
  5. [Help]Account Creation Website
    By Lakelog in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 02-24-2008, 03:15 PM
All times are GMT -5. The time now is 07:47 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search