ownCloud');
// check if already configured. otherwise start configuration wizard
$error=OC_CONFIG::writeadminlisener();
if($e=OC_CONFIG::configlisener()){
$error.=$e;
}
if($e=OC_CONFIG::createuserlisener()){
$error.=$e;
}
if($e=OC_CONFIG::creategrouplisener()){
$error.=$e;
}
$CONFIG_ERROR=$error;
global $CONFIG_INSTALLED;
if(!$CONFIG_INSTALLED) {
global $FIRSTRUN;
$FIRSTRUN=true;
echo('
');
echo('
');
echo('
');
OC_UTIL::showfooter();
exit();
}elseif(!isset($_SESSION['username']) or $_SESSION['username']=='') { // show the loginform if not loggedin
echo(''.$error.'
'); echo('First Run Wizard
'); OC_CONFIG::showadminform(); echo('');
OC_UTIL::showloginform();
echo('
');
OC_UTIL::showfooter();
exit();
}else{
echo(' ');
echo('');
}
?>