config.php 1017 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. include __DIR__ . "/auth.php";
  3. require_once(__DIR__ . "/../helper/net.php");
  4. $root = get_protocol() . $_SERVER["HTTP_HOST"] . "/";
  5. $base_dir = $_SERVER["DOCUMENT_ROOT"];
  6. $path = [
  7. "img" => [
  8. "content" => $root . "img/content/",
  9. "layout" => $root . "img/layout/",
  10. "monster" => $root . "img/content/monster/",
  11. "awaken" => $root . "img/content/monster/awaken/"
  12. ],
  13. "fonts" => $root . "fonts/",
  14. "css" => $root . "css/",
  15. "js" => $root . "script/",
  16. "application" => "$base_dir../application/",
  17. "controller" => "$base_dir../application/Controller.php",
  18. "entity" => "$base_dir../application/entity/",
  19. "page" => "$base_dir../application/page/",
  20. "frame" => "$base_dir../application/page/frame/",
  21. "handler" => "$base_dir../application/handler/",
  22. "view" => "$base_dir../application/view/",
  23. "helper" => "$base_dir../application/helper/",
  24. ];
  25. ?>