2012-02-26 00:19:32 +04:00
|
|
|
<?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
|
2012-09-04 13:46:56 +04:00
|
|
|
require_once '../../lib/base.php';
|
2012-02-26 00:19:32 +04:00
|
|
|
|
|
|
|
OC_JSON::checkAdminUser();
|
|
|
|
|
|
|
|
$count=(isset($_GET['count']))?$_GET['count']:50;
|
|
|
|
$offset=(isset($_GET['offset']))?$_GET['offset']:0;
|
|
|
|
|
2012-03-31 01:15:48 +04:00
|
|
|
$entries=OC_Log_Owncloud::getEntries($count,$offset);
|
2012-09-04 13:46:56 +04:00
|
|
|
OC_JSON::success(array(
|
|
|
|
"data" => OC_Util::sanitizeHTML($entries),
|
|
|
|
"remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $offset)) != 0) ? true : false));
|