config.php 1.0 KB

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