-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathpage.php
41 lines (33 loc) · 994 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup UnaCore UNA Core
* @{
*/
require_once('./inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
bx_import('BxDolLanguages');
check_logged();
if(($sObject = bx_get('o')) !== false && ($sAction = bx_get('a')) !== false) {
$sObject = bx_process_input($sObject);
$sAction = bx_process_input($sAction);
if(!empty($sObject) && !empty($sAction)) {
$oPage = BxDolPage::getObjectInstance($sObject);
$sAction = 'performAction' . bx_gen_method_name($sAction);
if($oPage && method_exists($oPage, $sAction)) {
$oPage->$sAction();
exit;
}
}
}
BxDolPage::seoRedirect();
$oPage = BxDolPage::getObjectInstanceByURI('', false, true);
if ($oPage) {
$oPage->displayPage();
} else {
$oTemplate = BxDolTemplate::getInstance();
$oTemplate->displayPageNotFound();
}
/** @} */