XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
xoopsimagemanager.php
Go to the documentation of this file.
1 <?php
14 if (!defined("XOOPS_ROOT_PATH")) { die("XOOPS root path not defined"); }
15 
16 // check categories readability by group
17 $groups = is_object( $GLOBALS["xoopsUser"] ) ? $GLOBALS["xoopsUser"]->getGroups() : array( XOOPS_GROUP_ANONYMOUS );
18 $imgcat_handler =& xoops_gethandler('imagecategory');
19 if ( count($imgcat_handler->getList($groups, 'imgcat_read', 1)) == 0 ) {
20  return false;
21 }
22 return true;
23 ?>