PHP Classes

File: htdocs/class/xoopseditor/tinymce5/include/xoopsimagemanager.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/class/xoopseditor/tinymce5/include/xoopsimagemanager.php   Download  
File: htdocs/class/xoopseditor/tinymce5/include/xoopsimagemanager.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 3 months ago
Size: 737 bytes
 

Contents

Class file image Download
<?php
/**
 * TinyMCE adapter for XOOPS
 *
 * @copyright (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package class
 * @subpackage editor
 * @since 2.3.0
 * @author Laurent JEN <dugris@frxoops.org>
 */

if (!defined('XOOPS_ROOT_PATH')) {
    throw new \
RuntimeException('XOOPS root path not defined');
}

// check categories readability by group
$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : [XOOPS_GROUP_ANONYMOUS];
$imgcat_handler = xoops_getHandler('imagecategory');

return !(
count($imgcat_handler->getList($groups, 'imgcat_read', 1)) == 0);