Ablauf von TYPO3 bis zum Einsatz von eID
Ich habe Euch mal den Ablauf von TYPO3 4.3 beschrieben bis zu dem Punkt, wo die eID verarbeitet wird:
index.php wird aufgerufen
Errors: Alle Fehler außer die E_NOTICE sollen angezeigt werden
Konstante: PATH_thisScript (z.B. /var/www/index.php)
Konstante: PATH_site (z.B. /var/www/)
Konstante: PATH_tslib (z.B. /var/www/typo3/sysext/cms/tslib/)
Aufruf der index_ts.php in PATH_tslib
index_ts.php
Überprüfung der aktuellen PHP-Version
Errors: Alle Fehler außer die E_NOTICE sollen angezeigt werden
Variable: $TYPO3_MISC['microtime_start'] wird auf die aktuelle Uhrzeit in Microsekunden gesetzt.
Konstante: TYPO_OS auf WIN setzen, wenn Betriebssystem=Windows
Konstante: TYPO3_MODE wird auf FE gesetzt
Konstante: PATH_thisScript (siehe index.php)
Konstante: PATH_site (siehe index.php)
Konstante: PATH_t3lib (z.B. /var/www/t3lib/)
Konstante: TYPO3_mainDir (z.B. typo3/)
Konstante: PATH_typo3 (/var/www/typo3/)
Konstante: PATH_typo3conf (/var/www/typo3conf/)
Konstante: PATH_tslib (siehe index.php)
Scriptausgaben werden gepuffert (ob_start)
Include: class.t3lib_timetrack[null].php
TimeTracker starten, wenn ein BE-User angemeldet ist, sonst dummy-TT
Include: class.t3lib_div.php
Include: class.t3lib_extmgm.php
Funktion: removeXSS include: contrib/RemoveXSS/RemoveXSS.php
Funktion: minifyJavaScript include: contrib/jsmin/jsmin.php
Include: config_default.php
Konstante: FILE_DENY_PATTERN_DEFAULT (z.B. .php[3-6])
Konstante: PHP_EXTENSIONS_DEFAULT [z.B. php, php3, php4, …]
Variable: $TYPO3_CONF_VARS wird mit Defaultwerten gefüllt.
Konstante: TYPO3_version (z.B. 4.3-dev)
Konstante: TYPO3_branch (z.B. 4.3)
Konstante: TYPO3_copyright_year (z.B. 1998-2009)
Konstante: TYPO3_user_agent (z.B. User-Agent: TYPO3/4.3-dev)
Konstante: TYPO3_languages (z.B. default|dk|de|...)
Datenbankvariablen werden gelöscht (z.B. $typo_db_host)
Datenbankvariablen und $TYPO3_CONF_VARS werden mit den Werten in der localconf.php ersetzt.
Konstante: TYPO3_db
Konstante: TYPO3_db_username
Konstante: TYPO3_db_password
Konstante: TYPO3_db_host
Konstante: TYPO3_tables_script
Konstante: TYPO3_extTableDef_script (z.B. extTables.php)
Ab jetzt wird mit $GLOBALS auf die globalen Variablen referenziert.
Abhängigkeiten in den Grafikeinstellungen (GFX) werden überprüft und gegebenfalls neu gesetzt.
Aktivierung der debug()-Funktion. Aber nur, wenn eine IP-Adresse im Installtool angegeben wurde. Sofortige Ausgabe
Aktivierung der debug()-Funktion. Aber nur, wenn eine IP-Adresse im Installtool angegeben wurde. Sofortige Ausgabe inkl. Eintrag in das error-log
Errorhandling wird konfiguriert
memory_limit wird gesetzt, wenn Wert über 16
Konstante: TYPO3_REQUESTTYPE_FE = 1
Konstante: TYPO3_REQUESTTYPE_BE= 2
Konstante: TYPO3_REQUESTTYPE_CLI = 4
Konstante: TYPO3_REQUESTTYPE_AJAX = 8
Konstante: TYPO3_REQUESTTYPE (z.B. 1, 2, 4, 8)
Erstellen bzw. Einlesen der gecacheten ext_localconf.php-Datei in typo3conf
Include: extbase/Classes/Dispatcher.php
Include: extbase/Classes/Utility/Extension.php
Include: rtehtmlarea/ext_emconf.php
Include: rtehtmlarea/hooks/clearrtecache/ext_localconf.php
Include: dam/ext_emconf.php if loaded
Include: static.../class.tx_static_info_tables_div.php
Include: t3lib/class.t3lib_cs.php
Hier werden Zeichensätze definiert
Include: kb_md5fepw/pi1/class.tx_kbmd5fepw_newloginbox.php if loaded
Include: adodb/class.tx_adodb_tceforms.php if loaded
Variable: $TYPO3_LOADED_EXT (z.B. temp_CACHED_FE_ps8c03)
Konstante: TYPO3_UseCachingFramework (bool)
Konstante: TYPO3_DLOG (SYS:enable_DLOG)
Löschen von Variablen: $PAGES_TYPES, $ICON_TYPES, $LANG_GENERAL_LABELS, $TCA, $TBE_MODULES, $TBE_STYLES, $FILEICONS
Löschen von Variablen: $WEBMOUNTS, $FILEMOUNTS, $BE_USER
Löschen von Variablen: $TBE_MODULES_EXT, $TCA_DESCR, $LOCAL_LANG, $TYPO3_AJAX
Variable: $EXEC_TIME = aktuelle Uhrzeit time()
Variable: $SIM_EXEC_TIME = aktuelle Uhrzeit time()
Variable: $ACCESS_TIME = Berechnung von Minuten aus $EXEC_TIME
Variable: $SIM_ACCESS_TIME = Siehe $ACCESS_TIME
Überprüfung, ob config_default geladen wurde
Überprüfung, ob Extension cms geladen ist.
Überprüfung, ob PATH_tslib gesetzt ist
Include: class.t3lib_autoloader.php
Include: t3lib/core_autoload.php
Include t3lib/class.gzip_encode.php
Include t3lib/class.t3lib_admin.php
Include t3lib/class.t3lib_ajax.php
Include t3lib/class.t3lib_befunc.php
Include t3lib/class.t3lib_cache.php
Include t3lib/class.t3lib_cs.php
Include t3lib/class.t3lib_db.php
Include t3lib/class.t3lib_exec.php
...und über 100 weitere TYPO3-Klassen werden hier geladen.
Errorhandling
Variable: $TYPO3_DB Instance von t3lib_DB
Variable: $CLIENT (z.B. net, msie, …)
$GLOBALS per POST oder GET = Script wird beendet.
Problem mit addslashes() lösen (get_magic_quotes_gpc())
Hook für preprocessRequest
Verarbeitung der extension ID (eID)
Variable: $TSFE Instance tslib_fe
