page.php 969 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. require_once('./inc/header.inc.php');
  10. require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
  11. bx_import('BxDolLanguages');
  12. check_logged();
  13. if(($sObject = bx_get('o')) !== false && ($sAction = bx_get('a')) !== false) {
  14. $sObject = bx_process_input($sObject);
  15. $sAction = bx_process_input($sAction);
  16. if(!empty($sObject) && !empty($sAction)) {
  17. $oPage = BxDolPage::getObjectInstance($sObject);
  18. $sAction = 'performAction' . bx_gen_method_name($sAction);
  19. if($oPage && method_exists($oPage, $sAction)) {
  20. $oPage->$sAction();
  21. exit;
  22. }
  23. }
  24. }
  25. $oPage = BxDolPage::getObjectInstanceByURI('', false, true);
  26. if ($oPage) {
  27. $oPage->displayPage();
  28. } else {
  29. $oTemplate = BxDolTemplate::getInstance();
  30. $oTemplate->displayPageNotFound();
  31. }
  32. /** @} */