X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=282ba964b3a11b1e6921c7443952a8dac9660dc4;hb=2553b7686e0678b8e27858a7c377e73ecb410aec;hp=6aa6cbf1df8898a0008d1f8b49a73f54d51487d0;hpb=1490093c909c086ce8eba3c0f5c24b62ef20cfb3;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 6aa6cbf..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, $type); - } else { - $page->changeTpl($tpl_name, $type); - } -} +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: ?>