XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier xoopsimagebrowser.php

Espaces de nommage

 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))
 

Documentation des variables

◆ $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
Valeur initiale :
{
$target = $_REQUEST['target']

◆ if

if ( $isadmin||!empty( $catwritelist)) if($isadmin)
$_REQUEST
$_REQUEST['op']
Definition: readpmsg.php:26
$target
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:90