X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fxorg.inc.php;h=97c8a037e175e75f9624925d2cb33ae6bbf4f66b;hb=ae0508cbd08c4974520a6d3e80df42842ef34c10;hp=8c121dc744eded2075e6c617ee8260309a65c2d1;hpb=63528107273f1f5de8a83428dbdd70e5f25d3d7f;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 8c121dc..97c8a03 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -18,20 +18,18 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ + require_once('platal.inc.php'); -require_once('xorg/globals.inc.php'); +require_once('globals.inc.php'); require_once('xorg/session.inc.php'); -XorgGlobals::init(); -XorgGlobals::setlocale(); +$globals = new PlatalGlobals('XorgSession'); XorgSession::init(); -require_once('platal/page.inc.php'); - // {{{ class XorgPage class XorgPage extends PlatalPage { - function XorgPage($tpl, $type=SKINNED) + function XorgPage($tpl, $type = SKINNED) { $this->PlatalPage($tpl, $type); } @@ -39,9 +37,7 @@ class XorgPage extends PlatalPage function run() { global $globals; - if ($this->_page_type != NO_SKIN) { - $this->assign('menu', $globals->menu->menu()); - } + $this->assign('globals', $globals); $this->_run('skin/'.S::v('skin', 'default.tpl')); } } @@ -55,7 +51,7 @@ class XorgAdmin extends XorgPage { // {{{ function XorgAdmin() - function XorgAdmin($tpl, $type=SKINNED) + function XorgAdmin($tpl, $type = SKINNED) { $this->XorgPage($tpl, $type); check_perms(); @@ -94,21 +90,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: ?>