index.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup DolphinCore Dolphin Core
  7. * @{
  8. */
  9. if (!file_exists("./inc/header.inc.php"))
  10. {
  11. // this is dynamic page - send headers to not cache this page
  12. $now = gmdate('D, d M Y H:i:s') . ' GMT';
  13. header("Expires: $now");
  14. header("Last-Modified: $now");
  15. header("Cache-Control: no-cache, must-revalidate");
  16. header("Pragma: no-cache");
  17. echo "It seems to be script is <b>not</b> installed.<br />\n";
  18. if ( file_exists( "install/index.php" ) ) {
  19. echo "Please, wait. Redirecting you to installation form...<br />\n";
  20. echo "<script language=\"javascript\">location.href = 'install/index.php';</script>\n";
  21. }
  22. exit;
  23. }
  24. require_once('./inc/header.inc.php');
  25. require_once(BX_DIRECTORY_PATH_INC . "profiles.inc.php");
  26. /*
  27. if(!isLogged()) {
  28. require_once("./splash.php");
  29. exit;
  30. }
  31. */
  32. $_GET['i'] = 'home';
  33. require_once("./page.php");
  34. /** @} */