config.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. require_once(__DIR__ . "/helper/net.php");
  3. $app_version = "2";
  4. $root = get_protocol() . $_SERVER["HTTP_HOST"] . "/";
  5. $base_dir = $_SERVER["DOCUMENT_ROOT"] . "/";
  6. $path = [
  7. "img" => [
  8. "root" => $root . "img/",
  9. "icon" => $root . "img/icon/",
  10. "logo" => $root . "img/logo/",
  11. "currency" => $root . "img/currency/",
  12. "unit" => $root . "img/unit/",
  13. "area" => $root . "img/area/",
  14. "skill" => $root . "img/skill/",
  15. "essence" => $root . "img/essence/",
  16. "rune" => $root . "img/rune/",
  17. "grind" => $root . "img/grind/",
  18. "element" => $root . "img/element/",
  19. "skill_guild" => $root . "img/skill_guild/",
  20. "decoration" => $root . "img/decoration/",
  21. "source" => $root . "img/source/",
  22. "skill_leader" => $root . "img/skill_leader/",
  23. "inventory" => $root . "img/inventory/",
  24. "effect" => $root . "img/effect/",
  25. "building" => $root . "img/building/",
  26. ],
  27. "fonts" => $root . "fonts/",
  28. "css" => $root . "css/",
  29. "js" => $root . "script/",
  30. "application" => "$base_dir../application/",
  31. "controller" => "$base_dir../application/Controller.php",
  32. "entity" => "$base_dir../application/entity/",
  33. "page" => "$base_dir../application/page/",
  34. "action" => "$base_dir../application/action/",
  35. "frame" => "$base_dir../application/page/frame/",
  36. "handler" => "$base_dir../application/handler/",
  37. "view" => "$base_dir../application/view/",
  38. "helper" => "$base_dir../application/helper/",
  39. "db_key" => "$base_dir../application/sw.sqlite",
  40. "db_data" => "$base_dir../data/sw.sqlite",
  41. ];
  42. ?>