You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
501 B

  1. <?php
  2. /**
  3. * Copyright (c) 2012, Robin Appelman <icewind1991@gmail.com>
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */
  7. // Init owncloud
  8. require_once('../../lib/base.php');
  9. OC_JSON::checkAdminUser();
  10. $count=(isset($_GET['count']))?$_GET['count']:50;
  11. $offset=(isset($_GET['offset']))?$_GET['offset']:0;
  12. $entries=OC_Log_Owncloud::getEntries($count,$offset);
  13. OC_JSON::success(array("data" => OC_Util::sanitizeHTML($entries)));