settings.php 555 B

123456789101112131415161718192021
  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::checkLoggedIn();
  9. OC_Util::addStyle( 'settings', 'settings' );
  10. OC_App::setActiveNavigationEntry( 'settings' );
  11. $tmpl = new OC_Template( 'settings', 'settings', 'user');
  12. $forms=OC_App::getForms('settings');
  13. $tmpl->assign('forms', array());
  14. foreach($forms as $form){
  15. $tmpl->append('forms', $form);
  16. }
  17. $tmpl->printPage();