config.php 878 B

12345678910111213141516171819202122232425262728
  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. ],
  11. "fonts" => $root . "fonts/",
  12. "css" => $root . "css/",
  13. "demo" => $root . "demo/",
  14. "js" => $root . "js/",
  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. "view" => "$base_dir../application/view/",
  20. "helper" => "$base_dir../application/helper/",
  21. "string" => "$base_dir../application/view/string/"
  22. ];
  23. ?>