X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=b36d1cbbdb9b95b79271aab5aed4590d3d0c4318;hb=46403a235e8c4a73b66c1a0fa2f5878c336f5742;hp=5aea1870fb0c3600b4c3971fc58a90e8908ddcef;hpb=2b1ee50b0196216dbe4f37e3b039469d6003ca23;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 5aea187..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 = 'register.tpl'; - } else { - $skin = S::v('skin', 'default.tpl'); - } - $this->_run('skin/' . $skin); - } -} - -// }}} - -function _new_page($type, $tpl_name, $admin=false) -{ - global $page; - if (!empty($admin)) { - $page = new XorgAdmin($tpl_name, $type); - } else { - $page = new XorgPage($tpl_name, $type); - } - - $page->assign('xorg_tpl', $tpl_name); -} - -// {{{ function new_skinned_page() - -function new_skinned_page($tpl_name) -{ - _new_page(SKINNED, $tpl_name); -} - -// }}} -// {{{ function new_admin_page() - -function new_admin_page($tpl_name) -{ - _new_page(SKINNED, $tpl_name, true); -} - -// }}} +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: ?>