- Joined
- Oct 26, 2012
- Messages
- 2,357
- Reaction score
- 1,086
Is it possible to use the same database structure as Phoenix so we can have one single login for both an old school and a new school?
I'm sorry, but v5 has no website login. v5 didn't have SSO ticket login. Besides, the database would only contain unnecessary tables and rows which makes it unclean, so no, I'll won't make it compatible with Phoenix database.
@Tha
PHP:<?php // Include some important files include 'cls/main.class.php'; include 'cls/database.class.php'; //include 'cls/members.class.php'; //include 'cls/habboclub.class.php'; //include 'cls/news.class.php'; //include 'cls/events.class.php'; //include 'cls/homes.class.php'; // Start the main class Main::initialize();
Why are you including them manually? Why not autoload them? The code can be simplified like this:
PHP:<?php function autoload($classname) { require_once('cls/' . $classname . '.class.php'); } spl_autoload_register('autoload');
Then, you create instances here in this particular file, and then include that file in every page, this way, no need to repeat instancing, etc and all classes are here. If you wish to get your code deeply reviewed by experts,You must be registered to see links
I haven't used autoload before, so that's why. But well, if the stability doesn't change I'd prefer my own code since it's easier for me at the moment Thanks though for the suggestion.