Enhanced Theme: Added JS confirm prompt to logout button.

This commit is contained in:
Nate Jones
2014-08-17 05:15:07 +00:00
parent 5f9701d263
commit a9cf2ce762
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1264,7 +1264,7 @@ if (strlen($_SESSION['message']) > 0) {
//logout icon
if ($_SESSION['username'] != '') {
$username_full = $_SESSION['username'].((count($_SESSION['domains']) > 1) ? "@".$_SESSION["user_context"] : null);
echo "<a href='".PROJECT_PATH."/logout.php'><img id='logout_icon' src='".PROJECT_PATH."/themes/enhanced/images/icon_logout.png' style='width: 28px; height: 23px; border: none; margin-top: 15px;' title='".$text['theme-label-logout']." ".$username_full."' align='absmiddle'></a>";
echo "<a href='".PROJECT_PATH."/logout.php' onclick=\"return confirm('".$text['theme-confirm-logout']."');\"><img id='logout_icon' src='".PROJECT_PATH."/themes/enhanced/images/icon_logout.png' style='width: 28px; height: 23px; border: none; margin-top: 15px;' title='".$text['theme-label-logout']." ".$username_full."' align='absmiddle'></a>";
unset($username_full);
}