Definition at line 215 of file class.tslib_fe.php.
| tslib_fe::acquirePageGenerationLock | ( | &$ | lockObj, | |
| $ | key | |||
| ) |
Lock the page generation process The lock is used to queue page requests until this page is successfully stored in the cache.
| t3lib_lock | Reference to a locking object | |
| string | String to identify the lock in the system |
Definition at line 2810 of file class.tslib_fe.php.
References $key, headerNoCache(), t3lib_div::makeInstanceClassName(), t3lib_div::sysLog(), t3lib_div::SYSLOG_SEVERITY_ERROR, and t3lib_div::SYSLOG_SEVERITY_INFO.
Referenced by getFromCache().
| tslib_fe::addCacheTags | ( | array $ | tags | ) |
adds tags to this page's cache entry, you can then f.e. remove cache entries by tag
| array | an array of tag |
Definition at line 2867 of file class.tslib_fe.php.
| tslib_fe::addTempContentHttpHeaders | ( | ) |
Sends HTTP headers for temporary content. These headers prevent search engines from caching temporary content and asks them to revisit this page again.
Definition at line 3751 of file class.tslib_fe.php.
Referenced by processOutput().
| tslib_fe::ADMCMD_preview | ( | ) |
Looking for a ADMCMD_prev code, looks it up if found and returns configuration data. Background: From the backend a request to the frontend to show a page, possibly with workspace preview can be "recorded" and associated with a keyword. When the frontend is requested with this keyword the associated request parameters are restored from the database AND the backend user is loaded - only for that request. The main point is that a special URL valid for a limited time, eg. http://localhost/typo3site/index.php?ADMCMD_prev=035d9bf938bd23cb657735f68a8cedbf will open up for a preview that doesn't require login. Thus it's useful for sending in an email to someone without backend account. This can also be used to generate previews of hidden pages, start/endtimes, usergroups and those other settings from the Admin Panel - just not implemented yet.
Definition at line 1678 of file class.tslib_fe.php.
References $GLOBALS, $TYPO3_CONF_VARS, t3lib_div::_GET(), t3lib_div::_GETset(), t3lib_div::_GP(), t3lib_div::_POST(), and t3lib_div::getIndpEnv().
| tslib_fe::ADMCMD_preview_postInit | ( | $ | previewConfig | ) |
Configuration after initialization of TSFE object. Basically this unsets the BE cookie if any and forces the BE user set according to the preview configuration.
| array | Preview configuration, see ADMCMD_preview() |
Definition at line 1753 of file class.tslib_fe.php.
| tslib_fe::baseUrlWrap | ( | $ | url | ) |
Prefixing the input URL with ->baseUrl If ->baseUrl is set and the input url is not absolute in some way. Designed as a wrapper functions for use with all frontend links that are processed by JavaScript (for "realurl" compatibility!). So each time a URL goes into window.open, window.location.href or otherwise, wrap it with this function!
| string | Input URL, relative or absolute |
Definition at line 4048 of file class.tslib_fe.php.
| tslib_fe::beLoginLinkIPList | ( | ) |
Returns a link to the BE login screen with redirect to the front-end
Definition at line 3730 of file class.tslib_fe.php.
References t3lib_div::cmpIP(), and t3lib_div::getIndpEnv().
| tslib_fe::cHashParams | ( | $ | addQueryParams | ) |
Splits the input query-parameters into an array with certain parameters filtered out. Used to create the cHash value
| string | Query-parameters: "&xxx=yyy&zzz=uuu" |
Definition at line 1831 of file class.tslib_fe.php.
References t3lib_div::cHashParams().
| tslib_fe::checkAlternativeIdMethods | ( | ) |
Provides ways to bypass the '?id=[xxx]&type=[xx]' format, using either PATH_INFO or virtual HTML-documents (using Apache mod_rewrite)
Two options: 1) Use PATH_INFO (also Apache) to extract id and type from that var. Does not require any special modules compiled with apache. (less typical) 2) Using hook which enables features like those provided from "simulatestatic" or "realurl" extension (AKA "Speaking URLs")
Definition at line 746 of file class.tslib_fe.php.
References t3lib_div::callUserFunction(), t3lib_div::getIndpEnv(), and t3lib_div::trimExplode().
| tslib_fe::checkAndSetAlias | ( | ) |
Fetches the integer page id for a page alias. Looks if ->id is not an integer and if so it will search for a page alias and if found the page uid of that page is stored in $this->id
Definition at line 1603 of file class.tslib_fe.php.
References t3lib_div::testInt().
Referenced by fetch_the_id().
| tslib_fe::checkDataSubmission | ( | ) |
Checks if any email-submissions or submission via the fe_tce
Definition at line 2371 of file class.tslib_fe.php.
References $GLOBALS, fe_tce(), t3lib_div::getIndpEnv(), t3lib_div::getUserObj(), and locDataCheck().
| tslib_fe::checkEnableFields | ( | $ | row, | |
| $ | bypassGroupCheck = FALSE | |||
| ) |
Checks page record for enableFields Returns true if enableFields does not disable the page record. Takes notice of the ->showHiddenPage flag and uses SIM_ACCESS_TIME for start/endtime evaluation
| array | The page record to evaluate (needs fields: hidden, starttime, endtime, fe_group) | |
| boolean | Bypass group-check |
Definition at line 1232 of file class.tslib_fe.php.
References $GLOBALS, $row, and checkPageGroupAccess().
Referenced by checkPagerecordForIncludeSection().
| tslib_fe::checkFileInclude | ( | $ | incFile | ) |
Checks if a PHPfile may be included.
| string | Relative path to php file |
Definition at line 4001 of file class.tslib_fe.php.
| tslib_fe::checkIfLoginAllowedInBranch | ( | ) |
Checks if logins are allowed in the current branch of the page tree. Traverses the full root line and returns TRUE if logins are OK, otherwise false (and then the login user must be unset!)
Definition at line 1276 of file class.tslib_fe.php.
Referenced by determineId().
| tslib_fe::checkJumpUrlReferer | ( | ) |
Check the jumpUrl referer if required
Definition at line 2513 of file class.tslib_fe.php.
References t3lib_div::getIndpEnv().
| tslib_fe::checkPageGroupAccess | ( | $ | row, | |
| $ | groupList = NULL | |||
| ) |
Check group access against a page record
| array | The page record to evaluate (needs field: fe_group) | |
| mixed | List of group id's (comma list or array). Default is $this->gr_list |
Definition at line 1248 of file class.tslib_fe.php.
References $row.
Referenced by checkEnableFields(), and getPageAccessFailureReasons().
| tslib_fe::checkPagerecordForIncludeSection | ( | $ | row | ) |
Checks page record for include section
| array | The page record to evaluate (needs fields: extendToSubpages + hidden, starttime, endtime, fe_group) |
Definition at line 1267 of file class.tslib_fe.php.
References $row, and checkEnableFields().
Referenced by checkRootlineForIncludeSection().
| tslib_fe::checkPageUnavailableHandler | ( | ) |
Checks whether the pageUnavailableHandler should be used. To be used, pageUnavailable_handling must be set and devIPMask must not match the current visitor's IP address.
Definition at line 1433 of file class.tslib_fe.php.
References t3lib_div::cmpIP(), and t3lib_div::getIndpEnv().
Referenced by connectToDB(), fetch_the_id(), getConfigArray(), and getPageAndRootline().
| tslib_fe::checkRootlineForIncludeSection | ( | ) |
Checks the current rootline for defined sections.
Definition at line 1195 of file class.tslib_fe.php.
References $GLOBALS, $res, and checkPagerecordForIncludeSection().
Referenced by getPageAndRootline().
| tslib_fe::clear_preview | ( | ) |
Clears the preview-flags, sets sim_exec_time to current time. Hidden pages must be hidden as default, $GLOBALS['SIM_EXEC_TIME'] is set to $GLOBALS['EXEC_TIME'] in t3lib/config_default.inc. Alter it by adding or subtracting seconds.
Definition at line 779 of file class.tslib_fe.php.
References $GLOBALS.
Referenced by determineId().
| tslib_fe::clearPageCacheContent | ( | ) |
Clears cache content (for $this->newHash)
Definition at line 2770 of file class.tslib_fe.php.
Referenced by generatePage_postProcessing(), reqCHash(), and setPageCacheContent().
| tslib_fe::clearPageCacheContent_pidList | ( | $ | pidList | ) |
Clears cache content for a list of page ids
| string | A list of INTEGER numbers which points to page uids for which to clear entries in the cache_pages cache (page content cache) |
Definition at line 2780 of file class.tslib_fe.php.
References t3lib_div::trimExplode().
| tslib_fe::codeString | ( | $ | string, | |
| $ | decode = FALSE | |||
| ) |
En/decodes strings with lightweight encryption and a hash containing the server encryptionKey (salt) Can be used for authentication of information sent from server generated pages back to the server to establish that the server generated the page. (Like hidden fields with recipient mail addresses) Encryption is mainly to avoid spam-bots to pick up information.
| string | Input string to en/decode | |
| boolean | If set, string is decoded, not encoded. |
Definition at line 3955 of file class.tslib_fe.php.
References $newHash, and roundTripCryptString().
Referenced by sendFormmail().
| tslib_fe::connectToDB | ( | ) |
Connect to SQL database May exit after outputting an error message or some JavaScript redirecting to the install tool.
Definition at line 490 of file class.tslib_fe.php.
References $GLOBALS, t3lib_div::callUserFunction(), checkPageUnavailableHandler(), exit, pageUnavailableAndExit(), printError(), t3lib_div::sysLog(), and t3lib_div::SYSLOG_SEVERITY_ERROR.
Referenced by connectToMySQL().
| tslib_fe::connectToMySQL | ( | ) |
Connect to MySQL database May exit after outputting an error message or some JavaScript redirecting to the install tool. Use connectToDB() instead!
Definition at line 480 of file class.tslib_fe.php.
References connectToDB().
| tslib_fe::contentStrReplace | ( | ) |
Substitute various tokens in content. This should happen only if the content is not cached by proxies or client browsers.
Definition at line 3394 of file class.tslib_fe.php.
References t3lib_div::callUserFunction().
Referenced by processOutput().
| tslib_fe::convOutputCharset | ( | $ | content, | |
| $ | label = '' | |||
| ) |
Converts input string from renderCharset to metaCharset IF the two charsets are different.
| string | Content to be converted. | |
| string | Label (just for fun, no function) |
Definition at line 4598 of file class.tslib_fe.php.
References $content.
Referenced by generatePage_postProcessing(), INTincScript(), and INTincScript_process().
| tslib_fe::convPOSTCharset | ( | ) |
Converts the $_POST array from metaCharset (page HTML charset from input form) to renderCharset (internal processing) IF the two charsets are different.
Definition at line 4611 of file class.tslib_fe.php.
References $GLOBALS.
| tslib_fe::csConv | ( | $ | str, | |
| $ | from = '' | |||
| ) |
Converts the charset of the input string if applicable. The "to" charset is determined by the currently used charset for the page which is "iso-8859-1" by default or set by $GLOBALS['TSFE']->config['config']['renderCharset'] Only if there is a difference between the two charsets will a conversion be made The conversion is done real-time - no caching for performance at this point!
| string | String to convert charset for | |
| string | Optional "from" charset. |
Definition at line 4582 of file class.tslib_fe.php.
| tslib_fe::determineId | ( | ) |
Determines the id and evaluates any preview settings Basically this function is about determining whether a backend user is logged in, if he has read access to the page and if he's previewing the page. That all determines which id to show and how to initialize the id.
Definition at line 793 of file class.tslib_fe.php.
References $GLOBALS, $res, $simUserGroup, t3lib_div::_GP(), t3lib_div::callUserFunction(), checkIfLoginAllowedInBranch(), clear_preview(), doWorkspacePreview(), fetch_the_id(), isUserOrGroupSet(), t3lib_div::makeInstance(), set_no_cache(), setIDfromArgV(), t3lib_div::testInt(), and whichWorkspace().
| tslib_fe::doLocalAnchorFix | ( | ) |
Returns the mode of Local Anchor prefixing
Definition at line 3186 of file class.tslib_fe.php.
Referenced by generatePage_postProcessing(), and processOutput().
| tslib_fe::doWorkspacePreview | ( | ) |
Returns true if workspace preview is enabled
Definition at line 4147 of file class.tslib_fe.php.
Referenced by determineId(), previewInfo(), processOutput(), and sendCacheHeaders().
| tslib_fe::doXHTML_cleaning | ( | ) |
Returns the mode of XHTML cleaning
Definition at line 3177 of file class.tslib_fe.php.
Referenced by generatePage_postProcessing(), and processOutput().
| tslib_fe::encryptCharcode | ( | $ | n, | |
| $ | start, | |||
| $ | end, | |||
| $ | offset | |||
| ) |
Encryption (or decryption) of a single character. Within the given range the character is shifted with the supplied offset.
| int | Ordinal of input character | |
| int | Start of range | |
| int | End of range | |
| int | Offset |
Definition at line 3902 of file class.tslib_fe.php.
Referenced by encryptEmail().
| tslib_fe::encryptEmail | ( | $ | string, | |
| $ | back = 0 | |||
| ) |
Encryption of email addresses for -tags See the spam protection setup in TS 'config.'
| string | Input string to en/decode: "mailto:blabla@bla.com" | |
| boolean | If set, the process is reversed, effectively decoding, not encoding. |
Definition at line 3919 of file class.tslib_fe.php.
References encryptCharcode().
| tslib_fe::extractRecipientCopy | ( | $ | bodytext | ) |
Extracts the value of recipient copy field from a formmail CE bodytext
| string | $bodytext The content of the related bodytext field |
Definition at line 2488 of file class.tslib_fe.php.
Referenced by sendFormmail().
| tslib_fe::fe_tce | ( | ) |
Processes submitted user data (obsolete "Frontend TCE")
Definition at line 2407 of file class.tslib_fe.php.
References t3lib_div::_POST(), and t3lib_div::makeInstance().
Referenced by checkDataSubmission().
| tslib_fe::fetch_the_id | ( | ) |
Get The Page ID This gets the id of the page, checks if the page is in the domain and if the page is accessible Sets variables such as $this->sys_page, $this->loginUser, $this->gr_list, $this->id, $this->type, $this->domainStartPage, $this->idParts
Definition at line 929 of file class.tslib_fe.php.
References $GLOBALS, t3lib_div::_GP(), checkAndSetAlias(), checkPageUnavailableHandler(), exit, findDomainRecord(), getPageAndRootlineWithDomain(), idPartsAnalyze(), initUserGroups(), t3lib_div::makeInstance(), pageNotFoundAndExit(), pageUnavailableAndExit(), printError(), set_no_cache(), setSysPageWhereClause(), t3lib_div::sysLog(), t3lib_div::SYSLOG_SEVERITY_ERROR, and whichWorkspace().
Referenced by determineId().
| tslib_fe::fileNameASCIIPrefix | ( | $ | inTitle, | |
| $ | titleChars, | |||
| $ | mergeChar = '.' | |||
| ) |
Converts input string to an ASCII based file name prefix
| string | String to base output on | |
| integer | Number of characters in the string | |
| string | Character to put in the end of string to merge it with the next value. |
Definition at line 3876 of file class.tslib_fe.php.
| tslib_fe::findDomainRecord | ( | $ | recursive = 0 |
) |
Looking up a domain record based on HTTP_HOST
| boolean | If set, it looks "recursively" meaning that a domain like "123.456.typo3.com" would find a domain record like "typo3.com" if "123.456.typo3.com" or "456.typo3.com" did not exist. |
Definition at line 1388 of file class.tslib_fe.php.
References t3lib_div::getIndpEnv().
Referenced by fetch_the_id().
| tslib_fe::generatePage_postProcessing | ( | ) |
Does some processing AFTER the pagegen script is included. This includes calling tidy (if configured), XHTML cleaning (if configured), caching the page, indexing the page (if configured) and setting sysLastChanged
Definition at line 2935 of file class.tslib_fe.php.
References $GLOBALS, t3lib_div::callUserFunction(), clearPageCacheContent(), convOutputCharset(), doLocalAnchorFix(), doXHTML_cleaning(), t3lib_div::getUserObj(), t3lib_div::makeInstance(), prefixLocalAnchorsWithScript(), realPageCacheContent(), releasePageGenerationLock(), set_no_cache(), setSysLastChanged(), and tidyHTML().
| tslib_fe::generatePage_preProcessing | ( | ) |