ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
module.php File Reference

Go to the source code of this file.

Namespaces

 SimpleSAMLphp
 Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.
 

Variables

 $indexFiles = array('index.php', 'index.html', 'index.htm', 'index.txt')
 
 $mimeTypes
 
if(empty($_SERVER['PATH_INFO'])) $url = $_SERVER['PATH_INFO']
 
 $modEnd = strpos($url, '/', 1)
 
if($modEnd===false) $module = substr($url, 1, $modEnd - 1)
 
if($url===false) if(!SimpleSAML\Module::isModuleEnabled($module)) if(strpos($url, '\\') !==false) elseif(strpos($url, './') !==false) $moduleDir = SimpleSAML\Module::getModuleDir($module).'/www/'
 
for($phpPos=strpos($url, '.php/'); $phpPos !==false; $phpPos=strpos($url, '.php/', $phpPos+1)) $path = $moduleDir.$url
 
if($path[strlen($path) - 1]==='/') if(is_dir($path)) if(!file_exists($path)) if(preg_match('#\.php$#D', $path)) $contentType = null
 
if(preg_match('#\.( $contentLength [^/\.]+)$#D', $path, $type)) if($contentType===null) = sprintf('%u', filesize($path))
 

Variable Documentation

◆ $contentLength

if (preg_match('#\.( $contentLength[^/\.]+)$#D', $path, $type)) if ( $contentType===null) = sprintf('%u', filesize($path))

Definition at line 163 of file module.php.

Referenced by Slim\App\respond().

◆ $contentType

◆ $indexFiles

$indexFiles = array('index.php', 'index.html', 'index.htm', 'index.txt')

Definition at line 15 of file module.php.

◆ $mimeTypes

$mimeTypes
Initial value:
'bmp' => 'image/x-ms-bmp',
'css' => 'text/css',
'gif' => 'image/gif',
'htm' => 'text/html',
'html' => 'text/html',
'shtml' => 'text/html',
'ico' => 'image/vnd.microsoft.icon',
'jpe' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'jpg' => 'image/jpeg',
'js' => 'text/javascript',
'pdf' => 'application/pdf',
'png' => 'image/png',
'svg' => 'image/svg+xml',
'svgz' => 'image/svg+xml',
'swf' => 'application/x-shockwave-flash',
'swfl' => 'application/x-shockwave-flash',
'txt' => 'text/plain',
'xht' => 'application/xhtml+xml',
'xhtml' => 'application/xhtml+xml',
)
Create styles array
The data for the language used.

Definition at line 18 of file module.php.

◆ $modEnd

$modEnd = strpos($url, '/', 1)

Definition at line 53 of file module.php.

◆ $module

if ( $modEnd===false) $module = substr($url, 1, $modEnd - 1)

Definition at line 59 of file module.php.

Referenced by MDB2_Driver_Common\__call(), HTMLPurifier_ContentSets\__construct(), ilLanguage\__destruct(), ilLinkChecker\__txt(), ilObjLanguageExt\_deleteValues(), ilObjLanguageExt\_saveValues(), HTMLPurifier_HTMLDefinition\addAttribute(), HTMLPurifier_HTMLDefinition\addBlankElement(), HTMLPurifier_HTMLDefinition\addElement(), HTMLPurifier_HTMLModuleManager\addModule(), SimpleSAML\Locale\Localization\addModuleDomain(), SimpleSAML\Module\autoloadPSR0(), SimpleSAML\Module\autoloadPSR4(), ilInitialisation\buildHTTPPath(), ilSoapFunctions\buildHTTPPath(), ilCtrl\callBaseClass(), ilNotificationDatabaseHandler\disableListeners(), HTMLPurifier_AttrCollections\doConstruct(), ilNotificationSystem\enableListeners(), ilNotificationDatabaseHandler\enableListeners(), ilNotificationSystem\enableUserListeners(), HTMLPurifier_ContentSets\generateChildDef(), HTMLPurifier_ContentSets\getChildDef(), SimpleSAML\Locale\Translate\getDictionary(), HTMLPurifier_HTMLModuleManager\getElement(), HTMLPurifier_HTMLModuleManager\getElements(), ilHelpMapping\getHelpSectionsForId(), SimpleSAML\Module\getModuleDir(), ilTrQuery\getSCOsStatusForUser(), ilNotificationDatabaseHandler\getUsersByListener(), ilHelpMapping\hasScreenIdSections(), ilObjLanguage\insert(), ilLanguage\insertLanguage(), getid3_handler\isDependencyFor(), SimpleSAML\Module\isModuleEnabled(), SimpleSAML\Module\isModuleEnabledWithConf(), ilDBPostgreSQL\loadModule(), ilDBMySQL\loadModule(), ilDBPdo\loadModule(), MDB2_Driver_Common\loadModule(), ilDBUpdate\loadXMLInfo(), Twig_TokenParser_Embed\parse(), HTMLPurifier_HTMLModuleManager\processModule(), HTMLPurifier_HTMLDefinition\processModules(), HTMLPurifier_HTMLModuleManager\registerModule(), ilSetupGUI\reloadControlStructure(), ilTextAreaInputGUI\setRTESupport(), HTMLPurifier_HTMLModuleManager\setup(), ilObjLanguageExtGUI\statisticsObject(), and ilUserCronCheckAccounts\txt().

◆ $moduleDir

if ( $url===false) if (!SimpleSAML\Module::isModuleEnabled( $module)) if (strpos( $url, '\\') !==false) elseif (strpos( $url, './') !==false) $moduleDir = SimpleSAML\Module::getModuleDir($module).'/www/'

◆ $path

for ( $phpPos=strpos( $url, '.php/');$phpPos !==false;$phpPos=strpos( $url, '.php/', $phpPos+1)) $path = $moduleDir.$url

Definition at line 97 of file module.php.

◆ $url

$url = $_SERVER['PATH_INFO']

Definition at line 45 of file module.php.