spec Posted February 24, 2008 Share Posted February 24, 2008 Nice Share! Quote Link to comment Share on other sites More sharing options...
wizzi Posted April 13, 2008 Share Posted April 13, 2008 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. Quote Link to comment Share on other sites More sharing options...
rafael Posted April 23, 2008 Share Posted April 23, 2008 If u have Ucoz site is so easy if u have other site system that's really difficult Quote Link to comment Share on other sites More sharing options...
Relcone Posted May 26, 2008 Share Posted May 26, 2008 Nice share. Thanks Quote Link to comment Share on other sites More sharing options...
geostif Posted June 7, 2008 Share Posted June 7, 2008 thank good share Quote Link to comment Share on other sites More sharing options...
Nimlot Posted June 7, 2008 Share Posted June 7, 2008 nice share! Quote Link to comment Share on other sites More sharing options...
nikosaaa Posted June 18, 2008 Share Posted June 18, 2008 Thank u man Quote Link to comment Share on other sites More sharing options...
hozuke Posted August 2, 2008 Share Posted August 2, 2008 nice thx ... i need this code Quote Link to comment Share on other sites More sharing options...
PIN Posted August 2, 2008 Share Posted August 2, 2008 Thanks, that is very useful for pages Web. Quote Link to comment Share on other sites More sharing options...
gandalf0007 Posted August 4, 2008 Share Posted August 4, 2008 Forgive for my so stupid question, this is or code html? Quote Link to comment Share on other sites More sharing options...
™® Stergios ®™ Posted August 6, 2008 Share Posted August 6, 2008 nice job man Quote Link to comment Share on other sites More sharing options...
tugo1 Posted August 6, 2008 Share Posted August 6, 2008 Take a look http://status.blackout-gaming.net/ Quote Link to comment Share on other sites More sharing options...
devil16 Posted August 6, 2008 Share Posted August 6, 2008 thanks for sharing Quote Link to comment Share on other sites More sharing options...
vitodata Posted August 12, 2008 Share Posted August 12, 2008 thnks Quote Link to comment Share on other sites More sharing options...
pankirt Posted August 26, 2008 Share Posted August 26, 2008 Nice :D Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.