Show hostname in login page title if enabled http://www.virtualmin.com/node/15437

This commit is contained in:
Jamie Cameron
2012-09-19 16:29:48 -07:00
parent a425e18949
commit 4ade6db23c

View File

@@ -29,9 +29,13 @@ $sidname = $miniserv{'sidname'} || "sid";
print "Set-Cookie: banner=0; path=/$sec\r\n" if ($gconfig{'loginbanner'});
print "Set-Cookie: $sidname=x; path=/$sec\r\n" if ($in{'logout'});
print "Set-Cookie: testing=1; path=/$sec\r\n";
$title = $text{'session_header'};
if ($gconfig{'showhost'}) {
$title = &get_display_hostname()." : ".$title;
}
&ui_print_unbuffered_header(
undef, undef, undef, undef, undef, 1, 1, undef,
"<title>$text{'session_header'}</title>",
"<title>$title</title>",
"onLoad='document.forms[0].pass.value = \"\"; ".
"document.forms[0].user.focus()'");