2012-02-25 20:19:32 +00: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
|
|
|
|
require_once('../../lib/base.php');
|
|
|
|
|
|
|
|
OC_JSON::checkAdminUser();
|
|
|
|
|
|
|
|
$count=(isset($_GET['count']))?$_GET['count']:50;
|
|
|
|
$offset=(isset($_GET['offset']))?$_GET['offset']:0;
|
|
|
|
|
2012-03-30 21:15:48 +00:00
|
|
|
$entries=OC_Log_Owncloud::getEntries($count,$offset);
|
2012-06-19 15:24:55 +00:00
|
|
|
OC_JSON::success(array("data" => OC_Util::sanitizeHTML($entries)));
|