Definition at line 213 of file class.tslib_fe.php.
|
||||||||||||||||||||||||||||||||||||
|
Class constructor Takes a number of GET/POST input variable as arguments and stores them internally. The processing of these variables goes on later in this class. Also sets internal clientInfo array (browser information) and a unique string (->uniqueString) for this script instance; A md5 hash of the microtime()
Definition at line 382 of file class.tslib_fe.php. |
|
|
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/?ADMCMD_prev=035d9bf938bd23cb657735f68a8cedbf will open up for a preview that doesn't require login. Thus its useful for sending an email. 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 1390 of file class.tslib_fe.php. |
|
|
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.
Definition at line 1433 of file class.tslib_fe.php. |
|
|
Splits the input query-parameters into an array with certain parameters filtered out. Used to create the cHash value
Definition at line 1511 of file class.tslib_fe.php. |
|
|
Provides ways to bypass the '?id=[xxx]&type=[xx]' format, using either PATH_INFO or virtual HTML-documents (using Apache mod_rewrite) Three options: 1) Apache mod_rewrite: Here a .htaccess file maps all .html-files to index.php and then we extract the id and type from the name of that HTML-file. (AKA "simulateStaticDocuments") 2) Use PATH_INFO (also Apache) to extract id and type from that var. Does not require any special modules compiled with apache. (less typical) 3) Using hook which enables features like those provided from "realurl" extension (AKA "Speaking URLs") Support for RewriteRule to generate (simulateStaticDocuments) With the mod_rewrite compiled into apache, put these lines into a .htaccess in this directory: RewriteEngine On RewriteRule ^[^/]*\.html$ index.php The url must end with '.html' and the format must comply with either of these: 1: '[title].[id].[type].html' - title is just for easy recognition in the logfile!; no practical use of the title for TYPO3. 2: '[id].[type].html' - above, but title is omitted; no practical use of the title for TYPO3. 3: '[id].html' - only id, type is set to the default, zero! NOTE: In all case 'id' may be the uid-number OR the page alias (if any)
Definition at line 618 of file class.tslib_fe.php. |
|
|
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 1316 of file class.tslib_fe.php. |
|
||||||||||||
|
Checks page record for enableFields Returns true if enableFields does not disable the page record. Takes notice of the ->showHiddenPage flag and uses SIM_EXEC_TIME for start/endtime evaluation
Definition at line 1081 of file class.tslib_fe.php. |
|
|
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 1125 of file class.tslib_fe.php. |
|
||||||||||||
|
Check group access against a page record
Definition at line 1097 of file class.tslib_fe.php. |
|
|
Checks page record for include section
Definition at line 1116 of file class.tslib_fe.php. |
|
|
Checks the current rootline for defined sections.
Definition at line 1044 of file class.tslib_fe.php. |
|
|
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 670 of file class.tslib_fe.php. |
|
|
Connect to SQL database May exit after outputting an error message or some JavaScript redirecting to the install tool.
Definition at line 425 of file class.tslib_fe.php. |
|
|
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 415 of file class.tslib_fe.php. |
|
|
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 683 of file class.tslib_fe.php. |
|
|
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 817 of file class.tslib_fe.php. |
|
|
Looking up a domain record based on HTTP_HOST
Definition at line 1237 of file class.tslib_fe.php. |
|
|
Get the compressed $TCA array for use in the front-end A compressed $TCA array holds only the ctrl- and feInterface-part for each table. But the column-definitions are omitted in order to save some memory and be more efficient. Operates on the global variable, $TCA
Definition at line 1818 of file class.tslib_fe.php. |
|
|
Checks if config-array exists already but if not, gets it
Definition at line 1657 of file class.tslib_fe.php. |
|
|
See if page is in cache and get it if so Stores the page content in $this->content if something is found.
Definition at line 1532 of file class.tslib_fe.php. |
|
|
Returning the cached version of page with hash ->newHash
Definition at line 1578 of file class.tslib_fe.php. |
|
|
Calculates the cache-hash This hash is unique to the template, the variables ->id, ->type, ->gr_list (list of groups), ->MP (Mount Points) and cHash array Used to get and later store the cached data.
Definition at line 1637 of file class.tslib_fe.php. |
|
|
Analysing $this->pageAccessFailureHistory into a summary array telling which features disabled display and on which pages and conditions. That data can be used inside a page-not-found handler
Definition at line 1150 of file class.tslib_fe.php. |
|
|
Gets the page and rootline arrays based on the id, $this->id If the id does not correspond to a proper page, the 'previous' valid page in the rootline is found If the page is a shortcut (doktype=4), the ->id is loaded with that id Whether or not the ->id is changed to the shortcut id or the previous id in rootline (eg if a page is hidden), the ->page-array and ->rootline is found and must also be valid. Sets or manipulates internal variables such as: $this->id, $this->page, $this->rootLine, $this->MP, $this->pageNotFound
Definition at line 911 of file class.tslib_fe.php. |
|
|
Gets ->page and ->rootline information based on ->id. ->id may change during this operation. If not inside domain, then default to first page in domain.
Definition at line 1198 of file class.tslib_fe.php. |
|
||||||||||||||||||||||||
|
Get page shortcut; Finds the records pointed to by input value $SC (the shortcut value)
Definition at line 994 of file class.tslib_fe.php. |
|
|
Detecting if shift-reload has been clicked Will not be called if re-generation of page happens by other reasons (for instance that the page is not in cache yet!) Also, a backend user MUST be logged in for the shift-reload to be detected due to DoS-attack-security reasons.
Definition at line 1608 of file class.tslib_fe.php. |
|
|
Analyzes the second part of a id-string (after the "+"), looking for B6 or M5 encoding and if found it will resolve it and restore the variables in global $_GET If values for ->cHash, ->no_cache, ->jumpurl and ->MP is found, they are also loaded into the internal vars of this class.
Definition at line 1335 of file class.tslib_fe.php. |
|
|
Includes full TCA. Normally in the frontend only a part of the global $TCA array is loaded, for instance the "ctrl" part. Thus it doesn't take up too much memory. If you need the FULL TCA available for some reason (like plugins using it) you should call this function which will include the FULL TCA. Global vars $TCA, $PAGES_TYPES, $LANG_GENERAL_LABELS can/will be affected. The flag $this->TCAloaded will make sure that such an inclusion happens only once since; If $this->TCAloaded is set, nothing is included.
Definition at line 1872 of file class.tslib_fe.php. |
|
|
Initializes the front-end login user.
Definition at line 508 of file class.tslib_fe.php. |
|
|
Initialize the TypoScript template parser
Definition at line 1520 of file class.tslib_fe.php. |
|
|
Initializes the front-end user groups. Sets ->loginUser and ->gr_list based on front-end user status.
Definition at line 558 of file class.tslib_fe.php. |
|
|
Checking if a user is logged in or a group constellation different from "0,-1"
Definition at line 593 of file class.tslib_fe.php. |
|
|
Calculates a hash string based on additional parameters in the url. This is used to cache pages with more parameters than just id and type
Definition at line 1465 of file class.tslib_fe.php. |
|
|
Merging values into the global $_GET
Definition at line 1360 of file class.tslib_fe.php. |
|
||||||||||||
|
Page-not-found handler for use in frontend plugins from extensions.
Definition at line 1257 of file class.tslib_fe.php. |
|
||||||||||||||||
|
Page not found handler. Exits.
Definition at line 1272 of file class.tslib_fe.php. |
|
|
Will disable caching if the cHash value was not set. This function should be called to check the _existence_ of "&cHash" whenever a plugin generating cachable output is using extra GET variables. If there _is_ a cHash value the validation of it automatically takes place in makeCacheHash() (see above)
Definition at line 1489 of file class.tslib_fe.php. |
|
|
Looks up the value of $this->RDCT in the database and if it is found to be associated with a redirect URL then the redirection is carried out with a 'Location:' header May exit after sending a location-header.
Definition at line 470 of file class.tslib_fe.php. |
|
|
This checks if there are ARGV-parameters in the QUERY_STRING and if so, those are used for the id $this->id must be 'false' in order for any processing to happen in here If an id/alias value is extracted from the QUERY_STRING it is set in $this->id
Definition at line 1182 of file class.tslib_fe.php. |
|
|
Sets sys_page where-clause
Definition at line 1225 of file class.tslib_fe.php. |
|
|
Setting the language key that'll be used by the current page. In this function it should be checked, 1) that this language exists, 2) that a page_overlay_record exists, .. and if not the default language, 0 (zero), should be set.
Definition at line 1899 of file class.tslib_fe.php. |
|
|
Setting locale for frontend rendering
Rules are: no_cache cannot be set: If it is, the page might contain dynamic content and should never be cached. There can be no USER_INT objects on the page ("isINTincScript()" / "isEXTincScript()") because they implicitly indicate dynamic content There can be no logged in user because user sessions are based on a cookie and thereby does not offer client caching a chance to know if the user is logged in. Actually, there will be a reverse problem here; If a page will somehow change when a user is logged in he may not see it correctly if the non-login version sent a cache-header! So do NOT use cache headers in page sections where user logins change the page content. (unless using such as realurl to apply a prefix in case of login sections)
Definition at line 1992 of file class.tslib_fe.php. |
|
|
Definition at line 300 of file class.tslib_fe.php. |
|
|
Definition at line 301 of file class.tslib_fe.php. |
|
|
Definition at line 324 of file class.tslib_fe.php. |
|
|
Definition at line 284 of file class.tslib_fe.php. |
|
|
Definition at line 282 of file class.tslib_fe.php. |
|
|
Definition at line 283 of file class.tslib_fe.php. |
|
|
Definition at line 241 of file class.tslib_fe.php. |
|
|
Definition at line 260 of file class.tslib_fe.php. |
|
|
Definition at line 330 of file class.tslib_fe.php. |
|
|
Definition at line 333 of file class.tslib_fe.php. |
|
|
Definition at line 318 of file class.tslib_fe.php. |
|
|
Definition at line 304 of file class.tslib_fe.php. |
|
|
Definition at line 332 of file class.tslib_fe.php. |
|
|
Definition at line 238 of file class.tslib_fe.php. |
|
|
Definition at line 257 of file class.tslib_fe.php. |
|
|
Definition at line 258 of file class.tslib_fe.php. |
|
|
Definition at line 256 of file class.tslib_fe.php. |
|
|
Definition at line 219 of file class.tslib_fe.php. |
|
|
Definition at line 268 of file class.tslib_fe.php. |
|
|
Definition at line 342 of file class.tslib_fe.php. |
|
|
Definition at line 336 of file class.tslib_fe.php. |
|
|
Definition at line 321 of file class.tslib_fe.php. |
|
|
Definition at line 302 of file class.tslib_fe.php. |
|
|
Definition at line 251 of file class.tslib_fe.php. |
|
|
Definition at line 339 of file class.tslib_fe.php. |
|
|
Definition at line 223 of file class.tslib_fe.php. |
|
|
Definition at line 357 of file class.tslib_fe.php. |
|
|
Definition at line 347 of file class.tslib_fe.php. |
|
|
Definition at line 323 of file class.tslib_fe.php. |
|
|
Definition at line 295 of file class.tslib_fe.php. |
|
|
Definition at line 281 of file class.tslib_fe.php. |
|
|
Definition at line 348 of file class.tslib_fe.php. |
|
|
Definition at line 309 of file class.tslib_fe.php. |
|
|
Definition at line 310 of file class.tslib_fe.php. |
|
|
Definition at line 292 of file class.tslib_fe.php. |
|
|
Definition at line 227 of file class.tslib_fe.php. |
|
|
Definition at line 308 of file class.tslib_fe.php. |
|
|
Definition at line 297 of file class.tslib_fe.php. |
|
|
Definition at line 235 of file class.tslib_fe.php. |
|
|
Definition at line 244 of file class.tslib_fe.php. |
|
|
Definition at line 267 of file class.tslib_fe.php. |
|
|
Definition at line 264 of file class.tslib_fe.php. |
|
|
Definition at line 237 of file class.tslib_fe.php. |
|
|
Definition at line 269 of file class.tslib_fe.php. |
|
|
Definition at line 216 of file class.tslib_fe.php. |
|
|
Definition at line 218 of file class.tslib_fe.php. |
|
|
Definition at line 325 of file class.tslib_fe.php. |
|
|
Definition at line 329 of file class.tslib_fe.php. |
|
|
Definition at line 296 of file class.tslib_fe.php. |
|
|
Definition at line 259 of file class.tslib_fe.php. |
|
|
Definition at line 290 of file class.tslib_fe.php. |
|
|
Initial value: array( // you can add JavaScript functions to each entry in these arrays. Please see how this is done in the GMENU_LAYERS script. The point is that many applications on a page can set handlers for onload, onmouseover and onmouseup
'onmousemove' => array(),
'onmouseup' => array(),
'onload' => array(),
)
Definition at line 285 of file class.tslib_fe.php. |
|
|
Definition at line 291 of file class.tslib_fe.php. |
|
|
Definition at line 225 of file class.tslib_fe.php. |
|
|
Definition at line 356 of file class.tslib_fe.php. |
|
|
Definition at line 354 of file class.tslib_fe.php. |
|
|
Definition at line 355 of file class.tslib_fe.php. |
|
|
Definition at line 326 of file class.tslib_fe.php. |
|
|
Definition at line 307 of file class.tslib_fe.php. |
|
|
Definition at line 359 of file class.tslib_fe.php. |
|
|
Definition at line 358 of file class.tslib_fe.php. |
|
|
Definition at line 351 of file class.tslib_fe.php. |
|
|
Definition at line 303 of file class.tslib_fe.php. |
|
|
Definition at line 240 of file class.tslib_fe.php. |
|
|
Definition at line 236 of file class.tslib_fe.php. |
|
|
Definition at line 350 of file class.tslib_fe.php. |
|
|
Definition at line 229 of file class.tslib_fe.php. |
|
|
Definition at line 298 of file class.tslib_fe.php. |
|
|
Definition at line 263 of file class.tslib_fe.php. |
|
|
Definition at line 220 of file class.tslib_fe.php. |
|
|
Definition at line 265 of file class.tslib_fe.php. |
|
|
Definition at line 222 of file class.tslib_fe.php. |
|
|
Definition at line 231 of file class.tslib_fe.php. |
|
|
Definition at line 228 of file class.tslib_fe.php. |
|
|
Definition at line 226 of file class.tslib_fe.php. |
|
|
Definition at line 270 of file class.tslib_fe.php. |
|
|
Definition at line 331 of file class.tslib_fe.php. |
|
|
Definition at line 262 of file class.tslib_fe.php. |
|
|
Definition at line 230 of file class.tslib_fe.php. |
|
|
Definition at line 322 of file class.tslib_fe.php. |
|
|
Definition at line 319 of file class.tslib_fe.php. |
|
|
Definition at line 320 of file class.tslib_fe.php. |
|
|
Definition at line 349 of file class.tslib_fe.php. |
|
|
Definition at line 221 of file class.tslib_fe.php. |
|
|
Definition at line 343 of file class.tslib_fe.php. |
|
|
Definition at line 245 of file class.tslib_fe.php. |
|
|
Definition at line 246 of file class.tslib_fe.php. |
|
|
Definition at line 247 of file class.tslib_fe.php. |
|
|
Definition at line 232 of file class.tslib_fe.php. |
|
|
Definition at line 299 of file class.tslib_fe.php. |
|
|
Definition at line 261 of file class.tslib_fe.php. |
|
|
Definition at line 306 of file class.tslib_fe.php. |
|
|
Definition at line 305 of file class.tslib_fe.php. |
|
|
Definition at line 313 of file class.tslib_fe.php. |
|
|
Definition at line 314 of file class.tslib_fe.php. |
|
|
Definition at line 315 of file class.tslib_fe.php. |
|
|
Definition at line 312 of file class.tslib_fe.php. |
|
|
Definition at line 311 of file class.tslib_fe.php. |
|
|
Definition at line 224 of file class.tslib_fe.php. |
|
|
Definition at line 252 of file class.tslib_fe.php. |
|
|
Definition at line 344 of file class.tslib_fe.php. |
|
|
Definition at line 266 of file class.tslib_fe.php. |
|
|
Definition at line 255 of file class.tslib_fe.php. |
|
|
Definition at line 217 of file class.tslib_fe.php. |
|
|
Definition at line 250 of file class.tslib_fe.php. |
|
|
Definition at line 327 of file class.tslib_fe.php. |
|
|
Definition at line 328 of file class.tslib_fe.php. |
|
|
Definition at line 239 of file class.tslib_fe.php. |
1.4.6