From 0b3abd3b5639676b27a78e651c6753c38e6c8bbe Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 30 Jun 2010 09:30:01 -0300 Subject: Reset diag_ files --- usr/local/www/diag_authentication.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'usr/local/www/diag_authentication.php') diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php index 91874d4..f6ed771 100755 --- a/usr/local/www/diag_authentication.php +++ b/usr/local/www/diag_authentication.php @@ -49,30 +49,30 @@ if ($_POST) { $authcfg = auth_get_authserver($_POST['authmode']); if (!$authcfg) - $input_errors[] = $_POST['authmode'] . " " . gettext("is not a valid authentication server"); + $input_errors[] = "{$_POST['authmode']} is not a valid authentication server "; if (empty($_POST['username']) || empty($_POST['password'])) - $input_errors[] = gettext("A username and password must be specified."); + $input_errors[] = "A username and password must be specified."; if (!$input_errors) { if (authenticate_user($_POST['username'], $_POST['password'], $authcfg)) { - $savemsg = gettext("User") . ": " . $_POST['username'] . " " . gettext("authenticated sucessfully."); + $savemsg = "User: {$_POST['username']} authenticated sucessfully."; $groups = getUserGroups($_POST['username'], $authcfg); - $savemsg .= "
" + gettext("This user is member of this groups") + ":
"; + $savemsg .= "
This user is member of this groups:
"; foreach ($groups as $group) $savemsg .= "{$group} "; } else { - $input_errors[] = gettext("Authentication failed."); + $input_errors[] = "Authentication failed."; } } } -$pgtitle = array(gettext("Diagnostics"),gettext("Authentication")); +$pgtitle = array("Diagnostics","Authentication"); include("head.inc"); ?> - + @@ -87,7 +87,7 @@ include("head.inc");
- + - + - + -- cgit v1.1
Authentication Server
Username ' />
Password ' />