Jump to content

klyxmaster

Members
  • Posts

    66
  • Joined

  • Last visited

Reputation Activity

  1. Like
    klyxmaster got a reaction from Denominator in [Request] Working Web Register page!   
    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
  2. Like
    klyxmaster got a reaction from prodigyrick in [Request] Working Web Register page!   
    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
×
×
  • Create New...

Important Information

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