X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=282ba964b3a11b1e6921c7443952a8dac9660dc4;hb=1f58ccb1e75eca08fbd04971d617ea372bc77b5a;hp=62bfbe8fb1628e92aeb3bf7ea718a755f151f83c;hpb=35fa92e83c0ac722a75072cf86aa6d529554ca31;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 62bfbe8..282ba96 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 = 'register.tpl'; - } else { - $skin = S::v('skin', 'default.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); - } -} +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: ?>