Project

General

Profile

« Previous | Next » 

Revision 89c1552e

Added by Renato Botelho about 15 years ago

Few adjustements on gettext

View differences:

usr/local/www/diag_authentication.php
49 49

  
50 50
	$authcfg = auth_get_authserver($_POST['authmode']);
51 51
	if (!$authcfg)
52
		$input_errors[] = "{$_POST['authmode']}" + gettext("is not a valid authentication server ");
52
		$input_errors[] = $_POST['authmode'] . " " . gettext("is not a valid authentication server");
53 53

  
54 54
	if (empty($_POST['username']) || empty($_POST['password']))
55 55
		$input_errors[] = gettext("A username and password must be specified.");
56 56

  
57 57
	if (!$input_errors) {
58 58
		if (authenticate_user($_POST['username'], $_POST['password'], $authcfg)) {
59
			$savemsg = gettext("User: ") + {$_POST['username']} + gettext(" authenticated sucessfully.");
59
			$savemsg = gettext("User") . ": " . $_POST['username'] . " " . gettext("authenticated sucessfully.");
60 60
			$groups = getUserGroups($_POST['username'], $authcfg);
61
			$savemsg .= "<br />" + gettext("This user is member of this groups:") + " <br />";
61
			$savemsg .= "<br />" + gettext("This user is member of this groups") + ": <br />";
62 62
			foreach ($groups as $group)
63 63
				$savemsg .= "{$group} ";
64 64
		} else {

Also available in: Unified diff