summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorCharlyCoste <contact@ccoste.fr>2010-03-14 01:33:49 +0100
committerCharlyCoste <contact@ccoste.fr>2010-03-14 01:33:49 +0100
commit3984607ef5f7af3c00449bbc5a0f587ef9e25b60 (patch)
tree196615372f2014a4e06302e25b5d27d491dc0f02 /inc
parentdf612293fd8c70407843a76a5c73ff8530528a73 (diff)
downloadnextcloud-server-3984607ef5f7af3c00449bbc5a0f587ef9e25b60.tar.gz
nextcloud-server-3984607ef5f7af3c00449bbc5a0f587ef9e25b60.zip
center is not a valid strict xhtml1.0 tag (not semantic). At least, replacing it by a div with "center" class.
Diffstat (limited to 'inc')
-rwxr-xr-xinc/lib_base.php2
-rwxr-xr-xinc/lib_files.php8
-rwxr-xr-xinc/lib_log.php4
-rwxr-xr-xinc/templates/header.php10
4 files changed, 12 insertions, 12 deletions
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('<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();
}
}
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('<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>');
}
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('<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);
}
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 @@
<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>');
}