ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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', mb_strtolower($path, 'UTF-8'))) $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))

◆ $contentType

◆ $indexFiles

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

Definition at line 15 of file module.php.

◆ $mimeTypes

$mimeTypes
Initial value:
= array(
'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',
)

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 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(), 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(), ilDBPdo\loadModule(), ilDBUpdate\loadXMLInfo(), Twig_TokenParser_Embed\parse(), HTMLPurifier_HTMLModuleManager\processModule(), HTMLPurifier_HTMLDefinition\processModules(), HTMLPurifier_HTMLModuleManager\registerModule(), ilSetupGUI\reloadControlStructure(), ilTextAreaInputGUI\setRTESupport(), HTMLPurifier_HTMLModuleManager\setup(), sspmodAutoloadPSR0(), sspmodAutoloadPSR4(), 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.