aboutsummaryrefslogtreecommitdiffstats
path: root/settings/admin.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-16 12:21:12 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-16 12:21:48 +0200
commit5720bd296dbd5f0459ea53c12d488999193801da (patch)
tree6bb24f9174ee5db421f3a0d0c4d635ecc00d983b /settings/admin.php
parent70d0103a675fca4896974f1d59f5e76365304159 (diff)
downloadnextcloud-server-5720bd296dbd5f0459ea53c12d488999193801da.tar.gz
nextcloud-server-5720bd296dbd5f0459ea53c12d488999193801da.zip
merge log into admin
Diffstat (limited to 'settings/admin.php')
-rw-r--r--settings/admin.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 9ee79002b5e..a997bad4e3c 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -10,11 +10,20 @@ OC_Util::checkAdminUser();
OC_Util::addStyle( "settings", "settings" );
OC_Util::addScript( "settings", "admin" );
+OC_Util::addScript( "settings", "log" );
OC_App::setActiveNavigationEntry( "admin" );
$tmpl = new OC_Template( 'settings', 'admin', 'user');
$forms=OC_App::getForms('admin');
+
+$entries=OC_Log_Owncloud::getEntries(3);
+function compareEntries($a,$b){
+ return $b->time - $a->time;
+}
+usort($entries, 'compareEntries');
+
$tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 ));
+$tmpl->assign('entries',$entries);
$tmpl->assign('forms',array());
foreach($forms as $form){
$tmpl->append('forms',$form);