boot.php 295 B

123456789101112
  1. <?php
  2. define("APPROOT", dirname(__FILE__) . "/");
  3. define("LIBROOT", APPROOT . "libs/");
  4. define("VIEWROOT", APPROOT . "views/");
  5. function game_autoloader($class) {
  6. require_once ("libs/" . $class . ".php");
  7. }
  8. spl_autoload_register("game_autoloader");
  9. session_start();
  10. require_once "config.php";