From 757c7074aeb4d82d8e9dfec74e3b37f342aebfae Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 27 Mar 2011 13:45:51 +0000 Subject: [PATCH] on peut annuler la possibilite de revenir a l'admin --- .gitattributes | 1 + bureau/admin/adm_cancel.php | 35 ++++++++++++++++++++ bureau/admin/adm_login.php | 4 +-- bureau/locales/fr_FR/LC_MESSAGES/messages.po | 5 ++- 4 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 bureau/admin/adm_cancel.php diff --git a/.gitattributes b/.gitattributes index d8b84c21..345d3245 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,6 +13,7 @@ aide/sommaire.sgml -text aide/stats.sgml -text aide/test.sgml -text bureau/admin/adm_add.php -text +bureau/admin/adm_cancel.php -text bureau/admin/adm_deactivate.php -text bureau/admin/adm_defquotas.php -text bureau/admin/adm_del.php -text diff --git a/bureau/admin/adm_cancel.php b/bureau/admin/adm_cancel.php new file mode 100644 index 00000000..6a6494ad --- /dev/null +++ b/bureau/admin/adm_cancel.php @@ -0,0 +1,35 @@ +query("select lastip from membres where uid='$oldid';"); $db->next_record(); @@ -71,7 +71,7 @@ if ($subadmin==0 && !$admin->checkcreator($id)) { if (!$r=$admin->get($id)) { $error=$err->errstr(); } else { - setcookie('oldid',$cuid,0,'/admin/'); + setcookie('oldid',$cuid,0,'/'); if (!$mem->setid($id)) { $error=$err->errstr(); include("index.php"); diff --git a/bureau/locales/fr_FR/LC_MESSAGES/messages.po b/bureau/locales/fr_FR/LC_MESSAGES/messages.po index f826755e..06621445 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/messages.po +++ b/bureau/locales/fr_FR/LC_MESSAGES/messages.po @@ -3833,9 +3833,8 @@ msgstr "Cacher les options avanc #: ../admin/head.php:50 msgid "" -"Invited session. Clic here to return to your " -"previous session." -msgstr "Session invité Cliquez ici pour revenir a votre session précédente" +"Administrator session. you may return to your account or cancel this feature" +msgstr "Session administrateur. Vous pouvez revenir à votre compte ou annuler cette possibilité" #: ../admin/adm_passpolicy.php:120 msgid ""