Skip to content
Snippets Groups Projects
Commit c921e542 authored by CharlyCoste's avatar CharlyCoste
Browse files

<br /> is not a valid strict xhtml1.0 tag. Not semantic. Replacing it by CSS...

<br /> is not a valid strict xhtml1.0 tag. Not semantic. Replacing it by CSS instructions on semantic tags.
parent ab0b552c
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,10 @@ body {background-color: #F9F9F9;} ...@@ -2,6 +2,10 @@ body {background-color: #F9F9F9;}
body.error {background-color: #F0F0F0;} 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;} 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;}
h1 {
margin-bottom:1.5em;
}
.center { .center {
text-align:center; text-align:center;
} }
...@@ -11,6 +15,10 @@ body,th,td,ul,li,a,div,p,pre {color:#333333; font-family:Verdana,"Bitstream Vera ...@@ -11,6 +15,10 @@ body,th,td,ul,li,a,div,p,pre {color:#333333; font-family:Verdana,"Bitstream Vera
margin-right:auto; margin-right:auto;
} }
div#nav {
margin-bottom:2em;
}
a#owncloud-logo { a#owncloud-logo {
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
...@@ -28,8 +36,8 @@ a#owncloud-logo span { ...@@ -28,8 +36,8 @@ a#owncloud-logo span {
.highlighttext {color:#333333; font-size:9pt; font-weight:bold; text-decoration:none;} .highlighttext {color:#333333; font-size:9pt; font-weight:bold; text-decoration:none;}
.datetext {color:#333333; font-size:7pt;} .datetext {color:#333333; font-size:7pt;}
.sizetext {color:#333333; font-size:7pt;} .sizetext {color:#333333; font-size:7pt;}
.footer {color:#999999; text-align:center; font-size:9pt;} .footer {color:#999999; text-align:center; font-size:9pt; margin-top:4em;}
.hint {color:#AAAAAA; text-align:center; font-size:8pt;} .hint {color:#AAAAAA; text-align:center; font-size:8pt; margin-top:4em; margin-bottom:2em;}
.hint a{color:#AAAAAA; text-align:center; font-size:8pt;} .hint a{color:#AAAAAA; text-align:center; font-size:8pt;}
.formstyle { .formstyle {
......
...@@ -190,14 +190,14 @@ class OC_DB { ...@@ -190,14 +190,14 @@ class OC_DB {
$DBConnection = @new mysqli($CONFIG_DBHOST, $CONFIG_DBUSER, $CONFIG_DBPWD,$CONFIG_DBNAME); $DBConnection = @new mysqli($CONFIG_DBHOST, $CONFIG_DBUSER, $CONFIG_DBPWD,$CONFIG_DBNAME);
if (mysqli_connect_errno()) { if (mysqli_connect_errno()) {
@ob_end_clean(); @ob_end_clean();
echo('<html><head></head><body class="error"><br /><br /><div class="center"><b>can not connect to database.</div></body></html>'); echo('<html><head></head><body class="error"><div class="center"><b>can not connect to database.</div></body></html>');
exit(); exit();
} }
} }
$result = @$DBConnection->query($cmd); $result = @$DBConnection->query($cmd);
if (!$result) { if (!$result) {
$entry='DB Error: "'.$DBConnection->error.'"<br />'; $entry='<p>DB Error: "'.$DBConnection->error.'"</p>';
$entry.='Offending command was: '.$cmd.'<br />'; $entry.='<p>Offending command was: '.$cmd.'</p>';
echo($entry); echo($entry);
} }
return $result; return $result;
......
...@@ -82,7 +82,7 @@ class OC_FILES { ...@@ -82,7 +82,7 @@ class OC_FILES {
} }
} }
echo('</table>'); echo('</table>');
if(!$filesfound) echo('<br />no files here'); if(!$filesfound) echo('<p>no files here</p>');
echo('</div>'); echo('</div>');
} }
......
<br />
<br />
<p class="footer"> <p class="footer">
<?php <?php
echo($CONFIG_FOOTEROWNERNAME); echo($CONFIG_FOOTEROWNERNAME);
......
...@@ -11,18 +11,17 @@ ...@@ -11,18 +11,17 @@
if(!isset($_SESSION['username']) or $_SESSION['username']=='') { if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
echo('<br /><br /><div class="center">'); echo('<div class="center">');
OC_UTIL::showloginform(); OC_UTIL::showloginform();
echo('</div>'); echo('</div>');
OC_UTIL::showfooter(); OC_UTIL::showfooter();
exit(); exit();
}else{ }else{
echo('<br /><div class="center">'); echo('<div id="nav" class="center">');
OC_UTIL::shownavigation(); OC_UTIL::shownavigation();
echo('</div>'); echo('</div>');
} }
?> ?>
<br />
...@@ -39,7 +39,7 @@ if(isset($_GET['file'])) { ...@@ -39,7 +39,7 @@ if(isset($_GET['file'])) {
OC_FILES::showbrowser($CONFIG_DATADIRECTORY,$dir); OC_FILES::showbrowser($CONFIG_DATADIRECTORY,$dir);
echo('<br /><br /><p class="hint">Hint: Mount it via webdav like this: <a href="webdav://'.$_SERVER["HTTP_HOST"].'/webdav/owncloud.php">webdav://'.$_SERVER["HTTP_HOST"].'/webdav/owncloud.php</a></p>'); echo('<p class="hint">Hint: Mount it via webdav like this: <a href="webdav://'.$_SERVER["HTTP_HOST"].'/webdav/owncloud.php">webdav://'.$_SERVER["HTTP_HOST"].'/webdav/owncloud.php</a></p>');
OC_UTIL::showfooter(); OC_UTIL::showfooter();
......
...@@ -29,7 +29,7 @@ OC_UTIL::showheader(); ...@@ -29,7 +29,7 @@ OC_UTIL::showheader();
echo('<div class="center">'); echo('<div class="center">');
echo('nothing here yet :-)'); echo('nothing here yet :-)');
echo('</div><br /><br />'); echo('</div>');
OC_UTIL::showfooter(); OC_UTIL::showfooter();
......
...@@ -29,7 +29,7 @@ OC_UTIL::showheader(); ...@@ -29,7 +29,7 @@ OC_UTIL::showheader();
echo('<div class="center">'); echo('<div class="center">');
echo('nothing here yet :-)'); echo('nothing here yet :-)');
echo('</div><br /><br />'); echo('</div>');
OC_UTIL::showfooter(); OC_UTIL::showfooter();
......
...@@ -28,7 +28,7 @@ OC_UTIL::showheader(); ...@@ -28,7 +28,7 @@ OC_UTIL::showheader();
echo('<div class="center">'); echo('<div class="center">');
echo('nothing here yet :-)'); echo('nothing here yet :-)');
echo('</div><br /><br />'); echo('</div>');
OC_UTIL::showfooter(); OC_UTIL::showfooter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment