diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-07-16 14:35:45 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-07-16 14:35:45 -0300 |
commit | f8ec8de4f36c2403739acf90f32d7862e17fde6b (patch) | |
tree | 4631599235fb60f1ea3a77eb45c3968bb2692ec2 /usr/local/www/diag_authentication.php | |
parent | b2bffb702414260f1e154f73d4c2b7c70816cc94 (diff) | |
download | pfsense-f8ec8de4f36c2403739acf90f32d7862e17fde6b.zip pfsense-f8ec8de4f36c2403739acf90f32d7862e17fde6b.tar.gz |
Sync with mainline, diag_* files were missing
Diffstat (limited to 'usr/local/www/diag_authentication.php')
-rwxr-xr-x | usr/local/www/diag_authentication.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php index f6ed771..91874d4 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']} is not a valid authentication server "; + $input_errors[] = $_POST['authmode'] . " " . gettext("is not a valid authentication server"); if (empty($_POST['username']) || empty($_POST['password'])) - $input_errors[] = "A username and password must be specified."; + $input_errors[] = gettext("A username and password must be specified."); if (!$input_errors) { if (authenticate_user($_POST['username'], $_POST['password'], $authcfg)) { - $savemsg = "User: {$_POST['username']} authenticated sucessfully."; + $savemsg = gettext("User") . ": " . $_POST['username'] . " " . gettext("authenticated sucessfully."); $groups = getUserGroups($_POST['username'], $authcfg); - $savemsg .= "<br />This user is member of this groups: <br />"; + $savemsg .= "<br />" + gettext("This user is member of this groups") + ": <br />"; foreach ($groups as $group) $savemsg .= "{$group} "; } else { - $input_errors[] = "Authentication failed."; + $input_errors[] = gettext("Authentication failed."); } } } -$pgtitle = array("Diagnostics","Authentication"); +$pgtitle = array(gettext("Diagnostics"),gettext("Authentication")); include("head.inc"); ?> <body link="#000000" vlink="#000000" alink="#000000"> - + <?php include("fbegin.inc"); ?> <?php if ($input_errors) print_input_errors($input_errors);?> <?php if ($savemsg) print_info_box($savemsg);?> @@ -87,7 +87,7 @@ include("head.inc"); <form id="iform" name="iform" action="diag_authentication.php" method="post"> <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> - <td width="22%" valign="top" class="vncell">Authentication Server</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Authentication Server"); ?></td> <td width="78%" class="vtable"> <select name='authmode' id='authmode' class="formselect" > <?php @@ -103,13 +103,13 @@ include("head.inc"); </td> </tr> <tr> - <td width="22%" valign="top" class="vncell">Username</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Username"); ?></td> <td width="78%" class="vtable"> <input class="formfld unknown" size='20' id='username' name='username' value='<?=$pconfig['username'];?>' /> </td> </tr> <tr> - <td width="22%" valign="top" class="vncell">Password</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Password"); ?></td> <td width="78%" class="vtable"> <input class="formfld pwd" type='password' size='20' id='password' name='password' value='<?=$pconfig['password'];?>' /> </td> |