X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=75f9af5b68c35a2356e6932d0f19252c5b06c91f;hb=d3df41c32ceb3e8798865217312f1222a339235d;hp=849e0180a8b8dae27a392761428475564acfd374;hpb=1edb5aa5afd0d6c0172d845537c9b51fb47874fb;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 849e018..75f9af5 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -20,52 +20,13 @@ ***************************************************************************/ define('PL_GLOBALS_CLASS', 'PlatalGlobals'); +define('PL_LOGGER_CLASS', 'PlatalLogger'); define('PL_SESSION_CLASS', 'XorgSession'); define('PL_PAGE_CLASS', 'XorgPage'); require_once dirname(dirname(__FILE__)) . '/core/include/platal.inc.php'; -require_once('xorg.misc.inc.php'); -require_once('globals.inc.php'); -require_once('xorg/session.inc.php'); - -function __autoload($cls) -{ - if (!pl_autoload($cls)) { - if (substr($cls, -3, 3) == 'req') { - @include 'validations.inc.php'; - return; - } else if (substr($cls, 0, 6) == 'banana') { - require_once 'banana/banana.inc.php'; - Banana::load(substr($cls, 6)); - return; - } - @include "$cls.inc.php"; - } -} - -// {{{ 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; - 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 'security.inc.php'; +require_once 'common.inc.php'; // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>