Jump to content

Recommended Posts

  • 1 month later...
Posted

Taken from Hopzone's forum in order to make your life easier.

Enjoy

 

well its actually from my guide on ragezone.. but i see ppl posted it everywhere by now...

anyway i also made an example of acc creation... so ill add it to make it complete..

 

First create acc.php file in same directory as index.. and add this script to it

<?php
  define('mySQL_hostname', '127.0.0.1');  //database IP
  define('mySQL_database', 'Database');  //database name
  define('mySQL_username', 'User');  //database user
  define('mySQL_password', 'Pass');  //database password

  function l2j_encrypt($password) 
    {
        return base64_encode(pack("H*", sha1(utf8_encode($password))));
    }

  $str =  l2j_encrypt($_POST['pass']);

  $user = $_POST["name"];

  $db_link = mysql_pconnect( mySQL_hostname, mySQL_username, mySQL_password )
    or die( 'Error connecting to mysql<br><br>'.mysql_error() );

  $db_select = mysql_select_db( mySQL_database, $db_link )
    or die( 'Error connecting to Database<br><br>'.mysql_error() );

  if ($user == '') { print'Incorrect UserID'; mysql_close(); }
  else {
  $db_add = mysql_query( "INSERT INTO `accounts` VALUES ('$user', '$str', '0', '0', '')" )
    or die( 'Error: '.mysql_error() );
  }
  print 'Account Created<br><br>Enjoy youre gameplay.';
  mysql_close();
?>

 

after that add this to index

 

  <form action="acc.php" method=post>
    UserID:<input type="text" name="name" size="20"><br><br>
    Password:<input type="password" name="pass" size="20"><br><br>
    <input type=submit name="submit" value="Login">
  </form>

 

i think same encryption is used since c4.. so it should work for everyone.

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • Looking for an L2OFF developer for a few paid tasks that need to be done. DM me if interested.
    • Splicho, you know who you are. I also know who I am. I won't keep telling you things. If that's the path you choose. Good for you. Just think how many people have stopped being there for you, and why. Hope you are doing well.
    • That still doesn't explain why you haven't asked me before you sell it to another customer. Yes I said I don't care in the end because you already sold the work.     Aren't you busy unfriending everyone and leave all discords because nobody gave a fuck about your battlecaller software?   Nimera V1 had problems yes (Which i had fixed once they were reported to me), but V2 is out and everyone is happy, so i don't know what you're trying to achieve here.   Yes, I am just being realistic here. Just because someone is my "friend" doesn't mean I am not free to share my opinion or call someone out.    Proto talking about being accountable for things, but still he isn't (PlayNocturn border incident). So ?   Also funny that you are coming here joining this topic after I called Proto out for reselling my artwork, bet he dm'd you saying you should back him up, funny.   I am not licking anybodys ass here lol. Just being honest, talk it out privately. That is not worth a report at all.  
    • Tengo un buffer, ese que aparece en la foto con letras amarillas, es un HTML normal pequeño y quiero dejarlo como en la foto 1, donde aparecen los buffs y el HTML es más grande. ¿Cómo puedo hacer eso?
    • Hola, estoy buscando el Phoenix Event y el sistema de PIN como el de la imagen. ¿Alguien podría pasármelo o darme la URL? es para un h5
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..