diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-25 21:19:32 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-26 03:10:29 +0100 |
commit | 797e921b9aa25f832718a3c44cfcb936f96c49df (patch) | |
tree | 890cdbcadc8f15a3fac7c1db53adbd2a1b7fc5ce /settings/ajax | |
parent | a7d7597d552ce41aa7f9d77c751b9160224cf96a (diff) | |
download | nextcloud-server-797e921b9aa25f832718a3c44cfcb936f96c49df.tar.gz nextcloud-server-797e921b9aa25f832718a3c44cfcb936f96c49df.zip |
improve log browsing
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/getlog.php | 17 | ||||
-rw-r--r-- | settings/ajax/setquota.php | 5 |
2 files changed, 22 insertions, 0 deletions
diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php new file mode 100644 index 00000000000..600ebefcece --- /dev/null +++ b/settings/ajax/getlog.php @@ -0,0 +1,17 @@ +<?php +/** + * Copyright (c) 2012, Robin Appelman <icewind1991@gmail.com> + * This file is licensed under the Affero General Public License version 3 or later. + * See the COPYING-README file. + */ + +// Init owncloud +require_once('../../lib/base.php'); + +OC_JSON::checkAdminUser(); + +$count=(isset($_GET['count']))?$_GET['count']:50; +$offset=(isset($_GET['offset']))?$_GET['offset']:0; + +$entries=OC_Log::getEntries($count,$offset); +OC_JSON::success(array("data" => $entries)); diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index dc87625a05d..f59017600ac 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -1,4 +1,9 @@ <?php +/** + * Copyright (c) 2012, Robin Appelman <icewind1991@gmail.com> + * This file is licensed under the Affero General Public License version 3 or later. + * See the COPYING-README file. + */ // Init owncloud require_once('../../lib/base.php'); |