server/settings/admin.php

34 lines
968 B
PHP
Raw Normal View History

<?php
/**
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/
require_once('../lib/base.php');
OC_Util::checkAdminUser();
OC_Util::addStyle( "settings", "settings" );
2011-10-16 19:08:44 +00:00
OC_Util::addScript( "settings", "admin" );
2012-04-16 10:21:12 +00:00
OC_Util::addScript( "settings", "log" );
OC_App::setActiveNavigationEntry( "admin" );
$tmpl = new OC_Template( 'settings', 'admin', 'user');
$forms=OC_App::getForms('admin');
$htaccessworking=OC_Util::ishtaccessworking();
2012-04-16 10:21:12 +00:00
$entries=OC_Log_Owncloud::getEntries(3);
function compareEntries($a,$b){
return $b->time - $a->time;
}
usort($entries, 'compareEntries');
2012-06-11 17:33:16 +00:00
$tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 ));
2012-06-19 15:24:55 +00:00
$tmpl->assign('entries',$entries);
$tmpl->assign('htaccessworking',$htaccessworking);
2012-06-11 11:27:32 +00:00
$tmpl->assign('forms',array());
foreach($forms as $form){
$tmpl->append('forms',$form);
}
$tmpl->printPage();