API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Variables | |
if(!class_exists('ProtectorRegistry')) | $registry = ProtectorRegistry::getInstance() |
$mydirname = $registry->getEntry('mydirname') | |
$mydirpath = $registry->getEntry('mydirpath') | |
$language = $registry->getEntry('language') | |
$mytrustdirname = basename(__DIR__) | |
$mytrustdirpath = __DIR__ | |
$module_handler = xoops_getHandler('module') | |
$xoopsModule = $module_handler->getByDirname($mydirname) | |
$config_handler = xoops_getHandler('config') | |
$xoopsModuleConfig = $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')) | |
$moduleperm_handler = xoops_getHandler('groupperm') | |
if(!is_object(@ $xoopsUser)||! $moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) | $xoopsOption ['pagetype'] = 'admin' |
if(file_exists("$mydirpath/language/$language/admin.php")) elseif(file_exists("$mytrustdirpath/language/$language/admin.php")) | else |
$config_handler = xoops_getHandler('config') |
$language = $registry->getEntry('language') |
$module_handler = xoops_getHandler('module') |
$moduleperm_handler = xoops_getHandler('groupperm') |
$mydirname = $registry->getEntry('mydirname') |
$mydirpath = $registry->getEntry('mydirpath') |
$mytrustdirname = basename(__DIR__) |
$mytrustdirpath = __DIR__ |
if (!class_exists( 'ProtectorRegistry')) $registry = ProtectorRegistry::getInstance() |
$xoopsModule = $module_handler->getByDirname($mydirname) |
$xoopsModuleConfig = $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')) |
if (!is_object( @ $xoopsUser)||! $moduleperm_handler->checkRight( 'module_admin', $xoopsModule->getVar( 'mid'), $xoopsUser->getGroups())) $xoopsOption[ 'pagetype'] = 'admin' |
if(file_exists("$mytrustdirpath/admin/$page.php")) elseif (file_exists("$mytrustdirpath/admin/index.php")) else |