index.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCore UNA Core
  7. * @{
  8. */
  9. if (!file_exists("./inc/header.inc.php")) {
  10. // this is dynamic page - send headers to not cache this page
  11. $now = gmdate('D, d M Y H:i:s') . ' GMT';
  12. header("Expires: $now");
  13. header("Last-Modified: $now");
  14. header("Cache-Control: no-cache, must-revalidate");
  15. header("Pragma: no-cache");
  16. echo "It seems to be script is <b>not</b> installed.<br />\n";
  17. if ( file_exists( "install/index.php" ) ) {
  18. echo "Please, wait. Redirecting you to installation form...<br />\n";
  19. echo "<script language=\"javascript\">location.href = 'install/index.php';</script>\n";
  20. }
  21. exit;
  22. }
  23. require_once('./inc/header.inc.php');
  24. require_once(BX_DIRECTORY_PATH_INC . "profiles.inc.php");
  25. if (!isLogged() && getParam('sys_site_splash_enabled') && false === strpos($_SERVER['HTTP_USER_AGENT'], 'UNAMobileApp')) {
  26. require_once("./splash.php");
  27. exit;
  28. }
  29. $_GET['i'] = 'home';
  30. require_once("./page.php");
  31. /** @} */