How people in my server can do an account in internet ??

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
adistaktos
Posts: 33
Joined: Tue Aug 01, 2006 2:28 am

How people in my server can do an account in internet ??

Post by adistaktos »

How the people who playing in my server can make an account in my site ????
kadar
L2j Veteran
L2j Veteran
Posts: 152
Joined: Sun Apr 10, 2005 1:34 am

Post by kadar »

I've seen servers with over 30,000 accounts. But that does not mean they have that many players.
Last edited by kadar on Fri Aug 25, 2006 2:11 am, edited 1 time in total.
adistaktos
Posts: 33
Joined: Tue Aug 01, 2006 2:28 am

Post by adistaktos »

what do u mean??
i only want to know that !
i didn't say that i have 3 mil players in my server :P
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Post by msknight »

This should get you there. Assuming $con is an already active db connection, $username is the user name, $password is the password they want to use.

Personally, I restrict the characters they can use to create character names, but that's another story. You can leave out the first statement if you want. Thanks to Law for the password encryption code, by the way.

$usrname = strtolower($usrname);
$enc_password = base64_encode(pack("H*", sha1(utf8_encode($password1))));
$todaydate = (time() * 1000);
$sql = "insert into $dblog_l2jdb.accounts (login, password, lastactive, access_level, lastip) values ('$usrname', '$enc_password', '$todaydate', '0', '0')";
$result_i = mysql_query($sql,$con);
if (!$result_i)
{ echo "<h2 class=\"dropmain\">Error - Can't create user account!</h2>"; }
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Post by ThePhoenixBird »

Post Reply