2010-03-14 02:43:47 +03:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2010-03-14 02:46:28 +03:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2010-03-19 19:38:19 +03:00
|
|
|
<head>
|
|
|
|
<title>ownCloud</title>
|
2010-03-24 18:35:24 +03:00
|
|
|
<base href="<?php echo($WEBROOT); ?>/"/>
|
2010-04-18 00:09:47 +04:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo($WEBROOT)?>/css/default.php"/>
|
2010-03-24 18:35:24 +03:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_ajax.js'></script>
|
2010-03-29 23:49:11 +04:00
|
|
|
<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>
|
2010-03-24 18:35:24 +03:00
|
|
|
<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>
|
2010-04-04 18:50:04 +04:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_event.js'></script>
|
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/filebrowser.js'></script>
|
2010-03-28 15:07:13 +04:00
|
|
|
<?php
|
|
|
|
foreach(OC_UTIL::$scripts as $script){
|
|
|
|
echo("<script type='text/ecmascript' src='$WEBROOT/$script'></script>");
|
|
|
|
}
|
|
|
|
?>
|
2010-03-24 18:35:24 +03:00
|
|
|
<script type='text/ecmascript'>
|
|
|
|
var WEBROOT='<?php echo($WEBROOT)?>';
|
|
|
|
</script>
|
2010-03-19 19:38:19 +03:00
|
|
|
</head>
|
2010-03-24 18:35:24 +03:00
|
|
|
<body onload='OC_onload.run()'>
|
2010-04-12 16:31:22 +04:00
|
|
|
<div id='mainlayout'>
|
|
|
|
<div class='head'>
|
2010-03-10 15:03:40 +03:00
|
|
|
<?php
|
2010-03-24 10:51:59 +03:00
|
|
|
echo('<h1><a id="owncloud-logo" href="'.$WEBROOT.'"><span>ownCloud</span></a></h1>');
|
2010-03-10 15:03:40 +03:00
|
|
|
|
|
|
|
|
2010-03-16 10:48:36 +03:00
|
|
|
// check if already configured. otherwise start configuration wizard
|
2010-03-16 22:25:05 +03:00
|
|
|
$error=OC_CONFIG::writeconfiglisener();
|
2010-03-18 23:37:25 +03:00
|
|
|
echo $error;
|
2010-03-16 10:48:36 +03:00
|
|
|
if(empty($CONFIG_ADMINLOGIN)) {
|
2010-03-24 18:35:24 +03:00
|
|
|
global $FIRSTRUN;
|
2010-03-18 23:37:25 +03:00
|
|
|
$FIRSTRUN=true;
|
2010-03-16 10:48:36 +03:00
|
|
|
echo('<div class="center">');
|
|
|
|
echo('<p class="errortext">'.$error.'</p>');
|
|
|
|
echo('<p class="highlighttext">First Run Wizard</p>');
|
2010-03-16 22:25:05 +03:00
|
|
|
OC_CONFIG::showconfigform();
|
2010-03-16 10:48:36 +03:00
|
|
|
echo('</div>');
|
|
|
|
OC_UTIL::showfooter();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// show the loginform if not loggedin
|
|
|
|
if(!isset($_SESSION['username']) or $_SESSION['username']=='') {
|
2010-03-14 04:03:29 +03:00
|
|
|
echo('<div class="center">');
|
2010-03-10 15:03:40 +03:00
|
|
|
OC_UTIL::showloginform();
|
2010-03-14 03:33:49 +03:00
|
|
|
echo('</div>');
|
2010-03-10 15:03:40 +03:00
|
|
|
OC_UTIL::showfooter();
|
|
|
|
exit();
|
|
|
|
}else{
|
2010-03-14 04:03:29 +03:00
|
|
|
echo('<div id="nav" class="center">');
|
2010-03-10 15:03:40 +03:00
|
|
|
OC_UTIL::shownavigation();
|
2010-03-14 03:33:49 +03:00
|
|
|
echo('</div>');
|
2010-04-12 16:31:22 +04:00
|
|
|
echo('</div><div class="body">');
|
2010-03-10 15:03:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|