summaryrefslogtreecommitdiffstats
path: root/inc/templates/header.php
blob: c082ea8b3da812abce395c13b65546f8c7798bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
	<title>ownCloud</title>
	<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_timer.js'></script>
	<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_notification.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/lib_event.js'></script>
	<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_drag.js'></script>
	<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/filebrowser.js'></script>
<?php
foreach(OC_UTIL::$scripts as $script){
    echo("<script type='text/ecmascript' src='$WEBROOT/$script'></script>");
}
?>
	<script type='text/ecmascript'>
	var WEBROOT='<?php echo($WEBROOT)?>';
	</script>
    </head>
    <body onload='OC_onload.run()'>
<div id='mainlayout'>
<div class='head'>
<?php
global $CONFIG_ERROR;
echo('<h1><a id="owncloud-logo" href="'.$WEBROOT.'"><span>ownCloud</span></a></h1>');


  // check if already configured. otherwise start configuration wizard
  $error=OC_CONFIG::writeconfiglisener();
  $CONFIG_ERROR=$error;
  if(empty($CONFIG_ADMINLOGIN)) {
    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">');
    OC_UTIL::showloginform();
    echo('</div>');
    OC_UTIL::showfooter();
    exit();
  }else{
    echo('<div id="nav" class="center">');
    OC_UTIL::shownavigation();
    echo('</div>');
    echo('</div><div class="body">');
  }

?>