API - XOOPS 2.5.11 Beta 2
By monxoops.fr
main.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__
 
if(file_exists("$mydirpath/language/$language/main.php")) elseif(file_exists("$mytrustdirpath/language/$language/main.php")) else
 
 $page = preg_replace('/[^a-zA-Z0-9_-]/', '', @$_GET['page'])
 

Variable Documentation

◆ $language

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

◆ $mydirname

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

◆ $mydirpath

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

◆ $mytrustdirname

$mytrustdirname = basename(__DIR__)

◆ $mytrustdirpath

$mytrustdirpath = __DIR__

◆ $page

$page = preg_replace('/[^a-zA-Z0-9_-]/', '', @$_GET['page'])

◆ $registry

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

◆ else

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