bgcolor is not a valid "xhtml1.0 strict" attribute. Replacing it by a css background-color

This commit is contained in:
CharlyCoste 2010-03-14 00:58:59 +01:00
parent d672bb8862
commit df612293fd
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
body {background-color: #F9F9F9;}
body.error {background-color: #F0F0F0;}
body,th,td,ul,li,a,div,p,pre {color:#333333; font-family:Verdana,"Bitstream Vera Sans",Arial,Helvetica,Sans,"Bitstream Vera Serif"; font-size:9.0pt;}
.nametext a {color:#333333; font-size:8pt; font-weight:bold; text-decoration:none;}

View File

@ -190,7 +190,7 @@ class OC_DB {
$DBConnection = @new mysqli($CONFIG_DBHOST, $CONFIG_DBUSER, $CONFIG_DBPWD,$CONFIG_DBNAME);
if (mysqli_connect_errno()) {
@ob_end_clean();
echo('<html><head></head><body bgcolor="#F0F0F0"><br /><br /><center><b>can not connect to database.</center></body></html>');
echo('<html><head></head><body class="error"><br /><br /><center><b>can not connect to database.</center></body></html>');
exit();
}
}

View File

@ -5,7 +5,7 @@
<title>ownCloud</title>
<link rel="stylesheet" type="text/css" href="/css/default.css" />
</head>
<body bgcolor="#F9F9F9">
<body>
<center><a href="/"><img src="/img/owncloud-logo-small.png" border="0"></a></center>
<?php