mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Show hostname in login page title if enabled http://www.virtualmin.com/node/15437
This commit is contained in:
@@ -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()'");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user