XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Espaces de nommage | |
class | |
Fonctions | |
imageBrowser ($inputname='src', $canbrowse=false) | |
Variables | |
$current_path = __DIR__ | |
if(DIRECTORY_SEPARATOR !=='/') | $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/')) |
$admin = 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) | |
$canbrowse = ($admin || !empty($catreadlist) || !empty($catwritelist)) ? true : false | |
string | $inputname | |
bool | $canbrowse |
$admin = false |
$catreadlist = $imgcat_handler->getList($groups, 'imgcat_read', 1) |
$catwritelist = $imgcat_handler->getList($groups, 'imgcat_write', 1) |
$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') |
if (DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/')) |