settings.php 524 B

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