X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=282ba964b3a11b1e6921c7443952a8dac9660dc4;hb=2553b7686e0678b8e27858a7c377e73ecb410aec;hp=a5e8a32b60ab91e246b9e88ed279ceeb5c52789b;hpb=e6705972767604b0e8dbf9962ccc1790332eb2b9;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index a5e8a32..282ba96 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -1,6 +1,6 @@ core->NbIns) || $globals->core->NbIns == 0) { - update_NbIns(); -} +define('PL_GLOBALS_CLASS', 'PlatalGlobals'); +define('PL_LOGGER_CLASS', 'PlatalLogger'); +define('PL_SESSION_CLASS', 'XorgSession'); +define('PL_PAGE_CLASS', 'XorgPage'); -// {{{ class XorgPage - -class XorgPage extends PlatalPage -{ - public function __construct($tpl, $type = SKINNED) - { - parent::__construct($tpl, $type); - } - - public function run() - { - global $globals, $platal; - $this->assign('globals', $globals); - if (isset($platal) && $platal->path == 'register') { - $skin = $globals->register_skin . ".tpl"; - } else { - $skin = S::v('skin', $globals->skin . ".tpl"); - } - $this->_run('skin/' . $skin); - } -} - -// {{{ function new_skinned_page() - -function new_skinned_page($tpl_name) -{ - global $page; - if (!$page instanceof XorgPage) { - $page = new XorgPage($tpl_name); - } else { - $page->changeTpl($tpl_name); - } -} - -XorgSession::init(); +require_once dirname(dirname(__FILE__)) . '/core/include/platal.inc.php'; +require_once 'security.inc.php'; +require_once 'common.inc.php'; // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>