X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnet.php;h=f116c6894ecbceba6217bd6af218f332f0dcd623;hb=2c0315bc77abc3c53b5891d2a8c5d4943fd27143;hp=1b368ebb94245ebd9987a93ba73106bf6bf28207;hpb=a3a049fc80d3707bcc76903ab89f73974c470c0c;p=platal.git diff --git a/modules/xnet.php b/modules/xnet.php index 1b368eb..f116c68 100644 --- a/modules/xnet.php +++ b/modules/xnet.php @@ -83,10 +83,13 @@ class XnetModule extends PLModule $page->useMenu(); } - function handler_manuel(&$page) + function handler_manuel(&$page, $type = null) { $page->changeTpl('xnet/manuel.tpl'); - $page->useMenu(); + if (!$type) { + $page->useMenu(); + } + $page->assign('type', $type); } function handler_admin(&$page) @@ -97,7 +100,7 @@ class XnetModule extends PLModule if (Get::has('del')) { $res = XDB::query('SELECT id, nom, mail_domain FROM groupex.asso WHERE diminutif={?}', - Get::get('del')); + Get::v('del')); list($id, $nom, $domain) = $res->fetchOneRow(); $page->assign('nom', $nom); if ($id && Post::has('del')) { @@ -112,7 +115,7 @@ class XnetModule extends PLModule $page->trig('suppression des alias mails'); require_once('lists.inc.php'); - $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $domain); + $client =& lists_xmlrpc(S::v('uid'), S::v('password'), $domain); if ($listes = $client->get_lists()) { foreach ($listes as $l) { $client->delete_list($l['list'], true); @@ -132,8 +135,8 @@ class XnetModule extends PLModule if (Post::has('diminutif')) { XDB::query('INSERT INTO groupex.asso (id,diminutif) - VALUES(NULL,{?})', Post::get('diminutif')); - redirect(Post::get('diminutif').'/edit'); + VALUES(NULL,{?})', Post::v('diminutif')); + pl_redirect('../'.Post::v('diminutif').'/edit'); } $res = XDB::query('SELECT nom,diminutif FROM groupex.asso ORDER by NOM'); @@ -179,11 +182,12 @@ class XnetModule extends PLModule WHERE FIND_IN_SET("Institutions", cat) ORDER BY diminutif'); $page->assign('inst', $res); + $page->useMenu(); } function handler_groups2(&$page) { - $this->handler_groups(&$page, Get::get('cat'), Get::get('dom')); + $this->handler_groups(&$page, Get::v('cat'), Get::v('dom')); } function handler_groups(&$page, $cat = null, $dom = null)