Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP]Account, character and clan self-management usefull includes.

Skilled Illusionist
Joined
Jan 7, 2007
Messages
347
Reaction score
78
sense you added session_start();
inside inc_auth.php you will get conflicting errors.
But the above script isn't useful if your adding it a website
cause most sites already have the login. What ive done is strip
it down and changed the session and just included it into my
current control panel and added session_start();
If you put it in my file you no more need to put the session_start(); inside inc_auth.php, inc_client.php, inc_clan.php or inc_logout... because it will initialize session for each page.
 
Newbie Spellweaver
Joined
Dec 4, 2010
Messages
59
Reaction score
17
No, anti sql injection..

PHP:
//The well-known antisql injection. Bad enough, it's needed.
function antisql($sql) {
$sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|--|\\\\)/"),"",$sql);
$sql = str_replace("'", "''", $sql);
$sql = trim($sql);
$sql = strip_tags($sql);
$sql = addslashes($sql);
return $sql;
}

Remember the function sql_regcase for php 5.3. is deprecated.
Thanks for the release
 
Back
Top