config.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. "root" => $root . "img/",
  8. "icon" => $root . "img/icon/",
  9. "logo" => $root . "img/logo/",
  10. "currency" => $root . "img/currency/",
  11. "unit" => $root . "img/unit/",
  12. "area" => $root . "img/area/",
  13. "skill" => $root . "img/skill/",
  14. "essence" => $root . "img/essence/",
  15. "rune" => $root . "img/rune/",
  16. "grind" => $root . "img/grind/",
  17. "element" => $root . "img/element/",
  18. "skill_guild" => $root . "img/skill_guild/",
  19. "decoration" => $root . "img/decoration/",
  20. "source" => $root . "img/source/",
  21. "skill_leader" => $root . "img/skill_leader/",
  22. "inventory" => $root . "img/inventory/",
  23. "effect" => $root . "img/effect/",
  24. "building" => $root . "img/building/",
  25. ],
  26. "fonts" => $root . "fonts/",
  27. "css" => $root . "css/",
  28. "js" => $root . "script/",
  29. "application" => "$base_dir../application/",
  30. "controller" => "$base_dir../application/Controller.php",
  31. "entity" => "$base_dir../application/entity/",
  32. "page" => "$base_dir../application/page/",
  33. "frame" => "$base_dir../application/page/frame/",
  34. "handler" => "$base_dir../application/handler/",
  35. "view" => "$base_dir../application/view/",
  36. "helper" => "$base_dir../application/helper/",
  37. "db" => "$base_dir../application/sw.sqlite",
  38. ];
  39. ?>