diff --git a/index.php b/index.php index 2a25abc6f..f00609e29 100644 --- a/index.php +++ b/index.php @@ -1,62 +1,68 @@ init(); +/** + * @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(); - if($oModuleHandler->init()) { - $oModule = &$oModuleHandler->procModule(); - $oModuleHandler->displayContent($oModule); - } - } - $oContext->close(); -?> +/** + * @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(); + + if($oModuleHandler->init()) + { + $oModule = &$oModuleHandler->procModule(); + $oModuleHandler->displayContent($oModule); + } +} + +$oContext->close(); + +/* End of file index.php */ +/* Location: ./index.php */