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">
|
2010-03-19 16:38:19 +00:00
|
|
|
<head>
|
2010-06-29 15:09:47 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
2010-03-19 16:38:19 +00:00
|
|
|
<title>ownCloud</title>
|
2010-03-24 15:35:24 +00:00
|
|
|
<base href="<?php echo($WEBROOT); ?>/"/>
|
2010-05-14 21:32:35 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php
|
|
|
|
if(!OC_UTIL::hasSmallScreen()){
|
|
|
|
echo($WEBROOT.'/css/default.php');
|
|
|
|
}else{
|
|
|
|
echo($WEBROOT.'/css/small.php');
|
|
|
|
}
|
|
|
|
?>"/>
|
2010-03-24 15:35:24 +00:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_ajax.js'></script>
|
2010-05-02 12:39:58 +00:00
|
|
|
<?php
|
|
|
|
global $CONFIG_INSTALLED;
|
|
|
|
if($CONFIG_INSTALLED){//the javascripts somehow breaks the first run wizzard in konqueror?>
|
2010-03-29 19:49:11 +00: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 15:35:24 +00: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 14:50:04 +00:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_event.js'></script>
|
2010-04-19 17:46:42 +00:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_drag.js'></script>
|
2010-04-22 17:03:54 +00:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/lib_api.js'></script>
|
2010-04-04 14:50:04 +00:00
|
|
|
<script type='text/ecmascript' src='<?php echo($WEBROOT)?>/js/filebrowser.js'></script>
|
2010-05-02 12:39:58 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2010-03-28 11:07:13 +00:00
|
|
|
<?php
|
|
|
|
foreach(OC_UTIL::$scripts as $script){
|
2010-05-02 12:39:58 +00:00
|
|
|
echo("<script type='text/ecmascript' src='$WEBROOT/$script'></script>\n");
|
2010-03-28 11:07:13 +00:00
|
|
|
}
|
|
|
|
?>
|
2010-03-24 15:35:24 +00:00
|
|
|
<script type='text/ecmascript'>
|
|
|
|
var WEBROOT='<?php echo($WEBROOT)?>';
|
2010-05-14 21:32:35 +00:00
|
|
|
var SMALLSCREEN='<?php echo((OC_UTIL::hasSmallScreen())?'true':'false')?>';
|
2010-03-24 15:35:24 +00:00
|
|
|
</script>
|
2010-03-19 16:38:19 +00:00
|
|
|
</head>
|
2010-03-24 15:35:24 +00:00
|
|
|
<body onload='OC_onload.run()'>
|
2010-04-12 12:31:22 +00:00
|
|
|
<div id='mainlayout'>
|
|
|
|
<div class='head'>
|
2010-03-10 12:03:40 +00:00
|
|
|
<?php
|
2010-04-19 17:46:42 +00:00
|
|
|
global $CONFIG_ERROR;
|
2010-05-14 21:32:35 +00:00
|
|
|
if(!OC_UTIL::hasSmallScreen()){
|
|
|
|
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-04-22 22:05:04 +00:00
|
|
|
$error=OC_CONFIG::writeadminlisener();
|
|
|
|
if($e=OC_CONFIG::configlisener()){
|
|
|
|
$error.=$e;
|
|
|
|
}
|
2010-04-22 18:08:38 +00:00
|
|
|
if($e=OC_CONFIG::createuserlisener()){
|
2010-04-22 22:05:04 +00:00
|
|
|
$error.=$e;
|
|
|
|
}
|
|
|
|
if($e=OC_CONFIG::creategrouplisener()){
|
|
|
|
$error.=$e;
|
2010-04-22 18:08:38 +00:00
|
|
|
}
|
2010-04-19 17:46:42 +00:00
|
|
|
$CONFIG_ERROR=$error;
|
2010-04-22 17:03:54 +00:00
|
|
|
global $CONFIG_INSTALLED;
|
|
|
|
if(!$CONFIG_INSTALLED) {
|
2010-03-24 15:35:24 +00:00
|
|
|
global $FIRSTRUN;
|
2010-03-18 20:37:25 +00:00
|
|
|
$FIRSTRUN=true;
|
2010-05-01 21:57:35 +00:00
|
|
|
echo('</div><div class="body">');
|
2010-03-16 07:48:36 +00:00
|
|
|
echo('<div class="center">');
|
|
|
|
echo('<p class="errortext">'.$error.'</p>');
|
|
|
|
echo('<p class="highlighttext">First Run Wizard</p>');
|
2010-04-22 22:05:04 +00:00
|
|
|
OC_CONFIG::showadminform();
|
2010-03-16 07:48:36 +00:00
|
|
|
echo('</div>');
|
|
|
|
OC_UTIL::showfooter();
|
|
|
|
exit();
|
2010-05-01 21:57:35 +00:00
|
|
|
}elseif(!isset($_SESSION['username']) or $_SESSION['username']=='') { // show the loginform if not loggedin
|
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-04-12 12:31:22 +00:00
|
|
|
echo('</div><div class="body">');
|
2010-03-10 12:03:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|