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

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
 

Variable Documentation

◆ $config_handler

$config_handler = xoops_getHandler('config')

◆ $language

$language = $registry->getEntry('language')

◆ $module_handler

$module_handler = xoops_getHandler('module')

◆ $moduleperm_handler

$moduleperm_handler = xoops_getHandler('groupperm')

◆ $mydirname

$mydirname = $registry->getEntry('mydirname')

◆ $mydirpath

$mydirpath = $registry->getEntry('mydirpath')

◆ $mytrustdirname

$mytrustdirname = basename(__DIR__)

◆ $mytrustdirpath

$mytrustdirpath = __DIR__

◆ $registry

if (!class_exists( 'ProtectorRegistry')) $registry = ProtectorRegistry::getInstance()

◆ $xoopsModule

$xoopsModule = $module_handler->getByDirname($mydirname)

◆ $xoopsModuleConfig

$xoopsModuleConfig = $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid'))

◆ $xoopsOption

if (!is_object( @ $xoopsUser)||! $moduleperm_handler->checkRight( 'module_admin', $xoopsModule->getVar( 'mid'), $xoopsUser->getGroups())) $xoopsOption[ 'pagetype'] = 'admin'

◆ else

if(file_exists("$mytrustdirpath/admin/$page.php")) elseif (file_exists("$mytrustdirpath/admin/index.php")) else
Initial value:
{
include_once "$mytrustdirpath/language/english/admin.php"