Blame view
sources/apps/gallery/ajax/gallery.php
501 Bytes
|
d1bafeea1
|
1 2 3 4 5 6 7 8 9 10 |
<?php
/**
* Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('gallery');
|
|
6d9380f96
|
11 |
$gallery = $_GET['gallery']; |
|
d1bafeea1
|
12 |
|
|
6d9380f96
|
13 |
$meta = \OC\Files\Filesystem::getFileInfo($gallery); |
|
d1bafeea1
|
14 15 16 17 18 19 |
$data = array(); $data['fileid'] = $meta['fileid']; $data['permissions'] = $meta['permissions']; OCP\JSON::setContentTypeHeader(); echo json_encode($data); |