Advertisement
Guest User

Untitled

a guest
Feb 4th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2.  
  3. ########################################
  4. # @Author Xenous(Lucas) #
  5. # @Regards to Limez,XenoGFX & #
  6. # @ others who supported me during dev #
  7. ########################################
  8.  
  9. //define("XenCMS", true);
  10. if (!defined("XenCMS")) {
  11.  
  12. die('404 Page not found.');
  13. }
  14.  
  15. # Requiring the files. #
  16.  
  17. require_once "inc/inc.config.php";
  18. require_once "inc/class.mysql.php";
  19. require_once "inc/class.users.php";
  20. require_once "inc/class.misc.php";
  21.  
  22. # Defining some variables. #
  23.  
  24. $xHost = $config['mysql']['hostname'];
  25. $xUser = $config['mysql']['user'];
  26. $xPass = $config['mysql']['pass'];
  27. $xDb = $config['mysql']['database'];
  28. $xCredits = $config['user']['credits'];
  29. $xPixels = $config['user']['pixels'];
  30. $xMotto = $config['user']['motto'];
  31. $xLook = $config['user']['look'];
  32. $xRank = $config['user']['rank'];
  33. $ip = $_SERVER['REMOTE_ADDR'];
  34.  
  35. # Actually defining something. #
  36. //define("TPL"," templates/" . $config['url']['template']);
  37. define("EXT", ".php");
  38.  
  39.  
  40. # Defining the classes. #
  41.  
  42. $db = new xSQL($xHost, $xUser, $xPass, $xDb);
  43. $user = new xUsers();
  44. $sec = new xSecurity();
  45. //$tpl = new xTemplate();
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement