PHP Classes

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

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/class/xoopseditor/tinymce/include/xoopsimagemanager.php   Download  
File: htdocs/class/xoopseditor/tinymce/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: Merge pull request #1586 from mambax7/feature/Cannot_use_bool_as_array

fix for Cannot use bool as array
copyright update
short array
Merge pull request #1239 from Andrew-Staves-Activ/notificationhandler_subscribe_success

Merge pull request #946 from geekwright/profile_userinfo_tpl

Bad form in profile_userinfo.tpl
Merge branch 'feature/php8_templates' of https://github.com/mambax7/XoopsCore25 into feature/php8_templates

# Conflicts:
# htdocs/themes/xswatch4/modules/publisher/publisher_item.tpl
Merge xswatch4
Date: 2 months ago
Size: 793 bytes
 

Contents

Class file image Download
<?php
/**
 * TinyMCE adapter for XOOPS
 *
 * @copyright (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license GNU GPL 2.0 or later (https://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 category readability by group
$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : [XOOPS_GROUP_ANONYMOUS];
/** @var \XoopsImagecategoryHandler $imgcat_handler */
$imgcat_handler = xoops_getHandler('imagecategory');

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