forked from NuriCms/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
78 lines (72 loc) · 2.2 KB
/
index.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* @file index.php
* @Original_author NHN
* @Adaptor NURI Project ([email protected])
* @brief Start page
*
* Find and create module object by mif, act in Request Argument
* Set module information
*
* @mainpage NURI CMS
* @section intro introduction
* NURI Core is the base frame of NURI CMS. NURI CMS is a web CMS program,
* branched out from XpressEngine.
* For more information, please see the link below.
* - Website: https://www.nuricms.org
* - Repository: https://github.com/NuriCms
*
* "NURI CMS" is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
**/
/**
* @brief Declare constants for generic use and for checking to avoid a direct call from the Web
**/
define('__NURI__', TRUE);
define('__XE__', TRUE);
/**
* @brief Include the necessary configuration files
**/
require dirname(__FILE__) . '/config/config.inc.php';
/**
* @brief Initialize by creating Context object
* Set all Request Argument/Environment variables
**/
$oContext = &Context::getInstance();
$oContext->init();
/**
* @brief If default_url is set and it is different from the current url, attempt to redirect for SSO authentication and then process the module
**/
if($oContext->checkSSO())
{
$oModuleHandler = new ModuleHandler();
try
{
if($oModuleHandler->init())
{
$oModule = &$oModuleHandler->procModule();
$oModuleHandler->displayContent($oModule);
}
}
catch(Exception $e)
{
htmlHeader();
echo Context::getLang($e->getMessage());
htmlFooter();
}
}
$oContext->close();
/* End of file index.php */
/* Location: ./index.php */