~GT~ Posted May 24, 2007 Share Posted May 24, 2007 Ok When some one registers for my Game They get the code but the code will not allow them to Redo the password It wont even let them into there Base If any 1 can help It would be apriciated BTW my site is www.BlastroidGames.com/GreekWars Oh BTW Heres the Register Page Codeing: <? include "vsys.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <title> Greek Wars :: Massively Multiplayer Online Role Playing Game</title> <link href="css/common.css" rel="stylesheet" type="text/css"> <link href="css/main.css" rel="stylesheet" type="text/css"> <meta name="keywords" content=" mmorpg, role playing, game, online game, text based game, armory, mercenaries, spy, attack, army, battle, recruit, spies, spy skill, weapons, messaging, sabotage, recon, intelligence, pnp, mud, games, stockade, free, browser game"> <meta name="description" content="greekWars is a Massively Multiplayer Online Role Playing Game with over 500,000 players. Players can choose one of four races: Orcs, Humans, Elves and Dwarves and build armies, recruit friends as officers, buy weapons, and spy and attack on each other."> <meta name="author" content="GreekWars"> <SCRIPT language=javascript src="js/js"></SCRIPT> <script language="javascript" type="text/javascript"> <!-- function checkCR(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); if ((evt.keyCode == 13) && (node.type=="text")) {return false;} } document.onkeypress = checkCR; //--> </script></head> <body bgcolor="#110000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#ffffff"> <table width="100%" border="1" cellspacing="1" cellpadding="6"> <tbody><tr> <TD class=menu_cell style="PADDING-LEFT: 15px" vAlign=top width=140> </td> <td style="padding-left: 15px; padding-top: 12px; padding-right: 15px;" valign="top" align="left"> <font color="red"> <? if ($cgi['submit']) { if(($HTTP_SERVER_VARS['REMOTE_ADDR'])&&(isIP($HTTP_SERVER_VARS['REMOTE_ADDR']))){ $echoS= "Oops. Somebody has already registered from this IP. If you beleive it is a fault you can contact us via mail {$conf['mail']}."; } elseif (!$cgi['username']){ $echoS= "You should enter user name."; }elseif (getUserDetailsByName($cgi['username'])){ $echoS= "That username has already been taken."; }elseif($cgi['email']!=$cgi['email2'] ){ $echoS= "Mails you have entered are not equal."; }elseif(!preg_match("/^.+?@.+?\..+?/i",$cgi['email']) ){ $echoS= "You should enter correct e-mail."; }elseif(getUserDetailsByEmail($cgi['email'])){ $echoS= "That e-mail has already been taken."; }elseif(!$cgi['tos']){ $echoS= "You should agree to comply with the terms of service."; }elseif(!$cgi['rules']){ $echoS= "You should agree to comply with the rules."; }elseif(!$cgi['cheat']){ $echoS= "You should promise not to try to gain an unfair advantage by breaking the rules."; } else{ //echo "Registering"; $isResistered=1; $pas=genRandomPas(); createUser($cgi['username'], $cgi['race'], $cgi['email'], $pas, $cgi['uniqid'] ); if ($cgi['uniqid']){ updateUser($cgi['uniqid']," untrainedSold=untrainedSold+1 "); } $us=getUserDetailsByName($cgi['username'], " ID "); addIP($HTTP_SERVER_VARS['REMOTE_ADDR'],$us->ID); //echo "==".$cgi['email']."=="; $ism=mail($cgi['email'],"activation e-mail","Your name is: {$cgi['username']} \n Your activation password is {$pas} "); //echo "--$ism--"; echo "<br><br><center><font color=red>Your activation password was sent to your e-mail.</font></center><br><br><br><br>"; } } ?> </font><br><? if (!$isResistered) { ?> <form action="register.php" method="post"> <table border="5" class="table_lines" cellspacing="3" cellpadding="22"> <tbody> <tr> <th colspan="2">Register</th> </tr> <tr> <td colspan="3"><font color="red"><? echo $echoS; ?></font></td> </tr> <tr> <td>Desired Username:</td> <td><input type="text" name="username" value="<?=$cgi['username']?>"></td> </tr> <tr> <td>Desired Race:</td> <td> <select name="race"> <? for ($i=0; $i<count($conf["race"]);$i++){ echo "<option value=$i "; if ((strpos ( $cgi['join'], $conf['race'][$i]['name'])!== false)||($cgi['race']==$i)) { echo " selected "; } echo " >{$conf['race'][$i]['name']}</option> "; } ?> </select> </td> </tr> <tr> <td>Password:</td> <td>Will be e-mailed to the address below</td> </tr> <tr> <td><b>Valid</b> E-mail Address:</td> <td><input type="text" name="email" value="<?=$cgi['email']?>"></td> </tr> <tr> <td>E-mail Address Again:</td> <td><input type="text" name="email2" value="<?=$cgi['email2']?>"></td> </tr> <tr> <td colspan="2"><input type="checkbox" name="tos" value="true"> I have read and agree to comply with the <a href="tos.php" target="_new">terms of service</a></td> </tr> <tr> <td colspan="2"><input type="checkbox" name="rules" value="true"> I have read and agree to comply with the <a href="help.php#rules" target="_new">rules</a></td> </tr> <tr> <td colspan="2"><input type="checkbox" name="cheat" value="true"> I promise not to try to gain an unfair advantage by breaking the rules</td> </tr> <tr> <td>Commander:</td> <td valign="middle"><? $str="None"; if ($cgi['uniqid']){ $us=getUserDetails($cgi['uniqid']); $str=$us->userName; echo "<input type=hidden name=uniqid value='{$cgi['uniqid']}'>"; echo '<a href="stats.php?id='.$cgi['uniqid'].'">'; } echo $str; if ($cgi['uniqid']){ echo "</a>"; } ?> <font style="font-size: 8pt;"> [Note: This can be changed once you register]</font></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name=submit value="Register"></td> </tr> </tbody> </table> <TR> <input type="hidden" name="hash" value="f7610358ffcc3db6558310ea4a166bcb"> <table border="2" class="table_lines" cellspacing="2" cellpadding="2"> </form> <Center>Will be Offline for 2weeks</Center> <br> <form action="base.php" Method="post"> <input type=hidden name=username> <input type=hidden name=password> <Center> username: <input type="text" name="Username"> Email: <input type="text" name="Email"> Password:<input type="text" name="Password"> <input type="Submit" Value="Login"> <input type=hidden value=93aa2b6a02603399396203313b45827e name=hash> </form> </center><br> <center><a href=""></a> <a href="forgotpass.php">Forgot Password</a></center> <? } include ("bottom.php"); ?> </td> </tr> </tbody></table> </body></html>[code] [/code] Quote Link to comment https://forums.phpfreaks.com/topic/52781-hi-i-need-a-bit-of-helpplease/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.