ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Go to the source code of this file.
Variables | |
const | SOURCE_ROOT "/var/www/your/source/root/" |
Another GeSHi example script. More... | |
$path = SOURCE_ROOT.$_SERVER['PATH_INFO'] | |
$base_path_len = strlen(SOURCE_ROOT) | |
$real_path = realpath($path) | |
if(strncmp( $real_path, SOURCE_ROOT, $base_path_len)) if(!file_exists($path)) | $geshi = new GeSHi() |
$base_path_len = strlen(SOURCE_ROOT) |
Definition at line 28 of file aliased.php.
if(strncmp($real_path, SOURCE_ROOT, $base_path_len)) if (!file_exists( $path)) $geshi = new GeSHi() |
Definition at line 40 of file aliased.php.
Referenced by ilSyntaxHighlighter\highlight().
$path = SOURCE_ROOT.$_SERVER['PATH_INFO'] |
Definition at line 25 of file aliased.php.
Referenced by ilCourseContentGUI\__buildPath(), ilRepositoryExplorerGUI\__construct(), ilSkillUsageTableGUI\__construct(), ilSkillSelfEvalSkillTableGUI\__construct(), ilSelfEvaluationSimpleTableGUI\__construct(), ilSkillAssignMaterialsTableGUI\__construct(), ilLPObjectStatisticsLPTableGUI\__construct(), CAS_PGTStorage_File\__construct(), _parse_lockinfo\__construct(), _parse_propfind\__construct(), _parse_proppatch\__construct(), ilWebAccessChecker\__construct(), GeSHi\__construct(), Assetic\Asset\HttpAsset\__construct(), ilAccountRegistrationGUI\__distributeMails(), ilObjBibliographic\__force_rmdir(), ilCourseGroupingAssignmentTableGUI\__formatPath(), ilLearningProgressBaseGUI\__insertPath(), ilContainerGUI\_buildPath(), ilStartUpGUI\_checkGoto(), ilObjContentObject\_checkPreconditionsOfPage(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilObjUserFolder\_deleteAccountMailAttachment(), ilNewsItem\_getDefaultVisibilityForRefId(), ilObjQuestionPool\_getFullPathToQpl(), ilObjContentObject\_getMissingPreconditionsOfPage(), ilObjContentObject\_getMissingPreconditionsTopChapter(), ilUserSearchOptions\_getSearchableFieldsInfo(), ilObjStyleSheet\_getStandardStyles(), ilObjMediaObject\_lookupItemPath(), ilObject\_prepareCloneSelection(), ilChangeEvent\_recordReadEvent(), ilChatroomAdminSmileyGUI\_setupFolder(), ilChatroomSmilies\_setupFolder(), ilObjUserFolder\_updateAccountMailAttachment(), ilStructureObjectGUI\activatePages(), ilLocatorGUI\addAdministrationItems(), ilObjOrgUnitGUI\addAdminLocatorItems(), PHPMailer\addAttachment(), ilPageObject\addChangeDivClasses(), ilLocatorGUI\addContextItems(), ilColumnGUI\addCustomBlockLocation(), PHPMailer\addEmbeddedImage(), ilPageObject\addFileSizes(), ilCloudFileTree\addFolderToService(), ilPageObject\addHierIDs(), Assetic\Filter\ScssphpFilter\addImportPath(), Assetic\Filter\LessFilter\addLoadPath(), Assetic\Filter\LessphpFilter\addLoadPath(), ilObjContentObjectGUI\addLocations(), ilObjMediaPoolGUI\addLocatorItems(), ilCloudFileTree\addNode(), ilPDSelectedItemsBlockGUI\addParentRow(), ilLocatorGUI\addRepositoryItems(), Whoops\Handler\PrettyPageHandler\addResourcePath(), ilContainerGUI\addStandardRow(), ilPDSelectedItemsBlockGUI\addStandardRow(), ComponentInstaller\Process\RequireJsProcess\aggregateScripts(), ilObjAuthSettingsGUI\apacheAuthSettingsObject(), ilSearchResultPresentation\appendAdditionalInformation(), ilTestPlayerAbstractGUI\archiveParticipantSubmission(), PHPMailer\attachAll(), HTMLPurifierExtras\autoload(), ilObjTestGUI\backToRepositoryObject(), ilPageObject\buildDom(), ilInitialisation\buildHTTPPath(), ilSoapFunctions\buildHTTPPath(), ilCalendarCategoryTableGUI\buildPath(), ilCalendarSelectionBlockGUI\buildPath(), ilObjectOwnershipManagementTableGUI\buildPath(), ilSurveySyncTableGUI\buildPath(), ilRepUtilGUI\buildPath(), ilLPTableBaseGUI\buildPath(), ilTestSubmissionReviewGUI\buildPdfFilename(), ilSearchBaseGUI\buildSearchAreaPath(), ilWACSignedPath\buildTokenInstance(), ilSurveyEvaluationGUI\cancelEvaluationAccess(), CAS_autoload(), ilObjLanguage\check(), ilTree\checkForParentType(), ilPageObject\checkForTag(), ilLanguage\checkLanguage(), ilPageObject\checkPCIds(), ilChatroomUploadFileGUI\checkUploadPath(), ilLMObject\clipboardCut(), ilSCORM2004Node\clipboardCut(), ilSkillTreeNode\clipboardCut(), ilPageObject\collectMediaObjects(), ilPageObject\countPageContents(), ilBadgeHandler\countStaticBadgeInstances(), ilChatroomConfigFileHandler\createDataDirIfNotExists(), ilFileUtils\createFile(), Assetic\Factory\AssetFactory\createFileAsset(), ilObjCourseVerification\createFromCourse(), ilObjExerciseVerification\createFromExercise(), ilObjSCORMVerification\createFromSCORMLM(), ilObjTestVerification\createFromTest(), ilSystemStyleSkinContainer\createMainLessFile(), ilCloudFileTree\createNode(), ilDBUpdate3004\createPathFromId(), ilSystemStyleSkinContainer\createResourceDirectory(), ilObjectCopyCourseGroupSelectionTableGUI\customizePath(), ilObjectTableGUI\customizePath(), ilSCORM13Package\dbImportSco(), ilObjOrgUnit\delete(), ilBadgeImageTemplate\delete(), ilMediaAliasItem\deleteAllMapAreas(), Slim_Http_CookieJar\deleteCookie(), Slim\deleteCookie(), ilLoggerCronCleanErrorFiles\deleteFile(), ilSystemStyleSkinContainer\deleteFile(), ilObjBibliographic\deleteFile(), ilBookingObject\deleteFile(), ilBookingObject\deletePostFile(), ilExSubmission\deleteSelectedFiles(), ilBadge\deleteStaticFiles(), ilBadgeAssignment\deleteStaticFiles(), ilContObjLocatorGUI\display(), ilBookmarkAdministrationGUI\displayLocator(), ilAccessHandler\doPathCheck(), ilExSubmission\downloadMultipleFiles(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), PHPMailer\encodeFile(), ilSurveyEvaluationGUI\evaluation(), ilObjComponentSettingsGUI\executeCommand(), ilPageObject\existsPCId(), ilObjContentObjectGUI\explorer(), TCPDF_STATIC\fileGetContents(), ilSessionMaterialsTableGUI\fillRow(), ilSurveySkillAssignmentTableGUI\fillRow(), ilSurveySkillTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilSkillProfileLevelsTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilSCTreeDuplicatesTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilObjectCopySearchResultTableGUI\fillRow(), Assetic\Filter\CssRewriteFilter\filterDump(), ilMembershipCronNotifications\filterDuplicateItems(), Assetic\Filter\CompassFilter\filterLoad(), Assetic\Filter\ScssphpFilter\filterLoad(), Symfony\Component\Process\ExecutableFinder\find(), ilObjectLP\findMembershipsByPath(), Assetic\Factory\AssetFactory\findRootDir(), ilSkillTreeNode\findSkills(), ilPasteIntoMultipleItemsExplorer\formatHeader(), ilWorkspaceExplorer\formatHeader(), ilRepositoryExplorer\formatHeader(), ilECSNodeMappingCmsExplorer\formatHeader(), ilECSNodeMappingLocalExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilRoleDesktopItemsTableGUI\formatPath(), ilPageLayout\generatePreview(), assKprimChoice\generateThumbForFile(), assMatchingQuestion\generateThumbForFile(), assMultipleChoice\generateThumbForFile(), assOrderingQuestion\generateThumbForFile(), assSingleChoice\generateThumbForFile(), Assetic\Cache\FilesystemCache\get(), Assetic\Cache\get(), ilExSubmission\getAllAssignmentFiles(), ilPageObject\getAllFileObjIds(), ilPageObject\getAllPCIds(), ilObjectPermissionStatusGUI\getAvailableRolesTableData(), ilBadgeHandler\getBadgePath(), ilPCTable\getCaption(), ilPCTable\getCaptionAlign(), ilPCDataTable\getCellNode(), Assetic\Filter\ScssphpFilter\getChildren(), ilCtrl\getClassForClasspath(), ilLangDeprecated\getCodeFiles(), ilPageObjectFactory\getConfigInstance(), ilPageObject\getContentNode(), ilObjStyleSheet\getContentStylePath(), ilObjContentObjectGUI\getContextPath(), ilFeedWriter\getContextPath(), assQuestionGUI\getContextPath(), ilPortfolioPageGUI\getCoursesOfUser(), ilLMPresentationGUI\getCurrentPageId(), Symfony\Component\Yaml\Tests\ParserTest\getDataFormSpecifications(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilAdministrationGUI\getDropDown(), Whoops\Handler\PrettyPageHandler\getExceptionFrames(), ilSCORM2004ScoGUI\getExportResources(), ilBookingObject\getFileFullPath(), ilBadge\getFilePath(), ilBadgeImageTemplate\getFilePath(), ilVerificationObject\getFilePath(), ilPreview\getFilePathFormat(), ilExcCriteriaFile\getFiles(), ilExSubmission\getFiles(), ilPageObject\getFirstParagraphText(), ilCloudPluginFileTreeGUI\getFolderHtml(), ilObjAssessmentFolder\getFullPath(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilExAssignment\getGlobalFeedbackFilePath(), ilPageObject\getHierIdsForPCIds(), ilObjectAddNewItemGUI\getHTML(), ilOrgUnitType\getIconPath(), ilStudyProgrammeType\getIconPath(), ilStudyProgrammeType\getIconPathByStudyProgrammObjId(), ilObjBlog\getImageFullPath(), ilObjPoll\getImageFullPath(), ilObjPortfolioBase\getImageFullPath(), ilPreview\getImages(), ilPageObject\getInitialOpenedContent(), ilAwarenessUserProviderCurrentCourse\getInitialUserSet(), ilPageObjectFactory\getInstance(), ilLPCollection\getInstanceByMode(), ilBadgeHandler\getInstancePath(), ilPageObject\getInternalLinks(), ilBadgeHandler\getIssuerStaticUrl(), ilTrSummaryTableGUI\getItems(), ilLMPresentationGUI\getLayoutLinkTargets(), ilCloudFileTree\getListForJSONEncode(), ComposerAutoloaderInit0b7e5ccf6ad3b6544d6c5a11478f9b6b\getLoader(), ilTestProcessLockerFile\getLockFilePath(), ilAssQuestionProcessLockerFile\getLockFilePath(), ilLPListOfSettingsGUI\getLPPathInfo(), ilMediaAliasItem\getMAItemNode(), ilMediaAliasItem\getMapAreaNodes(), ilPageObject\getMediaAliasElement(), ilObjectLP\getMembers(), ilWACTokenTest\getModifiedSignedPath(), ilCtrl\getNextClass(), ilCloudFileTree\getNodeFromPath(), ilOrgUnitExtension\getOrgUnitPathRefIds(), ilPageObject\getPageContentsHashes(), ilCtrl\getParameterArrayByClass(), ilMediaAliasItem\getParameterNodes(), ilTrQuery\getParticipantsForObject(), ilSystemStyleIconFolder\getPath(), ilMaterializedPathTree\getPathIds(), ilPathGUI\getPathIds(), ilCtrl\getPathNew(), ilBookingObject\getPostFileFullPath(), ilPageObject\getQuestionIds(), ilTestDynamicQuestionSet\getQuestionSequenceStructuredByTaxonomy(), ilDclFieldFactory\getRecordFieldInstance(), ilWorkflowArmerGUI\getRepositoryObjectSelector(), Whoops\Handler\PrettyPageHandler\getResource(), ilSkillTemplateTreeExplorerGUI\getRootNode(), ilTrMatrixTableGUI\getSelectableColumns(), ilWACSignedPath\getSignedPath(), ilSkillTree\getSkillTreePath(), ilSkillTree\getSkillTreePathAsString(), ilBadge\getStaticUrl(), ilBadgeAssignment\getStaticUrl(), PHPExcel_Shared_OLE\getStream(), ilObjectMetaDataGUI\getTab(), ILIAS\UI\Implementation\Render\AbstractComponentRenderer\getTemplate(), ILIAS\UI\Implementation\Render\ilTemplateWrapperFactory\getTemplate(), ilIndependentTemplateFactory\getTemplate(), Assetic\Cache\getTimestamp(), ilSkillTree\getTopParentNodeId(), ilPCInteractiveImage\getTriggerNodes(), assFileUpload\getUploadedFilesForWeb(), ilChatroomUploadFileGUI\getUploadPath(), ilBadgeHandler\getUserIds(), ComponentInstaller\Process\Process\getVendorDir(), ilObjFile\guessFileType(), ilExAssignment\handleGlobalFeedbackFileUpload(), ilPageObject\handleImportRepositoryLink(), ilTemplate\handleReferer(), ilForumXMLParser\handlerEndTag(), ilPageObject\handleRepositoryLinksOnCopy(), ilAuthFrontendCredentialsApache\hasValidTargetUrl(), ilSCORM13Package\il_import(), ilLMPresentationGUI\ilLocator(), ilLMPresentationGUI\ilPage(), ilExcCriteriaFile\importFromPeerReviewForm(), ilPCTable\importHtml(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilStyleImporter\importXmlRepresentation(), ilLPStatusFactory\includeClass(), ilContainerGUI\initAndDisplayCopyIntoMultipleObjectsObject(), ilContainerGUI\initAndDisplayLinkIntoMultipleObjectsObject(), ilContainerGUI\initAndDisplayMoveIntoObjectObject(), ilLearningProgressGUI\initCollectionManualForm(), ilParticipantTableGUI\initFilter(), ilECSMappingSettingsGUI\initFormCSettings(), Assetic\Asset\GlobAsset\initialize(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilObjSystemFolderGUI\initJavaServerIniForm(), ilObjWorkflowEngineGUI\initLocator(), ilObjectCopyGUI\initSourceSelection(), ilObjBlog\initStorage(), ilBookingObject\initStorage(), ilObjPoll\initStorage(), ilObjPortfolioBase\initStorage(), ilVerificationObject\initStorage(), ilObjectCopyGUI\initTargetSelection(), ilObjLanguage\insert(), ilMediaAliasItem\insert(), ilPageObject\insertInstIntoIDs(), ilLanguage\insertLanguage(), ilPageObject\insertPCIds(), Assetic\Factory\AssetFactory\isAbsolutePath(), ilLMTOCExplorerGUI\isNodeClickable(), ilCloudUtil\joinPathsAbsolute(), ilLMPresentationGUI\layout(), ilPersonalSkillsGUI\listSkills(), ilAssQuestionSkillAssignment\loadAdditionalSkillData(), ilAuthApache\login(), ilPageObject\lookforhier(), ilUpdateUtilsMailMigration\makeDir(), ilUpdateUtils\makeDir(), ilUtil\makeDir(), PHPMailer\mb_pathinfo(), ilPCSourceCode\modifyPageContentPostXsl(), assFlashQuestion\moveAppletIfExists(), ilPageObject\moveIntLinks(), ilOrgUnitSimpleImport\moveObject(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilCloudUtil\normalizePath(), ilFileXMLParser\normalizeRelativePath(), ComponentInstaller\Process\RequireCssProcess\packageStyles(), HTMLPurifier_URIParser\parse(), ilCalendarManageTableGUI\parse(), Assetic\Factory\AssetFactory\parseInput(), ilSCORM2004TrackingItemsTableGUI\parseValue(), ilSCORMTrackingItemsTableGUI\parseValue(), ilLPTableBaseGUI\parseValue(), wsdl\parseWSDL(), ilPageObject\pasteContents(), path2class(), ilSCORM2004Page\performAutomaticModifications(), ilSCORM13Player\postLogEntry(), ilLPStatus\preloadListGUIData(), ComponentInstaller\Process\RequireCssProcess\process(), Assetic\Factory\Worker\CacheBustingWorker\process(), ilLoggerCronCleanErrorFiles\readLogDir(), ilBadgeHandler\rebuildIssuerStaticUrl(), ilObjectOwnershipManagementGUI\redirectCmd(), Assetic\Cache\FilesystemCache\remove(), ComponentInstaller\Installer\removeComponent(), ilCloudFileTree\removeNode(), ilPageObject\removeQuestions(), ilUpdateUtilsMailMigration\removeTrailingPathSeparators(), ilUpdateUtils\removeTrailingPathSeparators(), ilUtil\removeTrailingPathSeparators(), ilMediaPoolTableGUI\render(), ilPersonalWorkspaceGUI\renderLocator(), ilPersonalSkillsGUI\renderSkillHTML(), ilPageObject\resolveFileItems(), ilPageObject\resolveIIMMediaAliases(), ilPageObject\resolveIntLinks(), ilPageObject\resolveMediaAliases(), ilPageObject\resolveQuestionReferences(), ilObjUserGUI\roleassignmentObject(), ilMediaSvgSanitizer\sanitizeDir(), ilPageObject\saveInitialOpenedContent(), ilPageObject\saveStyleUsage(), ilPCSection\saveTimings(), ilDclRecordEditGUI\searchObjects(), ilPageObject\send_paragraph(), ilUserImportParser\sendAccountMail(), ilMembershipCronNotifications\sendMail(), ilSoapUtils\sendMail(), Assetic\Cache\FilesystemCache\set(), ilWACCookie\set(), Assetic\Cache\ConfigCache\set(), GeSHi\set_language_path(), Slim_Http_CookieJar\setClassicCookie(), Slim_Http_CookieJar\setCookie(), Slim\setCookie(), ilPCDataTable\setData(), Slim\setEncryptedCookie(), ilPCInteractiveImage\setExtLinkTitle(), ilNotificationConfig\setIconPath(), ilBasicSkillGUI\setLevelHead(), ilBasicSkillTemplateGUI\setLevelHead(), ilCloudFileTree\setLoadingOfFolderComplete(), ilOrgUnitExtensionGUI\setLocator(), ilSCORM2004NodeGUI\setLocator(), ilSkillTreeNodeGUI\setLocator(), ilSystemStyleIconFolder\setPath(), ilTreeExplorerGUI\setPathOpen(), phpCAS\setPGTStorageFile(), CAS_Client\setPGTStorageFile(), ilCloudFileTree\setRootPath(), ilSkillSelfEvaluationGUI\setSelfEvaluationPresentationForm(), ilSkillTreeNodeGUI\setSkillNodeDescription(), ilPCTable\setTDAlignment(), ilPCTable\setTDClass(), ilPCTable\setTDWidth(), ilPCParagraph\setText(), ilContainerGUI\setTitleAndDescription(), ilDclTreePickInputGUI\setValueByArray(), ilBaseWorkflow\setWorkflowLocation(), Whoops\Util\TemplateHelper\shorten(), ilTemplate\show(), ilColumnGUI\showBlocks(), ilLMPresentationGUI\showPrintView(), ilNoteGUI\showTargets(), ilLearningProgressGUI\showtlt(), ilObjSkillManagementGUI\showTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilRepositoryGUI\showTree(), PHPExcel_Shared_ZipStreamWrapper\stream_open(), MDB2_LOB\stream_open(), PHPExcel_Shared_OLE_ChainedBlockStream\stream_open(), ilPageObject\stripHierIDs(), ilSystemStyleIconTest\testChangeColor(), ilSystemStyleIconTest\testChangeColorInIconFile(), ilSystemStyleIconTest\testConstruct(), Monolog\Formatter\JsonFormatterTest\testDefFormatWithException(), Monolog\Formatter\LineFormatterTest\testDefFormatWithException(), Monolog\Formatter\LineFormatterTest\testDefFormatWithPreviousException(), ilSystemStyleIconTest\testGetColorSet(), ilAuthFrontendCredentialsApache\tryAuthenticationOnLoginPage(), ilFileSystemGUI\unzipFile(), nusoap_client\UpdateCookies(), ilBookingObject\uploadFile(), ilObjBlog\uploadImage(), ilObjPortfolioBase\uploadImage(), ilObjPoll\uploadImage(), ilBadge\uploadImage(), ilBadgeImageTemplate\uploadImage(), ilBookingObject\uploadPostFile(), Assetic\AssetWriter\write(), ilChatroomConfigFileHandler\writeDataToFile(), and ilSkinXML\writeToXMLFile().
$real_path = realpath($path) |
Definition at line 29 of file aliased.php.
Referenced by ilRestFileStorage\getFile().
const SOURCE_ROOT "/var/www/your/source/root/" |
Another GeSHi example script.
Configure your Apache server with 'AcceptPathInfo true' and something like 'Alias /viewmysource /var/www/geshi/contrib/aliased.php'. Don't forget to protect this alias as necessary.
Usage - visit /viewmysource/file.name.ext to see that file with syntax highlighting, where "viewmysource" is the name of the alias you set up. You can use this without an alias too, just by visiting aliased.php/file.name.ext.
Definition at line 19 of file aliased.php.