]> source.dussan.org Git - nextcloud-server.git/commitdiff
center is not a valid strict xhtml1.0 tag (not semantic). At least, replacing it...
authorCharlyCoste <contact@ccoste.fr>
Sun, 14 Mar 2010 00:33:49 +0000 (01:33 +0100)
committerCharlyCoste <contact@ccoste.fr>
Sun, 14 Mar 2010 00:33:49 +0000 (01:33 +0100)
css/default.css
inc/lib_base.php
inc/lib_files.php
inc/lib_log.php
inc/templates/header.php
plugins/music/index.php
plugins/test/index.php
settings/index.php

index 7cc4aaa794c453dedcfb93b6b2d94cf265ce0eb6..61d61bb2207ddab47eac4bbf9dc199247487df85 100755 (executable)
@@ -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;}
index 38821eed88cc895af24c1ae12e5e5112d2b8f3bf..f452322867406cf2b5c0ed66b57479ed1ee9e073 100755 (executable)
@@ -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 class="error"><br /><br /><center><b>can not connect to database.</center></body></html>');
+        echo('<html><head></head><body class="error"><br /><br /><div class="center"><b>can not connect to database.</div></body></html>');
         exit();
       }
     }
index 0c3d84519c2d1299040baafce4e5ab5b780425a6..d00444ab09d2924beec7279d6a4ec0e54f843736 100755 (executable)
@@ -48,18 +48,18 @@ class OC_FILES {
 
     // breadcrumb
     if(count($dirs)>1) {
-      echo('<center><table cellpadding="2" cellspacing="0" border="0"><tr>');
+      echo('<div class="center"><table cellpadding="2" cellspacing="0" border="0"><tr>');
       echo('<td class="nametext"><a href="/">home</a></td>');
       $currentdir='';
       foreach($dirs as $d) {
         $currentdir.='/'.$d.'';
         if($d<>'') echo('<td class="nametext"><a href="/?dir='.$currentdir.'"><img src="/img/arrow.png" border="0" />&nbsp;'.$d.'</a></td>');
       }
-      echo('</tr></table></center>');
+      echo('</tr></table></div>');
     }
 
     // files and directories
-    echo('<center><table cellpadding="6" cellspacing="0" border="0" class="browser">');
+    echo('<div class="center"><table cellpadding="6" cellspacing="0" border="0" class="browser">');
     $filesfound=false;
     if (is_dir($directory)) {
       if ($dh = opendir($directory)) {
@@ -83,7 +83,7 @@ class OC_FILES {
     }
     echo('</table>');
     if(!$filesfound) echo('<br />no files here');
-    echo('</center>');
+    echo('</div>');
   }
 
 
index 4f34728ff1dce2227be7ca98676cbbf7b9fb899b..980011e05e2502583ba1a88c9a7ab4e9846a97fd 100755 (executable)
@@ -59,7 +59,7 @@ class OC_LOG {
    */
   public static function show(){
     global $CONFIG_DATEFORMAT;
-    echo('<center><table cellpadding="6" cellspacing="0" border="0" class="browser">');
+    echo('<div class="center"><table cellpadding="6" cellspacing="0" border="0" class="browser">');
 
     $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('<td class="nametext">'.$entry['message'].'</td>');
       echo('</tr>');
     }
-    echo('</table></center>');
+    echo('</table></div>');
     OC_DB::free_result($result);
 
   }
index 5af86e722768410d14b0378a1b6eaa25be20c845..387848ea6be8cf6eeb5ab8eb95db3db75bf6b49a 100755 (executable)
@@ -6,21 +6,21 @@
 <link rel="stylesheet" type="text/css" href="/css/default.css" />
 </head>
 <body>
-<center><a href="/"><img src="/img/owncloud-logo-small.png" border="0"></a></center>
+<a id="owncloud-logo" href="/"><span>OwnCloud</span></a>
 <?php
 
   if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
 
-    echo('<br /><br /><center>');
+    echo('<br /><br /><div class="center">');
     OC_UTIL::showloginform();
-    echo('</center>');
+    echo('</div>');
     OC_UTIL::showfooter();
     exit();
   }else{
 
-    echo('<br /><center>');
+    echo('<br /><div class="center">');
     OC_UTIL::shownavigation();
-    echo('</center>');
+    echo('</div>');
 
   }
 
index 9002a4052e77c513a06cee45d7e51c36bbc61e00..622a89d7e7a37e1faab303ced553d8e5607f116d 100755 (executable)
@@ -27,9 +27,9 @@ require_once('../../config/config.php');
 
 OC_UTIL::showheader();
 
-echo('<center>');
+echo('<div class="center">');
 echo('nothing here yet :-)');
-echo('</center><br /><br />');
+echo('</div><br /><br />');
 
 
 OC_UTIL::showfooter();
index 9002a4052e77c513a06cee45d7e51c36bbc61e00..622a89d7e7a37e1faab303ced553d8e5607f116d 100755 (executable)
@@ -27,9 +27,9 @@ require_once('../../config/config.php');
 
 OC_UTIL::showheader();
 
-echo('<center>');
+echo('<div class="center">');
 echo('nothing here yet :-)');
-echo('</center><br /><br />');
+echo('</div><br /><br />');
 
 
 OC_UTIL::showfooter();
index a5e3649e8555ac714c28f2b20d41fd65ef4e8cfe..61296433673c941d4d285750e632efafbb5cbccb 100755 (executable)
@@ -26,9 +26,9 @@ require_once('../config/config.php');
 
 OC_UTIL::showheader();
 
-echo('<center>');
+echo('<div class="center">');
 echo('nothing here yet :-)');
-echo('</center><br /><br />');
+echo('</div><br /><br />');
 
 
 OC_UTIL::showfooter();