config.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "element" => $root . "img/element/",
  17. "skill_guild" => $root . "img/skill_guild/",
  18. "decoration" => $root . "img/decoration/",
  19. "source" => $root . "img/source/",
  20. "skill_leader" => $root . "img/skill_leader/",
  21. "inventory" => $root . "img/inventory/",
  22. "effect" => $root . "img/effect/",
  23. "building" => $root . "img/building/",
  24. ],
  25. "fonts" => $root . "fonts/",
  26. "css" => $root . "css/",
  27. "js" => $root . "script/",
  28. "application" => "$base_dir../application/",
  29. "controller" => "$base_dir../application/Controller.php",
  30. "entity" => "$base_dir../application/entity/",
  31. "page" => "$base_dir../application/page/",
  32. "frame" => "$base_dir../application/page/frame/",
  33. "handler" => "$base_dir../application/handler/",
  34. "view" => "$base_dir../application/view/",
  35. "helper" => "$base_dir../application/helper/",
  36. "db" => "$base_dir../application/sw.sqlite",
  37. ];
  38. ?>