From f12c9f8375a3c5e19452eaa0e967c90cd2b8ec2d Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sat, 24 Sep 2005 17:26:40 +0000 Subject: [PATCH] left out in last commit git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@55 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs.net/groupe/membres-edit.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/htdocs.net/groupe/membres-edit.php b/htdocs.net/groupe/membres-edit.php index d873505..391dd3a 100644 --- a/htdocs.net/groupe/membres-edit.php +++ b/htdocs.net/groupe/membres-edit.php @@ -40,10 +40,10 @@ new_groupadmin_page('xnet/groupe/membres-add.tpl'); $x = (Env::get('new') == 'x'); - if (Post::has('email')) { + if (Env::has('email')) { if ($x) { require_once 'user.func.inc.php'; - $emails = explode(" ", Post::get('email')); + $emails = explode(" ", Env::get('email')); foreach ($emails as $email) { if ($forlife = get_user_forlife($email)) { @@ -53,15 +53,13 @@ FROM auth_user_md5 AS u INNER JOIN aliases AS a ON (u.user_id = a.id) WHERE a.alias={?}', $globals->asso('id'), $forlife); - $forlifes[] = $forlife; - } - else + header('Location: ?edit='.$email); + } else { $page->trig($email." n'est pas un alias polytechnique.org valide"); + } } - if (count($forlifes) > 0) - header('Location: annuaire.php'); } else { - $email = Post::get('email'); + $email = Env::get('email'); if (isvalid_email($email)) { $res = $globals->xdb->query('SELECT MAX(uid)+1 FROM groupex.membres'); $uid = max(intval($res->fetchOneCell()), 50001); -- 2.1.4