Advertisement
dcomicboy

init.php

Aug 8th, 2014
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <?php
  2. // Autoload classes from the classes directory
  3. function __autoload($class_name) {
  4. //include 'classes/'.$class_name . '.php';
  5. //$fileLoc = 'http://www.intgamers.net/games/Nitto/classes/';
  6. //include $fileLoc.'Account.php';
  7. include 'Account.php';
  8. include 'Ban.php';
  9. include 'Car.php';
  10. include 'Challenge.php';
  11. include 'Database.php';
  12. include 'ErrorReport.php';
  13. include 'Helper.php';
  14. include 'Mail.php';
  15. include 'Message.php';
  16. include 'Part.php';
  17. include 'Race.php';
  18. include 'Request.php';
  19. include 'Response.php';
  20. include 'Server.php';
  21. include 'Session.php';
  22. include 'Settings.php';
  23. include 'Team.php';
  24. include 'Version.php';
  25.  
  26. }
  27. //define('DB_HOST', 'localhost');
  28. define('DB_HOST', 'not public');
  29. define('DB_USER', 'not public');
  30. define('DB_PASS', 'not public');
  31. define('DB_NAME', 'not public');
  32.  
  33. // Instantiate an error report object that can be used globablly
  34. $nitto_error = new ErrorReport(ERROR_LOG_LEVEL, ERROR_LOG_FILE, ERROR_LOG_EMAIL);
  35.  
  36. // Instantiate a database object that can be used globally
  37. $nitto_db = new Database(DB_HOST, DB_USER, DB_PASS, DB_NAME);
  38.  
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement