summaryrefslogtreecommitdiffstats
path: root/admin/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/index.php')
-rw-r--r--admin/index.php44
1 files changed, 23 insertions, 21 deletions
diff --git a/admin/index.php b/admin/index.php
index 92c465e8d61..a9cc079c875 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -3,39 +3,41 @@
/**
* ownCloud
*
-* @author Frank Karlitschek
-* @copyright 2010 Frank Karlitschek karlitschek@kde.org
-*
+* @author Frank Karlitschek
+* @copyright 2010 Frank Karlitschek karlitschek@kde.org
+*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either
+* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
-*
+*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*
-* You should have received a copy of the GNU Affero General Public
+*
+* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*
+*
*/
-$CONFIG_ERROR='';
-
-require_once('../inc/lib_base.php');
+require_once('../lib/base.php');
+oc_require( 'template.php' );
+if( !OC_USER::isLoggedIn()){
+ header( "Location: ".OC_UTIL::linkto( "index.php" ));
+ exit();
+}
+$adminpages = array();
-OC_UTIL::showheader();
+foreach( OC_UTIL::$adminpages as $i ){
+ // Do some more work here soon
+ $adminpages[] = $i;
+}
-$FIRSTRUN=false;
-
-echo('<div class="center">');
-OC_CONFIG::showadminform();
-echo('</div>');
-
-
-OC_UTIL::showfooter();
+$tmpl = new OC_TEMPLATE( "admin", "index", "admin" );
+$tmpl->assign( "adminpages", $adminpages );
+$tmpl->printPage();
?>
-
+