summaryrefslogtreecommitdiffstats
path: root/inc/templates/header.php
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-04-23 00:05:04 +0200
committerRobin <robin@Amaya.(none)>2010-04-23 00:05:04 +0200
commitb5dae01a8a0e9c1e4f3d60da74eae74dd8a9e007 (patch)
treecdec7b5af6ae8d3e9b1c3b37edd339f179db8362 /inc/templates/header.php
parent07a8992a84c252ab10d6047e3de1ce16ac3c6b0b (diff)
downloadnextcloud-server-b5dae01a8a0e9c1e4f3d60da74eae74dd8a9e007.tar.gz
nextcloud-server-b5dae01a8a0e9c1e4f3d60da74eae74dd8a9e007.zip
change the config system to support multi user
Diffstat (limited to 'inc/templates/header.php')
-rwxr-xr-xinc/templates/header.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/inc/templates/header.php b/inc/templates/header.php
index 46c64bfd645..51e729cb8e1 100755
--- a/inc/templates/header.php
+++ b/inc/templates/header.php
@@ -32,9 +32,15 @@ echo('<h1><a id="owncloud-logo" href="'.$WEBROOT.'"><span>ownCloud</span></a></h
// check if already configured. otherwise start configuration wizard
- $error=OC_CONFIG::writeconfiglisener();
+ $error=OC_CONFIG::writeadminlisener();
+ if($e=OC_CONFIG::configlisener()){
+ $error.=$e;
+ }
if($e=OC_CONFIG::createuserlisener()){
- $error=$e;
+ $error.=$e;
+ }
+ if($e=OC_CONFIG::creategrouplisener()){
+ $error.=$e;
}
$CONFIG_ERROR=$error;
global $CONFIG_INSTALLED;
@@ -44,7 +50,7 @@ echo('<h1><a id="owncloud-logo" href="'.$WEBROOT.'"><span>ownCloud</span></a></h
echo('<div class="center">');
echo('<p class="errortext">'.$error.'</p>');
echo('<p class="highlighttext">First Run Wizard</p>');
- OC_CONFIG::showconfigform();
+ OC_CONFIG::showadminform();
echo('</div>');
OC_UTIL::showfooter();
exit();