admin.php 653 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */
  7. require_once('../lib/base.php');
  8. OC_Util::checkAdminUser();
  9. OC_Util::addStyle( "settings", "settings" );
  10. OC_Util::addScript( "settings", "admin" );
  11. OC_App::setActiveNavigationEntry( "admin" );
  12. $tmpl = new OC_Template( 'settings', 'admin', 'user');
  13. $forms=OC_App::getForms('admin');
  14. $tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 ));
  15. $tmpl->assign('forms',array());
  16. foreach($forms as $form){
  17. $tmpl->append('forms',$form);
  18. }
  19. $tmpl->printPage();