X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=75f9af5b68c35a2356e6932d0f19252c5b06c91f;hb=d3df41c32ceb3e8798865217312f1222a339235d;hp=0be0ddd77d6e81a229b9d3be250f268db3359d2c;hpb=abde67b15ea173b2fd8f5a194eb6e0f72d332661;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 0be0ddd..75f9af5 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -20,38 +20,13 @@ ***************************************************************************/ define('PL_GLOBALS_CLASS', 'PlatalGlobals'); +define('PL_LOGGER_CLASS', 'PlatalLogger'); define('PL_SESSION_CLASS', 'XorgSession'); define('PL_PAGE_CLASS', 'XorgPage'); -require_once('platal.inc.php'); -require_once('globals.inc.php'); -require_once('xorg/session.inc.php'); - -$globals = new PlatalGlobals(); -// {{{ class XorgPage - -class XorgPage extends PlPage -{ - public function __construct() - { - parent::__construct(); - - // Set the default page - $this->changeTpl('platal/index.tpl'); - } - - public function run() - { - global $globals, $platal; - $this->assign_by_ref('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); - } -} +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: ?>