nextcloud/settings/ajax/getlog.php

22 lines
529 B
PHP
Raw Normal View History

2012-02-25 15:19:32 -05: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.
*/
OC_JSON::checkAdminUser();
$count=(isset($_GET['count']))?$_GET['count']:50;
$offset=(isset($_GET['offset']))?$_GET['offset']:0;
2012-11-02 14:53:02 -04:00
$entries=OC_Log_Owncloud::getEntries($count, $offset);
2013-03-03 16:56:42 -05:00
$data = array();
2013-03-03 17:46:08 -05:00
2013-04-23 11:59:31 -04:00
OC_JSON::success(
array(
"data" => $entries,
"remain" => count(OC_Log_Owncloud::getEntries(1, $offset + $count)) !== 0,
2013-04-23 11:59:31 -04:00
)
);