2011-08-23 03:40:13 +04:00
|
|
|
<?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');
|
2011-09-18 23:31:56 +04:00
|
|
|
OC_Util::checkAdminUser();
|
2011-08-23 03:40:13 +04:00
|
|
|
|
|
|
|
OC_Util::addStyle( "settings", "settings" );
|
2011-10-16 23:08:44 +04:00
|
|
|
OC_Util::addScript( "settings", "admin" );
|
2012-04-16 14:21:12 +04:00
|
|
|
OC_Util::addScript( "settings", "log" );
|
2011-08-23 03:40:13 +04:00
|
|
|
OC_App::setActiveNavigationEntry( "admin" );
|
|
|
|
|
|
|
|
$tmpl = new OC_Template( 'settings', 'admin', 'user');
|
|
|
|
$forms=OC_App::getForms('admin');
|
2012-06-21 16:18:43 +04:00
|
|
|
$htaccessworking=OC_Util::ishtaccessworking();
|
2012-04-16 14:21:12 +04:00
|
|
|
|
|
|
|
$entries=OC_Log_Owncloud::getEntries(3);
|
|
|
|
function compareEntries($a,$b){
|
|
|
|
return $b->time - $a->time;
|
|
|
|
}
|
|
|
|
usort($entries, 'compareEntries');
|
|
|
|
|
2011-10-16 23:08:44 +04:00
|
|
|
$tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 ));
|
2012-06-19 19:24:55 +04:00
|
|
|
$tmpl->assign('entries',OC_Util::sanitizeHTML($entries));
|
2012-06-21 16:18:43 +04:00
|
|
|
$tmpl->assign('htaccessworking',$htaccessworking);
|
2011-08-23 03:40:13 +04:00
|
|
|
$tmpl->assign('forms',array());
|
|
|
|
foreach($forms as $form){
|
|
|
|
$tmpl->append('forms',$form);
|
|
|
|
}
|
2011-09-18 23:31:56 +04:00
|
|
|
$tmpl->printPage();
|