@@ -2,6 +2,10 @@ 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;} | |||
h1 { | |||
margin-bottom:1.5em; | |||
} | |||
.center { | |||
text-align:center; | |||
} | |||
@@ -11,6 +15,10 @@ body,th,td,ul,li,a,div,p,pre {color:#333333; font-family:Verdana,"Bitstream Vera | |||
margin-right:auto; | |||
} | |||
div#nav { | |||
margin-bottom:2em; | |||
} | |||
a#owncloud-logo { | |||
margin-left:auto; | |||
margin-right:auto; | |||
@@ -28,8 +36,8 @@ a#owncloud-logo span { | |||
.highlighttext {color:#333333; font-size:9pt; font-weight:bold; text-decoration:none;} | |||
.datetext {color:#333333; font-size:7pt;} | |||
.sizetext {color:#333333; font-size:7pt;} | |||
.footer {color:#999999; text-align:center; font-size:9pt;} | |||
.hint {color:#AAAAAA; text-align:center; font-size:8pt;} | |||
.footer {color:#999999; text-align:center; font-size:9pt; margin-top:4em;} | |||
.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;} | |||
.formstyle { |
@@ -190,14 +190,14 @@ 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 /><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(); | |||
} | |||
} | |||
$result = @$DBConnection->query($cmd); | |||
if (!$result) { | |||
$entry='DB Error: "'.$DBConnection->error.'"<br />'; | |||
$entry.='Offending command was: '.$cmd.'<br />'; | |||
$entry='<p>DB Error: "'.$DBConnection->error.'"</p>'; | |||
$entry.='<p>Offending command was: '.$cmd.'</p>'; | |||
echo($entry); | |||
} | |||
return $result; |
@@ -82,7 +82,7 @@ class OC_FILES { | |||
} | |||
} | |||
echo('</table>'); | |||
if(!$filesfound) echo('<br />no files here'); | |||
if(!$filesfound) echo('<p>no files here</p>'); | |||
echo('</div>'); | |||
} | |||
@@ -1,5 +1,3 @@ | |||
<br /> | |||
<br /> | |||
<p class="footer"> | |||
<?php | |||
echo($CONFIG_FOOTEROWNERNAME); |
@@ -11,18 +11,17 @@ | |||
if(!isset($_SESSION['username']) or $_SESSION['username']=='') { | |||
echo('<br /><br /><div class="center">'); | |||
echo('<div class="center">'); | |||
OC_UTIL::showloginform(); | |||
echo('</div>'); | |||
OC_UTIL::showfooter(); | |||
exit(); | |||
}else{ | |||
echo('<br /><div class="center">'); | |||
echo('<div id="nav" class="center">'); | |||
OC_UTIL::shownavigation(); | |||
echo('</div>'); | |||
} | |||
?> | |||
<br /> |
@@ -39,7 +39,7 @@ if(isset($_GET['file'])) { | |||
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(); | |||
@@ -29,7 +29,7 @@ OC_UTIL::showheader(); | |||
echo('<div class="center">'); | |||
echo('nothing here yet :-)'); | |||
echo('</div><br /><br />'); | |||
echo('</div>'); | |||
OC_UTIL::showfooter(); |
@@ -29,7 +29,7 @@ OC_UTIL::showheader(); | |||
echo('<div class="center">'); | |||
echo('nothing here yet :-)'); | |||
echo('</div><br /><br />'); | |||
echo('</div>'); | |||
OC_UTIL::showfooter(); |
@@ -28,7 +28,7 @@ OC_UTIL::showheader(); | |||
echo('<div class="center">'); | |||
echo('nothing here yet :-)'); | |||
echo('</div><br /><br />'); | |||
echo('</div>'); | |||
OC_UTIL::showfooter(); |