API - XOOPS 2.5.11 Beta 2
By monxoops.fr
xoopsimagebrowser.php File Reference

Namespaces

namespace  class
 

Variables

 $current_path = __DIR__
 
if(DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'))
 
 $op = 'list'
 
if(isset($_POST)) $current_file = basename(__FILE__)
 
global $xoopsConfig
 
 $isadmin = false
 
 $gperm_handler = xoops_getHandler('groupperm')
 
 $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)
 
 $imgcat_handler = xoops_getHandler('imagecategory')
 
 $catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1)
 
 $catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1)
 
 $catreadcount = count($catreadlist)
 
 $catwritecount = count($catwritelist)
 
if(!isset($_REQUEST['target'])) else
 
if(isset($_GET['op'])) if(isset( $_GET[ 'target'])) if(isset($_GET['image_id'])) if(isset( $_GET[ 'imgcat_id'])) if(isset($imgcat_id)) $target = htmlspecialchars($target)
 
 if ( $isadmin||( $catreadcount > 0)||( $catwritecount > 0))
 

Variable Documentation

◆ $catreadcount

$catreadcount = count($catreadlist)

◆ $catreadlist

$catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1)

◆ $catwritecount

$catwritecount = count($catwritelist)

◆ $catwritelist

$catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1)

◆ $current_file

if (isset( $_POST)) $current_file = basename(__FILE__)

◆ $current_path

$current_path = __DIR__

◆ $gperm_handler

$gperm_handler = xoops_getHandler('groupperm')

◆ $groups

$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)

◆ $imgcat_handler

$imgcat_handler = xoops_getHandler('imagecategory')

◆ $isadmin

$isadmin = false

◆ $op

$op = 'list'

This code was moved to the top to avoid overriding variables that do not come from post

◆ $target

if(isset( $_GET[ 'op'])) if(isset($_GET['target'])) if(isset( $_GET[ 'image_id'])) if(isset($_GET['imgcat_id'])) if (isset( $imgcat_id)) $target = htmlspecialchars($target)

◆ $xoops_root_path

if (DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'))

◆ $xoopsConfig

global $xoopsConfig

◆ else

if ( $op==='listimg') else
Initial value:
{
$target = $_REQUEST['target']
$_REQUEST['op']
Definition: readpmsg.php:26
if(isset($_GET['op'])) if(isset( $_GET[ 'target'])) if(isset($_GET['image_id'])) if(isset( $_GET[ 'imgcat_id'])) if(isset($imgcat_id)) $target
Definition: xoopsimagebrowser.php:92

◆ if

if($isadmin||!empty($catwritelist)) if($isadmin) (   $isadmin|| $catreadcount > 0)||( $catwritecount > 0)