Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/24/2014 in all areas

  1. If I post this wrong section - delete it. just helping the beggers :-) (where's your sign!!) something simple quick and dirty!! did it in `10min - hey what do you want for free!!! HTML <html> <head> </head> <body> <center> <form method="post"> <p>Account Password Generator <br/> for use with Mangos Private Server Engine</p> <?php echo $error_msg."<p/>";?> <table> <tr> <td align="right">Account Name:</td><td><input type="text" name="username"></td></tr><tr> <td align="right">Password:</td><td><input type="password" name="password"></td></tr><tr> <td colspan="2" align="right"><input type="submit" name="submit" value="Register"></td> </tr> </table> </form> </body> </html> PHP section <?php $error_msg = ""; //CREATE A DUMMY ERROR MSG if(isset($_REQUEST['submit'])){ //CHECK IF SUBMIT BUTTON WAS PRESSED $un = $_REQUEST['username']; //GET USERNAME $pw = $_REQUEST['password']; //GET PW if($un == "" || $pw == ""){ //MAKE SURE THEY ARE NOT NULL $error_msg = " Please make " ."Sure all feilds are complete"; //CREATE AN ERROR MESSAGES }else{ //OTHERWISE THINGS ARE GOOD $newName = sha1(strtoupper($un). ":".strtoupper($pw)); //CREATE THE PW. <-- fix this line if encypt has changed echo "<center>ACCOUNT INFO:<P/>"; //SHOW IT. echo "ID: ".strtoupper($un). " PW: ".strtoupper($newName); die(); } } If nothing has changed in the encryption this should work for a simple plugin for any website. If not, fix the part highlighted in red. I think there are other post like this just search around. mods: I know this should go in a different area, just replying
    1 point
  2. Beggars can't be choosers. You could always take it and rewrite it for your purposes to make it look and function better. Or take the registration system out of the Mangos one and change 3 or 4 lines to make it work for Skyfire. It's actually really easy.
    1 point
  3. 1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.