Show print_template.php syntax highlighted
<?php
if (!empty ($_GET['module'])) {
// Use application's view
try {
$Module = ModulesManager :: loadModule($_GET['module']); // load module
ModulesManager :: launchState($Module, 'DefaultView'); // run it's method
Engine :: setFlag('currentModule', $Module); // set current module
$currentAppView = 'modules/' . $_GET['module'] . '/application/' . Renderer :: getView() . '.php'; // include application's view
} catch (NoModuleException $e) {
// continue
}
}
if (User :: inAdmin() && Engine :: file_exists("styles/" . $XCS->getDefaultTheme() . "/_admin/index.php")) {
// We are in admin and current theme has also styles for admin.
require_once ("styles/" . $XCS->getDefaultTheme() . "/_admin/index.php");
} else
if (isset ($currentAppView) && Engine :: file_exists($currentAppView)) {
require_once ($currentAppView); // include application's view
} else
if (User :: inAdmin()) {
// We are in admin and we will use the default admin theme.
require_once ("styles/" . $XCS->getDefaultTheme() . "/index.php");
} else {
// We are anywhere on the web, so we enable perspectives too.
require_once ("styles/" . $XCS->getDefaultTheme() . "/" . Perspective :: getTheme() . ".php");
}
Event :: Call("onExit");
Event :: Call("onDisconnect");
DB :: Close();
?>
See more files for this project here