nextcloud/settings/ajax/getlog.php

18 lines
469 B
PHP
Raw Normal View History

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
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));