1<?php 2/** 3 * @package tikiwiki 4 */ 5// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 6// 7// All Rights Reserved. See copyright.txt for details and a complete list of authors. 8// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 9// $Id$ 10 11require_once('tiki-setup.php'); 12 13$wikilib = TikiLib::lib('wiki'); 14 15$access->check_feature(['feature_wiki']); 16$access->check_permission(['tiki_p_admin_wiki']); 17 18global $tikilib; 19 20$query = 'select distinct tp.pageName' . ' from tiki_pages tp, users_objectpermissions perm' . " where md5(concat('wiki page', lower(tp.pageName))) = perm.objectId" . " and perm.objectType = 'wiki page'" . ' order by tp.pageName'; 21 22$result = $tikilib->query($query); 23 24$pages = []; 25while ($row = $result->fetchRow()) { 26 $pages[] = $row['pageName']; 27} 28 29$smarty->assign('pagesWithDirectPerms', $pages); 30 31$smarty->assign('mid', 'tiki-report_direct_object_perms.tpl'); 32$smarty->display('tiki.tpl'); 33