summaryrefslogtreecommitdiffstats
path: root/inc/templates/header.php
blob: 57e45e708a92047f8247f142b2d23ce7f1f28ccd (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
<!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>
<link rel="stylesheet" type="text/css" href="<?php echo($WEBROOT); ?>/css/default.php" />
</head>
<body>
<?php
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();
  echo $error;
  if(empty($CONFIG_ADMINLOGIN)) {
    $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>');
  }

?>