summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_authentication.php
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-06-30 09:30:01 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-06-30 09:30:01 -0300
commit0b3abd3b5639676b27a78e651c6753c38e6c8bbe (patch)
treee727ffd9d36f8d868a5d080213fddcf79ef7f5b6 /usr/local/www/diag_authentication.php
parenta5e9c28444e3dc6a3c1668719786c3a389ba652e (diff)
downloadpfsense-0b3abd3b5639676b27a78e651c6753c38e6c8bbe.zip
pfsense-0b3abd3b5639676b27a78e651c6753c38e6c8bbe.tar.gz
Reset diag_ files
Diffstat (limited to 'usr/local/www/diag_authentication.php')
-rwxr-xr-xusr/local/www/diag_authentication.php20
1 files changed, 10 insertions, 10 deletions
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 .= "<br />" + gettext("This user is member of this groups") + ": <br />";
+ $savemsg .= "<br />This user is member of this groups: <br />";
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");
?>
<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"><?=gettext("Authentication Server"); ?></td>
+ <td width="22%" valign="top" class="vncell">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"><?=gettext("Username"); ?></td>
+ <td width="22%" valign="top" class="vncell">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"><?=gettext("Password"); ?></td>
+ <td width="22%" valign="top" class="vncell">Password</td>
<td width="78%" class="vtable">
<input class="formfld pwd" type='password' size='20' id='password' name='password' value='<?=$pconfig['password'];?>' />
</td>
OpenPOWER on IntegriCloud