mirror of https://github.com/mikaku/Monitorix.git
updated to 4.01 the HTML DOCTYPE declarations
This commit is contained in:
parent
ec604eacd5
commit
dbea9d4b2b
|
@ -191,7 +191,7 @@ sub handle_request {
|
|||
$denied = ip_validity($ENV{REMOTE_ADDR}, $hosts_deny) if !$allowed;
|
||||
if(!$allowed && $denied) {
|
||||
http_header("403", "html");
|
||||
print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n";
|
||||
print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\r\n");
|
||||
print "<html><head>\r\n";
|
||||
print "<title>403 Forbidden</title>\r\n";
|
||||
print "</head><body>\r\n";
|
||||
|
@ -244,7 +244,7 @@ sub handle_request {
|
|||
if(scalar(@data)) {
|
||||
if($auth eq "y") {
|
||||
if(http_header("401", $mimetype)) {
|
||||
print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n";
|
||||
print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\r\n");
|
||||
print "<html><head>\r\n";
|
||||
print "<title>401 Authorization Required</title>\r\n";
|
||||
print "</head><body>\r\n";
|
||||
|
@ -267,7 +267,7 @@ sub handle_request {
|
|||
logger($url, "OK");
|
||||
} else {
|
||||
http_header("404", "html");
|
||||
print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n";
|
||||
print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\r\n");
|
||||
print "<html><head>\r\n";
|
||||
print "<title>404 Not Found</title>\r\n";
|
||||
print "</head><body>\r\n";
|
||||
|
|
|
@ -180,7 +180,7 @@ EOF
|
|||
die "unable to create '${config{base_dir}}index.html': $!";
|
||||
}
|
||||
print(OUT <<EOF);
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html "-//W3C//DTD HTML 4.01 Final//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>$config{title}</title>
|
||||
|
|
|
@ -420,7 +420,7 @@ if(!$silent) {
|
|||
EOF
|
||||
}
|
||||
|
||||
print("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2 Final//EN'>\n");
|
||||
print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\n");
|
||||
print("<html>\n");
|
||||
print(" <head>\n");
|
||||
print(" <title>$config{title}</title>\n");
|
||||
|
|
Loading…
Reference in New Issue