From 3984607ef5f7af3c00449bbc5a0f587ef9e25b60 Mon Sep 17 00:00:00 2001 From: CharlyCoste Date: Sun, 14 Mar 2010 01:33:49 +0100 Subject: [PATCH] center is not a valid strict xhtml1.0 tag (not semantic). At least, replacing it by a div with "center" class. --- css/default.css | 22 ++++++++++++++++++++++ inc/lib_base.php | 2 +- inc/lib_files.php | 8 ++++---- inc/lib_log.php | 4 ++-- inc/templates/header.php | 10 +++++----- plugins/music/index.php | 4 ++-- plugins/test/index.php | 4 ++-- settings/index.php | 4 ++-- 8 files changed, 40 insertions(+), 18 deletions(-) diff --git a/css/default.css b/css/default.css index 7cc4aaa794c..61d61bb2207 100755 --- a/css/default.css +++ b/css/default.css @@ -2,6 +2,28 @@ 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;} +.center { + text-align:center; +} + +.center * { + margin-left:auto; + margin-right:auto; +} + +a#owncloud-logo { + margin-left:auto; + margin-right:auto; + display:block; + width:200px; + height:99px; + background: transparent url(/img/owncloud-logo-small.png) no-repeat scroll 0 0; +} + +a#owncloud-logo span { + display:none; +} + .nametext a {color:#333333; font-size:8pt; font-weight:bold; text-decoration:none;} .highlighttext {color:#333333; font-size:9pt; font-weight:bold; text-decoration:none;} .datetext {color:#333333; font-size:7pt;} diff --git a/inc/lib_base.php b/inc/lib_base.php index 38821eed88c..f4523228674 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -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('

can not connect to database.
'); + echo('

can not connect to database.
'); exit(); } } diff --git a/inc/lib_files.php b/inc/lib_files.php index 0c3d84519c2..d00444ab09d 100755 --- a/inc/lib_files.php +++ b/inc/lib_files.php @@ -48,18 +48,18 @@ class OC_FILES { // breadcrumb if(count($dirs)>1) { - echo('
'); + echo('
'); echo(''); $currentdir=''; foreach($dirs as $d) { $currentdir.='/'.$d.''; if($d<>'') echo(''); } - echo('
home '.$d.'
'); + echo(''); } // files and directories - echo('
'); + echo('
'); $filesfound=false; if (is_dir($directory)) { if ($dh = opendir($directory)) { @@ -83,7 +83,7 @@ class OC_FILES { } echo('
'); if(!$filesfound) echo('
no files here'); - echo('
'); + echo(''); } diff --git a/inc/lib_log.php b/inc/lib_log.php index 4f34728ff1d..980011e05e2 100755 --- a/inc/lib_log.php +++ b/inc/lib_log.php @@ -59,7 +59,7 @@ class OC_LOG { */ public static function show(){ global $CONFIG_DATEFORMAT; - echo('
'); + echo('
'); $result = OC_DB::query('select timestamp,user,type,message from log order by timestamp desc limit 20'); $count=OC_DB::numrows($result); @@ -73,7 +73,7 @@ class OC_LOG { echo(''); echo(''); } - echo('
'.$entry['message'].'
'); + echo(''); OC_DB::free_result($result); } diff --git a/inc/templates/header.php b/inc/templates/header.php index 5af86e72276..387848ea6be 100755 --- a/inc/templates/header.php +++ b/inc/templates/header.php @@ -6,21 +6,21 @@ -
+
'); + echo('

'); OC_UTIL::showloginform(); - echo('
'); + echo(''); OC_UTIL::showfooter(); exit(); }else{ - echo('
'); + echo('
'); OC_UTIL::shownavigation(); - echo('
'); + echo(''); } diff --git a/plugins/music/index.php b/plugins/music/index.php index 9002a4052e7..622a89d7e7a 100755 --- a/plugins/music/index.php +++ b/plugins/music/index.php @@ -27,9 +27,9 @@ require_once('../../config/config.php'); OC_UTIL::showheader(); -echo('
'); +echo('
'); echo('nothing here yet :-)'); -echo('


'); +echo('

'); OC_UTIL::showfooter(); diff --git a/plugins/test/index.php b/plugins/test/index.php index 9002a4052e7..622a89d7e7a 100755 --- a/plugins/test/index.php +++ b/plugins/test/index.php @@ -27,9 +27,9 @@ require_once('../../config/config.php'); OC_UTIL::showheader(); -echo('
'); +echo('
'); echo('nothing here yet :-)'); -echo('


'); +echo('

'); OC_UTIL::showfooter(); diff --git a/settings/index.php b/settings/index.php index a5e3649e855..61296433673 100755 --- a/settings/index.php +++ b/settings/index.php @@ -26,9 +26,9 @@ require_once('../config/config.php'); OC_UTIL::showheader(); -echo('
'); +echo('
'); echo('nothing here yet :-)'); -echo('


'); +echo('

'); OC_UTIL::showfooter(); -- 2.39.5