center is not a valid strict xhtml1.0 tag (not semantic). At least, replacing it by a div with "center" class.
This commit is contained in:
parent
df612293fd
commit
3984607ef5
|
@ -2,6 +2,28 @@ 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;}
|
||||||
|
|
||||||
|
.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;}
|
.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;}
|
.highlighttext {color:#333333; font-size:9pt; font-weight:bold; text-decoration:none;}
|
||||||
.datetext {color:#333333; font-size:7pt;}
|
.datetext {color:#333333; font-size:7pt;}
|
||||||
|
|
|
@ -190,7 +190,7 @@ 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 /><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();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,18 +48,18 @@ class OC_FILES {
|
||||||
|
|
||||||
// breadcrumb
|
// breadcrumb
|
||||||
if(count($dirs)>1) {
|
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>');
|
echo('<td class="nametext"><a href="/">home</a></td>');
|
||||||
$currentdir='';
|
$currentdir='';
|
||||||
foreach($dirs as $d) {
|
foreach($dirs as $d) {
|
||||||
$currentdir.='/'.$d.'';
|
$currentdir.='/'.$d.'';
|
||||||
if($d<>'') echo('<td class="nametext"><a href="/?dir='.$currentdir.'"><img src="/img/arrow.png" border="0" /> '.$d.'</a></td>');
|
if($d<>'') echo('<td class="nametext"><a href="/?dir='.$currentdir.'"><img src="/img/arrow.png" border="0" /> '.$d.'</a></td>');
|
||||||
}
|
}
|
||||||
echo('</tr></table></center>');
|
echo('</tr></table></div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
// files and directories
|
// 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;
|
$filesfound=false;
|
||||||
if (is_dir($directory)) {
|
if (is_dir($directory)) {
|
||||||
if ($dh = opendir($directory)) {
|
if ($dh = opendir($directory)) {
|
||||||
|
@ -83,7 +83,7 @@ class OC_FILES {
|
||||||
}
|
}
|
||||||
echo('</table>');
|
echo('</table>');
|
||||||
if(!$filesfound) echo('<br />no files here');
|
if(!$filesfound) echo('<br />no files here');
|
||||||
echo('</center>');
|
echo('</div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ class OC_LOG {
|
||||||
*/
|
*/
|
||||||
public static function show(){
|
public static function show(){
|
||||||
global $CONFIG_DATEFORMAT;
|
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');
|
$result = OC_DB::query('select timestamp,user,type,message from log order by timestamp desc limit 20');
|
||||||
$count=OC_DB::numrows($result);
|
$count=OC_DB::numrows($result);
|
||||||
|
@ -73,7 +73,7 @@ class OC_LOG {
|
||||||
echo('<td class="nametext">'.$entry['message'].'</td>');
|
echo('<td class="nametext">'.$entry['message'].'</td>');
|
||||||
echo('</tr>');
|
echo('</tr>');
|
||||||
}
|
}
|
||||||
echo('</table></center>');
|
echo('</table></div>');
|
||||||
OC_DB::free_result($result);
|
OC_DB::free_result($result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,21 +6,21 @@
|
||||||
<link rel="stylesheet" type="text/css" href="/css/default.css" />
|
<link rel="stylesheet" type="text/css" href="/css/default.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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
|
<?php
|
||||||
|
|
||||||
if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
|
if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
|
||||||
|
|
||||||
echo('<br /><br /><center>');
|
echo('<br /><br /><div class="center">');
|
||||||
OC_UTIL::showloginform();
|
OC_UTIL::showloginform();
|
||||||
echo('</center>');
|
echo('</div>');
|
||||||
OC_UTIL::showfooter();
|
OC_UTIL::showfooter();
|
||||||
exit();
|
exit();
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
echo('<br /><center>');
|
echo('<br /><div class="center">');
|
||||||
OC_UTIL::shownavigation();
|
OC_UTIL::shownavigation();
|
||||||
echo('</center>');
|
echo('</div>');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@ require_once('../../config/config.php');
|
||||||
|
|
||||||
OC_UTIL::showheader();
|
OC_UTIL::showheader();
|
||||||
|
|
||||||
echo('<center>');
|
echo('<div class="center">');
|
||||||
echo('nothing here yet :-)');
|
echo('nothing here yet :-)');
|
||||||
echo('</center><br /><br />');
|
echo('</div><br /><br />');
|
||||||
|
|
||||||
|
|
||||||
OC_UTIL::showfooter();
|
OC_UTIL::showfooter();
|
||||||
|
|
|
@ -27,9 +27,9 @@ require_once('../../config/config.php');
|
||||||
|
|
||||||
OC_UTIL::showheader();
|
OC_UTIL::showheader();
|
||||||
|
|
||||||
echo('<center>');
|
echo('<div class="center">');
|
||||||
echo('nothing here yet :-)');
|
echo('nothing here yet :-)');
|
||||||
echo('</center><br /><br />');
|
echo('</div><br /><br />');
|
||||||
|
|
||||||
|
|
||||||
OC_UTIL::showfooter();
|
OC_UTIL::showfooter();
|
||||||
|
|
|
@ -26,9 +26,9 @@ require_once('../config/config.php');
|
||||||
|
|
||||||
OC_UTIL::showheader();
|
OC_UTIL::showheader();
|
||||||
|
|
||||||
echo('<center>');
|
echo('<div class="center">');
|
||||||
echo('nothing here yet :-)');
|
echo('nothing here yet :-)');
|
||||||
echo('</center><br /><br />');
|
echo('</div><br /><br />');
|
||||||
|
|
||||||
|
|
||||||
OC_UTIL::showfooter();
|
OC_UTIL::showfooter();
|
||||||
|
|
Loading…
Reference in New Issue