X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=include%2Fxorg.inc.php;h=5aea1870fb0c3600b4c3971fc58a90e8908ddcef;hb=9162f4ed1e2f9567805f6465511d69460c83d766;hp=e655036d55402747601c9f33adcab0abc9b64728;hpb=62a66dfc26089fb5c15f36617c40e82380c052f0;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index e655036..5aea187 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -1,6 +1,6 @@ PlatalPage($tpl, $type); + parent::__construct($tpl, $type); } - function run() + public function run() { - global $globals; + global $globals, $platal; $this->assign('globals', $globals); - $this->_run('skin/'.S::v('skin', 'default.tpl')); + if (isset($platal) && $platal->path == 'register') { + $skin = 'register.tpl'; + } else { + $skin = S::v('skin', 'default.tpl'); + } + $this->_run('skin/' . $skin); } } // }}} -// {{{ class XorgAdmin - -/** Une classe pour les pages réservées aux admins (authentifiés!). - */ -class XorgAdmin extends XorgPage -{ - // {{{ function XorgAdmin() - - function XorgAdmin($tpl, $type = SKINNED) - { - $this->XorgPage($tpl, $type); - check_perms(); - } - - // }}} -} - -// }}} function _new_page($type, $tpl_name, $admin=false) { @@ -92,21 +77,6 @@ function new_admin_page($tpl_name) } // }}} -// {{{ function new_admin_table_editor() - -function new_admin_table_editor($table, $idfield, $idedit=false) -{ - array_walk($_GET, 'unfix_gpc_magic'); - array_walk($_POST, 'unfix_gpc_magic'); - array_walk($_REQUEST, 'unfix_gpc_magic'); - - global $editor; - new_admin_page('table-editor.tpl'); - require_once('xorg.table-editor.inc.php'); - $editor = new XOrgAdminTableEditor($table, $idfield, $idedit); -} - -// }}} -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>