X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=b36d1cbbdb9b95b79271aab5aed4590d3d0c4318;hb=e5858f67fe357e76fae0b08c481bc8d49f4a20a8;hp=e0ca4bb4aeb1b8603ba7f03887f9df9b1ea08c99;hpb=ef42a9d667bc59456c156d0c5085be9efc1954b7;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index e0ca4bb..b36d1cb 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -1,6 +1,6 @@ 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: ?>