From e9b187ba299aee988e90b8db628420c6ee5635d5 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 1 Feb 2013 16:31:47 +0000 Subject: [PATCH] JS dans le login --- bureau/admin/index.php | 167 ++++++++++++++++++++++------------------- 1 file changed, 88 insertions(+), 79 deletions(-) diff --git a/bureau/admin/index.php b/bureau/admin/index.php index 1b80be6f..183cb6f2 100644 --- a/bureau/admin/index.php +++ b/bureau/admin/index.php @@ -27,8 +27,8 @@ require_once("../class/config_nochk.php"); if (!$mem->del_session()) { - // No need to draw an error message ... - //$error=$err->errstr(); + // No need to draw an error message ... + //$error=$err->errstr(); } $H=getenv("HTTP_HOST"); @@ -46,97 +46,106 @@ if (!$charset) $charset="UTF-8"; AlternC Desktop + -
+
-
+
- -

 

- $error
"; ?> -
- ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*
- Cliquez ici pour passer en mode sécurisé"; - } - */ - ?> -
-
- - ";__("You are attemping to connect without IP restriction."); echo "

"; } ?> -
-
- - - - - -
" />
- -
+ +

 

+ $error"; ?> +
+ ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*
+ Cliquez ici pour passer en mode sécurisé"; + } + */ + ?> +
+ - + + -
+ + ";__("You are attemping to connect without IP restriction."); echo "

"; } ?> +
+
+ + + + + +
" />
+ +
-
+
- invoke("hook_admin_webmail"); - if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { - $url=$res[$wr]; - } else { - foreach($res as $r) if ($r!==false) { $url=$r; break; } - } - if (isset($url) && $url) { - ?> -

-
+ // Here we used to have a form to enter the squirrelmail's webmail. + // Following the "rule of less astonishment, we try to put it here again, even though the webmail is now a plugin. + $res=$hooks->invoke("hook_admin_webmail"); + if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { + $url=$res[$wr]; + } else { + foreach($res as $r) if ($r!==false) { $url=$r; break; } + } + if (isset($url) && $url) { + ?> +

+
-
+
- - - - -
- -
- -
- - - -
- show_help("login",true); - ?> -
-

- Powered by AlternC -

-
+ + + + +
+ +
+ +
+ + + +
+ show_help("login",true); + ?> +
+

+ Powered by AlternC +

+
-
- +
+ + +