1 2 3 4 5 6 7 8 9 10 11
<?php require_once('../../../lib/base.php'); OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('gallery'); require_once('../lib_scanner.php'); OC_JSON::success(array('albums' => OC_GALLERY_SCANNER::scan(''))); //OC_JSON::success(array('albums' => array(array('name' => 'test', 'imagesCount' => 1, 'images' => array('dupa'))))); ?>