Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Autoload classes from the classes directory
- function __autoload($class_name) {
- //include 'classes/'.$class_name . '.php';
- //$fileLoc = 'http://www.intgamers.net/games/Nitto/classes/';
- //include $fileLoc.'Account.php';
- include 'Account.php';
- include 'Ban.php';
- include 'Car.php';
- include 'Challenge.php';
- include 'Database.php';
- include 'ErrorReport.php';
- include 'Helper.php';
- include 'Mail.php';
- include 'Message.php';
- include 'Part.php';
- include 'Race.php';
- include 'Request.php';
- include 'Response.php';
- include 'Server.php';
- include 'Session.php';
- include 'Settings.php';
- include 'Team.php';
- include 'Version.php';
- }
- //define('DB_HOST', 'localhost');
- define('DB_HOST', 'not public');
- define('DB_USER', 'not public');
- define('DB_PASS', 'not public');
- define('DB_NAME', 'not public');
- // Instantiate an error report object that can be used globablly
- $nitto_error = new ErrorReport(ERROR_LOG_LEVEL, ERROR_LOG_FILE, ERROR_LOG_EMAIL);
- // Instantiate a database object that can be used globally
- $nitto_db = new Database(DB_HOST, DB_USER, DB_PASS, DB_NAME);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement