server/inc/templates/header.php

51 lines
1.6 KiB
PHP
Raw Normal View History

2010-03-13 23:43:47 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2010-03-13 23:46:28 +00:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ownCloud</title>
2010-03-24 15:35:24 +00:00
<base href="<?php echo($WEBROOT); ?>/"/>
<link rel="stylesheet" type="text/css" href="css/default.php"/>
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_ajax.js'></script>
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_xmlloader.js'></script>
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_files.js'></script>
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/ajax.js'></script>
<script type='text/ecmascript'>
var WEBROOT='<?php echo($WEBROOT)?>';
</script>
</head>
2010-03-24 15:35:24 +00:00
<body onload='OC_onload.run()'>
2010-03-10 12:03:40 +00:00
<?php
2010-03-24 07:51:59 +00:00
echo('<h1><a id="owncloud-logo" href="'.$WEBROOT.'"><span>ownCloud</span></a></h1>');
2010-03-10 12:03:40 +00:00
// check if already configured. otherwise start configuration wizard
$error=OC_CONFIG::writeconfiglisener();
echo $error;
if(empty($CONFIG_ADMINLOGIN)) {
2010-03-24 15:35:24 +00:00
global $FIRSTRUN;
$FIRSTRUN=true;
echo('<div class="center">');
echo('<p class="errortext">'.$error.'</p>');
echo('<p class="highlighttext">First Run Wizard</p>');
OC_CONFIG::showconfigform();
echo('</div>');
OC_UTIL::showfooter();
exit();
}
// show the loginform if not loggedin
if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
echo('<div class="center">');
2010-03-10 12:03:40 +00:00
OC_UTIL::showloginform();
echo('</div>');
2010-03-10 12:03:40 +00:00
OC_UTIL::showfooter();
exit();
}else{
echo('<div id="nav" class="center">');
2010-03-10 12:03:40 +00:00
OC_UTIL::shownavigation();
echo('</div>');
2010-03-10 12:03:40 +00:00
}
?>