API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
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)) | |
$catreadcount = count($catreadlist) |
$catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1) |
$catwritecount = count($catwritelist) |
$catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1) |
if (isset( $_POST)) $current_file = basename(__FILE__) |
$current_path = __DIR__ |
$gperm_handler = xoops_getHandler('groupperm') |
$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS) |
$imgcat_handler = xoops_getHandler('imagecategory') |
$isadmin = false |
$op = 'list' |
This code was moved to the top to avoid overriding variables that do not come from post
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 (DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/')) |
global $xoopsConfig |
if($isadmin||!empty($catwritelist)) if($isadmin) | ( | $isadmin|| $catreadcount > 0)||( $catwritecount > 0 | ) |