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>
|
2010-03-10 12:03:40 +00:00
|
|
|
<title>ownCloud</title>
|
2010-03-16 07:48:36 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo($WEBROOT); ?>/css/default.php" />
|
2010-03-10 12:03:40 +00:00
|
|
|
</head>
|
2010-03-13 23:58:59 +00:00
|
|
|
<body>
|
2010-03-10 12:03:40 +00:00
|
|
|
<?php
|
2010-03-16 07:48:36 +00:00
|
|
|
echo('<h1><a id="owncloud-logo" href="'.$WEBROOT.'/"><span>ownCloud</span></a></h1>');
|
2010-03-10 12:03:40 +00:00
|
|
|
|
|
|
|
|
2010-03-16 07:48:36 +00:00
|
|
|
// check if already configured. otherwise start configuration wizard
|
2010-03-16 19:25:05 +00:00
|
|
|
$error=OC_CONFIG::writeconfiglisener();
|
2010-03-16 07:48:36 +00:00
|
|
|
if(empty($CONFIG_ADMINLOGIN)) {
|
|
|
|
echo('<div class="center">');
|
|
|
|
echo('<p class="errortext">'.$error.'</p>');
|
|
|
|
echo('<p class="highlighttext">First Run Wizard</p>');
|
2010-03-16 19:25:05 +00:00
|
|
|
OC_CONFIG::showconfigform();
|
2010-03-16 07:48:36 +00:00
|
|
|
echo('</div>');
|
|
|
|
OC_UTIL::showfooter();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// show the loginform if not loggedin
|
|
|
|
if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
|
2010-03-14 01:03:29 +00:00
|
|
|
echo('<div class="center">');
|
2010-03-10 12:03:40 +00:00
|
|
|
OC_UTIL::showloginform();
|
2010-03-14 00:33:49 +00:00
|
|
|
echo('</div>');
|
2010-03-10 12:03:40 +00:00
|
|
|
OC_UTIL::showfooter();
|
|
|
|
exit();
|
|
|
|
}else{
|
2010-03-14 01:03:29 +00:00
|
|
|
echo('<div id="nav" class="center">');
|
2010-03-10 12:03:40 +00:00
|
|
|
OC_UTIL::shownavigation();
|
2010-03-14 00:33:49 +00:00
|
|
|
echo('</div>');
|
2010-03-10 12:03:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|