config.inc 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. define("DOMAIN", "doxen.test");
  3. define("MYSQLI_SERVER", "localhost");
  4. define("MYSQLI_USER", "doxen");
  5. define("MYSQLI_PASS", "doxenpassword");
  6. define("MYSQLI_DB", "doxen");
  7. define("MEMCACHED_SERVER", "localhost");
  8. define("MEMCACHED_PORT", "11211");
  9. define("SOURCE_PATH", "/home/midas/git/doxen_deploy/");
  10. define("DEPLOY_PATH", "/home/midas/public_html/doxen/");
  11. /* --------- Do not edit below this line --------- */
  12. define("ROOT", dirname(__FILE__));
  13. define("LIBROOT", ROOT . "/libs/");
  14. define("VIEWROOT", ROOT . "/views/");
  15. define("CONTROLLERROOT", ROOT . "/controllers/");
  16. define("UPLOAD_PATH", ROOT. "/uploads/");
  17. function doxen_autoload($class) {
  18. $classfile = $class . ".inc";
  19. $libFile = LIBROOT . $classfile;
  20. $controllerFile = CONTROLLERROOT . $classfile;
  21. if (file_exists($libFile)) {
  22. require_once($libFile);
  23. } else if (file_exists($controllerFile)) {
  24. require_once($controllerFile);
  25. }
  26. }
  27. spl_autoload_register("doxen_autoload");
  28. session_start();