admin.php 968 B

12345678910111213141516171819202122232425262728293031323334
  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_Util::addScript( "settings", "log" );
  12. OC_App::setActiveNavigationEntry( "admin" );
  13. $tmpl = new OC_Template( 'settings', 'admin', 'user');
  14. $forms=OC_App::getForms('admin');
  15. $htaccessworking=OC_Util::ishtaccessworking();
  16. $entries=OC_Log_Owncloud::getEntries(3);
  17. function compareEntries($a,$b){
  18. return $b->time - $a->time;
  19. }
  20. usort($entries, 'compareEntries');
  21. $tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 ));
  22. $tmpl->assign('entries',$entries);
  23. $tmpl->assign('htaccessworking',$htaccessworking);
  24. $tmpl->assign('forms',array());
  25. foreach($forms as $form){
  26. $tmpl->append('forms',$form);
  27. }
  28. $tmpl->printPage();