Skip to content

Commit

Permalink
Fixed issue login message and layout changed, now uses the 'messagebo…
Browse files Browse the repository at this point in the history
…x' class, and has a new header "logged in" which will need translation. Also it now welcomes the user by their actual name, not their login (ie: "Welcome Jason Cleeland" not "Welcome admin")

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8551 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 2, 2010
1 parent dd30c39 commit eebe7f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin/usercontrol.php
Expand Up @@ -148,8 +148,10 @@
}
$login = true;

$loginsummary .= "<p><span style='font-weight:bold;'>" .sprintf($clang->gT("Welcome %s!"),$_SESSION['user']) . "</span><br />";
$loginsummary .= $clang->gT("You logged in successfully.");
$loginsummary .= "<div class='messagebox'>\n";
$loginsummary .= "<div class='header'>" . $clang->gT("Logged In") . "</div>";
$loginsummary .= "<br />".sprintf($clang->gT("Welcome %s!"),$_SESSION['full_name'])."<br />&nbsp;";
$loginsummary .= "</div>\n";

if (isset($_POST['refererargs']) && $_POST['refererargs'] &&
strpos($_POST['refererargs'], "action=logout") === FALSE)
Expand Down

0 comments on commit eebe7f1

Please sign in to comment.