Project

General

Profile

Bug #20755 » 11535_dont_load_TT.diff

Administrator Admin, 2009-07-14 23:44

View differences:

t3lib/class.t3lib_tstemplate.php (Arbeitskopie)
$this->allowedPaths[] = $p;
}
}
if (!$GLOBALS['USE_TIMETRACK']) {
$this->tt_track = 0;
}
}
/**
typo3/sysext/openid/sv1/class.tx_openid_sv1.php (Arbeitskopie)
}
if (TYPO3_MODE == 'BE') {
t3lib_div::sysLog($message, $this->extKey, 1);
} else {
} elseif ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage($message);
}
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG']) {
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc (Arbeitskopie)
* @return void
*/
function compileMail($key, $DBrows, $recipient, $setFixedConfig=array()) {
$GLOBALS['TT']->push('compileMail');
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->push('compileMail');
}
$mailContent='';
$key = $this->emailMarkPrefix.$key;
......
$recipient=$fe_userRec['email'];
}
$GLOBALS['TT']->setTSlogMessage('Template key: ###'.$key.'###, userContentLength: '.strlen($userContent['final']).', adminContentLength: '.strlen($adminContent['final']));
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage('Template key: ###'.$key.'###, userContentLength: '.strlen($userContent['final']).', adminContentLength: '.strlen($adminContent['final']));
}
$this->sendMail($recipient, $this->conf['email.']['admin'], $userContent['final'], $adminContent['final']);
$GLOBALS['TT']->pull();
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->pull();
}
}
/**
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
protected $pageCache;
protected $pageCacheTags = array();
protected $tt_track = FALSE; // use the timetrack object to log parsetimes and messages
/**
* Class constructor
......
$this->TYPO3_CONF_VARS = $TYPO3_CONF_VARS;
$this->id = $id;
$this->type = $type;
if ($GLOBALS['USE_TIMETRACK']) {
$this->tt_track = TRUE;
}
if ($no_cache) {
if ($this->TYPO3_CONF_VARS['FE']['disableNoCacheParameter']) {
$warning = '&no_cache=1 has been ignored because $TYPO3_CONF_VARS[\'FE\'][\'disableNoCacheParameter\'] is set!';
$GLOBALS['TT']->setTSlogMessage($warning,2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($warning,2);
}
} else {
$warning = '&no_cache=1 has been supplied, so caching is disabled! URL: "'.t3lib_div::getIndpEnv('TYPO3_REQUEST_URL').'"';
$this->no_cache = $no_cache ? 1 : 0;
......
* @return void
*/
protected function initCaches() {
$GLOBALS['TT']->push('Initializing the Caching System','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Initializing the Caching System','');
}
$GLOBALS['typo3CacheManager'] = t3lib_div::makeInstance('t3lib_cache_Manager');
$GLOBALS['typo3CacheFactory'] = t3lib_div::makeInstance('t3lib_cache_Factory');
......
t3lib_cache::initPageSectionCache();
t3lib_cache::initContentHashCache();
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
/**
......
$this->setIDfromArgV();
// If there is a Backend login we are going to check for any preview settings:
$GLOBALS['TT']->push('beUserLogin','');
if ($this->tt_track) {
$GLOBALS['TT']->push('beUserLogin','');
}
if ($this->beUserLogin || $this->doWorkspacePreview()) {
// Backend user preview features:
......
$this->set_no_cache();
}
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
// Now, get the id, validate access etc:
$this->fetch_the_id();
......
* @access private
*/
function fetch_the_id() {
$GLOBALS['TT']->push('fetch_the_id initialize/','');
if ($this->tt_track) {
$GLOBALS['TT']->push('fetch_the_id initialize/','');
}
// Initialize the page-select functions.
$this->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
......
// The id and type is set to the integer-value - just to be sure...
$this->id = intval($this->id);
$this->type = intval($this->type);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
// We find the first page belonging to the current domain
$GLOBALS['TT']->push('fetch_the_id domain/','');
if ($this->tt_track) {
$GLOBALS['TT']->push('fetch_the_id domain/','');
}
$this->domainStartPage = $this->findDomainRecord($this->TYPO3_CONF_VARS['SYS']['recursiveDomainSearch']); // the page_id of the current domain
if (!$this->id) {
if ($this->domainStartPage) {
......
}
}
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
$GLOBALS['TT']->push('fetch_the_id rootLine/','');
if ($this->tt_track) {
$GLOBALS['TT']->push('fetch_the_id rootLine/','');
}
$requestedId = $this->id; // We store the originally requested id
$this->getPageAndRootlineWithDomain($this->domainStartPage);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
if ($this->pageNotFound && $this->TYPO3_CONF_VARS['FE']['pageNotFound_handling']) {
$pNotFoundMsg = array(
......
$this->pageNotFoundAndExit('Request parameters could not be validated (&cHash comparison failed)');
} else {
$this->set_no_cache();
$GLOBALS['TT']->setTSlogMessage('The incoming cHash "'.$this->cHash.'" and calculated cHash "'.$cHash_calc.'" did not match, so caching was disabled. The fieldlist used was "'.implode(',',array_keys($this->cHash_array)).'"',2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('The incoming cHash "'.$this->cHash.'" and calculated cHash "'.$cHash_calc.'" did not match, so caching was disabled. The fieldlist used was "'.implode(',',array_keys($this->cHash_array)).'"',2);
}
}
}
}
......
$this->pageNotFoundAndExit('Request parameters could not be validated (&cHash empty)');
} else {
$this->set_no_cache();
$GLOBALS['TT']->setTSlogMessage('TSFE->reqCHash(): No &cHash parameter was sent for GET vars though required so caching is disabled',2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('TSFE->reqCHash(): No &cHash parameter was sent for GET vars though required so caching is disabled',2);
}
}
}
}
......
if ($this->all) {
$this->newHash = $this->getHash();
$GLOBALS['TT']->push('Cache Row','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Cache Row','');
}
$row = $this->getFromCache_queryRow();
if (!is_array($row)) {
......
$this->content.= chr(10).'<!-- Cached page generated '.date($dateFormat.' '.$timeFormat, $row['tstamp']).'. Expires '.Date($dateFormat.' '.$timeFormat, $row['expires']).' -->';
}
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
} else {
$this->acquirePageGenerationLock($this->pages_lockObj, $lockHash);
......
* @return array Cached row, if any. Otherwise void.
*/
function getFromCache_queryRow() {
$GLOBALS['TT']->push('Cache Query', '');
if ($this->tt_track) {
$GLOBALS['TT']->push('Cache Query', '');
}
$cachedPage = $this->pageCache->get($this->newHash);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
return $cachedPage;
}
......
$setStatPageName = false;
if (!is_array($this->config) || is_array($this->config['INTincScript']) || $this->forceTemplateParsing) { // If config is not set by the cache (which would be a major mistake somewhere) OR if INTincScripts-include-scripts have been registered, then we must parse the template in order to get it
if ($this->tt_track) {
$GLOBALS['TT']->push('Parse template','');
}
// Force parsing, if set?:
$this->tmpl->forceTemplateParsing = $this->forceTemplateParsing;
// Start parsing the TS template. Might return cached version.
$this->tmpl->start($this->rootLine);
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
if ($this->tmpl->loaded) {
$GLOBALS['TT']->push('Setting the config-array','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Setting the config-array','');
}
// t3lib_div::print_array($this->tmpl->setup);
$this->sPre = $this->tmpl->setup['types.'][$this->type]; // toplevel - objArrayName
$this->pSetup = $this->tmpl->setup[$this->sPre.'.'];
......
$this->config['FEData'] = $this->tmpl->setup['FEData'];
$this->config['FEData.'] = $this->tmpl->setup['FEData.'];
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
} else {
if ($this->checkPageUnavailableHandler()) {
$this->pageUnavailableAndExit('No TypoScript template found!');
......
function getCompressedTCarray() {
global $TCA;
$GLOBALS['TT']->push('Get Compressed TC array');
if ($this->tt_track) {
$GLOBALS['TT']->push('Get Compressed TC array');
}
if (!$this->TCAloaded) {
// Create hash string for storage / retrieval of cached content:
$tempHash = md5('tables.php:'.
......
}
}
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
/**
......
$this->localeCharset = $this->csConvObj->get_locale_charset($this->config['config']['locale_all']);
} else {
$GLOBALS['TT']->setTSlogMessage('Locale "'.htmlspecialchars($this->config['config']['locale_all']).'" not found.', 3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Locale "'.htmlspecialchars($this->config['config']['locale_all']).'" not found.', 3);
}
}
}
}
......
} elseif ($formtype_db && is_array($_POST['data'])) {
$ret = 'fe_tce';
}
$GLOBALS['TT']->setTSlogMessage('"Check Data Submission": Return value: '.$ret,0);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"Check Data Submission": Return value: '.$ret,0);
}
return $ret;
}
} else $GLOBALS['TT']->setTSlogMessage('"Check Data Submission": HTTP_HOST and REFERER HOST did not match when processing submitted formdata!',3);
} elseif ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"Check Data Submission": HTTP_HOST and REFERER HOST did not match when processing submitted formdata!',3);
}
}
// Hook for processing data submission to extensions:
......
if (!$locData[1] || $this->sys_page->checkRecord($locData[1],$locData[2],1)) {
if (count($this->sys_page->getPage($locData[0]))) { // $locData[1] -check means that a record is checked only if the locationData has a value for a record else than the page.
return 1;
} else $GLOBALS['TT']->setTSlogMessage('LocationData Error: The page pointed to by location data ('.$locationData.') was not accessible.',2);
} else $GLOBALS['TT']->setTSlogMessage('LocationData Error: Location data ('.$locationData.') record pointed to was not accessible.',2);
} elseif ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('LocationData Error: The page pointed to by location data ('.$locationData.') was not accessible.',2);
}
} elseif ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('LocationData Error: Location data ('.$locationData.') record pointed to was not accessible.',2);
}
}
/**
......
if ($res = $this->codeString($EMAIL_VARS[$fieldKey], TRUE)) { // Decode...
$EMAIL_VARS[$fieldKey] = $res; // Set value if OK
} elseif ($integrityCheck) { // Otherwise abort:
$GLOBALS['TT']->setTSlogMessage('"Formmail" discovered a field ('.$fieldKey.') which could not be decoded to a valid string. Sending formmail aborted due to security reasons!',3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"Formmail" discovered a field ('.$fieldKey.') which could not be decoded to a valid string. Sending formmail aborted due to security reasons!',3);
}
return false;
} else {
$GLOBALS['TT']->setTSlogMessage('"Formmail" discovered a field ('.$fieldKey.') which could not be decoded to a valid string. The security level accepts this, but you should consider a correct coding though!',2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"Formmail" discovered a field ('.$fieldKey.') which could not be decoded to a valid string. The security level accepts this, but you should consider a correct coding though!',2);
}
}
}
}
......
$formmail->start($EMAIL_VARS);
$formmail->sendtheMail();
$GLOBALS['TT']->setTSlogMessage('"Formmail" invoked, sending mail to '.$EMAIL_VARS['recipient'],0);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"Formmail" invoked, sending mail to '.$EMAIL_VARS['recipient'],0);
}
}
/**
......
// Tidy up the code, if flag...
if ($this->TYPO3_CONF_VARS['FE']['tidy_option'] == 'all') {
$GLOBALS['TT']->push('Tidy, all','');
$this->content = $this->tidyHTML($this->content);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->push('Tidy, all','');
}
$this->content = $this->tidyHTML($this->content);
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// XHTML-clean the code, if flag set
if ($this->doXHTML_cleaning() == 'all') {
$GLOBALS['TT']->push('XHTML clean, all','');
if ($this->tt_track) {
$GLOBALS['TT']->push('XHTML clean, all','');
}
$XHTML_clean = t3lib_div::makeInstance('t3lib_parsehtml');
$this->content = $XHTML_clean->XHTML_clean($this->content);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Fix local anchors in links, if flag set
if ($this->doLocalAnchorFix() == 'all') {
$GLOBALS['TT']->push('Local anchor fix, all','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Local anchor fix, all','');
}
$this->prefixLocalAnchorsWithScript();
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Hook for post-processing of page content cached/non-cached:
......
if (!$this->no_cache) {
// Tidy up the code, if flag...
if ($this->TYPO3_CONF_VARS['FE']['tidy_option'] == 'cached') {
$GLOBALS['TT']->push('Tidy, cached','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Tidy, cached','');
}
$this->content = $this->tidyHTML($this->content);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// XHTML-clean the code, if flag set
if ($this->doXHTML_cleaning() == 'cached') {
$GLOBALS['TT']->push('XHTML clean, cached','');
if ($this->tt_track) {
$GLOBALS['TT']->push('XHTML clean, cached','');
}
$XHTML_clean = t3lib_div::makeInstance('t3lib_parsehtml');
$this->content = $XHTML_clean->XHTML_clean($this->content);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Fix local anchors in links, if flag set
if ($this->doLocalAnchorFix() == 'cached') {
$GLOBALS['TT']->push('Local anchor fix, cached','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Local anchor fix, cached','');
}
$this->prefixLocalAnchorsWithScript();
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Hook for post-processing of page content before being cached:
......
$reprocess = (count($INTiS_config) ? true : false);
} while($reprocess);
$GLOBALS['TT']->push('Substitute header section');
if ($this->tt_track) {
$GLOBALS['TT']->push('Substitute header section');
}
$this->INTincScript_loadJSCode();
$this->content = str_replace('<!--HD_'.$this->config['INTincScript_ext']['divKey'].'-->', $this->convOutputCharset(implode(chr(10),$this->additionalHeaderData),'HD'), $this->content);
$this->content = str_replace('<!--TDS_'.$this->config['INTincScript_ext']['divKey'].'-->', $this->convOutputCharset($this->divSection,'TDS'), $this->content);
$this->setAbsRefPrefix();
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
/**
......
* @see INTincScript()
*/
protected function INTincScript_process($INTiS_config) {
$GLOBALS['TT']->push('Split content');
if ($this->tt_track) {
$GLOBALS['TT']->push('Split content');
}
$INTiS_splitC = explode('<!--INT_SCRIPT.',$this->content); // Splits content with the key.
$this->content = '';
$GLOBALS['TT']->setTSlogMessage('Parts: '.count($INTiS_splitC));
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Parts: '.count($INTiS_splitC));
$GLOBALS['TT']->pull();
}
foreach($INTiS_splitC as $INTiS_c => $INTiS_cPart) {
if (substr($INTiS_cPart,32,3)=='-->') { // If the split had a comment-end after 32 characters it's probably a split-string
$INTiS_key = 'INT_SCRIPT.'.substr($INTiS_cPart,0,32);
$GLOBALS['TT']->push('Include '.$INTiS_config[$INTiS_key]['file'],'');
if ($this->tt_track) {
$GLOBALS['TT']->push('Include '.$INTiS_config[$INTiS_key]['file'],'');
}
$incContent='';
if (is_array($INTiS_config[$INTiS_key])) {
$INTiS_cObj = unserialize($INTiS_config[$INTiS_key]['cObj']);
......
}
$this->content.= $this->convOutputCharset($incContent,'INC-'.$INTiS_c);
$this->content.= substr($INTiS_cPart,35);
$GLOBALS['TT']->pull($incContent);
if ($this->tt_track) {
$GLOBALS['TT']->pull($incContent);
}
} else {
$this->content.= ($INTiS_c?'<!--INT_SCRIPT.':'').$INTiS_cPart;
}
......
// Tidy up the code, if flag...
if ($this->TYPO3_CONF_VARS['FE']['tidy_option'] == 'output') {
$GLOBALS['TT']->push('Tidy, output','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Tidy, output','');
}
$this->content = $this->tidyHTML($this->content);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// XHTML-clean the code, if flag set
if ($this->doXHTML_cleaning() == 'output') {
$GLOBALS['TT']->push('XHTML clean, output','');
if ($this->tt_track) {
$GLOBALS['TT']->push('XHTML clean, output','');
}
$XHTML_clean = t3lib_div::makeInstance('t3lib_parsehtml');
$this->content = $XHTML_clean->XHTML_clean($this->content);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Fix local anchors in links, if flag set
if ($this->doLocalAnchorFix() == 'output') {
$GLOBALS['TT']->push('Local anchor fix, output','');
if ($this->tt_track) {
$GLOBALS['TT']->push('Local anchor fix, output','');
}
$this->prefixLocalAnchorsWithScript();
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Hook for post-processing of page content before output:
......
// Now, if a backend user is logged in, tell him in the Admin Panel log what the caching status would have been:
if ($this->beUserLogin) {
if ($doCache) {
$GLOBALS['TT']->setTSlogMessage('Cache-headers with max-age "'.($this->cacheExpires - $GLOBALS['EXEC_TIME']).'" would have been sent');
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Cache-headers with max-age "'.($this->cacheExpires - $GLOBALS['EXEC_TIME']).'" would have been sent');
}
} else {
$reasonMsg = '';
$reasonMsg.= !$this->no_cache ? '' : 'Caching disabled (no_cache). ';
$reasonMsg.= !$this->isINTincScript() ? '' : '*_INT object(s) on page. ';
$reasonMsg.= !$this->isEXTincScript() ? '' : '*_EXT object(s) on page. ';
$reasonMsg.= !is_array($this->fe_user->user) ? '' : 'Frontend user logged in. ';
$GLOBALS['TT']->setTSlogMessage('Cache-headers would disable proxy caching! Reason(s): "'.$reasonMsg.'"',1);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Cache-headers would disable proxy caching! Reason(s): "'.$reasonMsg.'"',1);
}
}
}
}
......
*/
function setParseTime() {
// Compensates for the time consumed with Back end user initialization.
$this->scriptParseTime = $GLOBALS['TT']->convertMicrotime($GLOBALS['TYPO3_MISC']['microtime_end'])
if ($this->tt_track) {
$this->scriptParseTime = $GLOBALS['TT']->convertMicrotime($GLOBALS['TYPO3_MISC']['microtime_end'])
- $GLOBALS['TT']->convertMicrotime($GLOBALS['TYPO3_MISC']['microtime_start'])
- ($GLOBALS['TT']->convertMicrotime($GLOBALS['TYPO3_MISC']['microtime_BE_USER_end'])-$GLOBALS['TT']->convertMicrotime($GLOBALS['TYPO3_MISC']['microtime_BE_USER_start']));
}
}
/**
......
$this->config['stat_vars']['logFile'] = $theLogFile;
$setStatPageName = true; // Set page name later on
} else {
$GLOBALS['TT']->setTSlogMessage('Could not set logfile path. Check filepath and permissions.',3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Could not set logfile path. Check filepath and permissions.',3);
}
}
}
}
......
(!$this->config['config']['stat_excludeBEuserHits'] || !$this->beUserLogin) &&
(!$this->config['config']['stat_excludeIPList'] || !t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'),str_replace(' ','',$this->config['config']['stat_excludeIPList'])))) {
$GLOBALS['TT']->push('Stat');
if ($this->tt_track) {
$GLOBALS['TT']->push('Stat');
}
if (t3lib_extMgm::isLoaded('sys_stat') && $this->config['config']['stat_mysql']) {
// Jumpurl:
......
}
$GLOBALS['TT']->push('Store SQL');
if ($this->tt_track) {
$GLOBALS['TT']->push('Store SQL');
}
$GLOBALS['TYPO3_DB']->exec_INSERTquery('sys_stat', $insertFields);
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
// Apache:
......
$LogLine.= ' "'.($referer ? $referer : '-').'" "'.t3lib_div::getIndpEnv('HTTP_USER_AGENT').'"';
}
$GLOBALS['TT']->push('Write to log file (fputs)');
if ($this->tt_track) {
$GLOBALS['TT']->push('Write to log file (fputs)');
}
$logfilehandle = fopen($this->config['stat_vars']['logFile'], 'a');
fputs($logfilehandle, $LogLine.chr(10));
@fclose($logfilehandle);
$GLOBALS['TT']->pull();
$GLOBALS['TT']->setTSlogMessage('Writing to logfile: OK',0);
if ($this->tt_track) {
$GLOBALS['TT']->pull();
$GLOBALS['TT']->setTSlogMessage('Writing to logfile: OK',0);
}
} else {
$GLOBALS['TT']->setTSlogMessage('Writing to logfile: Error - logFile did not exist!',3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Writing to logfile: Error - logFile did not exist!',3);
}
}
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
}
......
* @see t3lib_div::deprecationLog(), t3lib_timeTrack::setTSlogMessage()
*/
function logDeprecatedTyposcript($msg) {
$GLOBALS['TT']->setTSlogMessage($msg . ' is deprecated.', 2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($msg . ' is deprecated.', 2);
}
t3lib_div::deprecationLog('TypoScript ' . $msg);
}
......
$content = implode(chr(10),$output);
if (!trim($content)) {
$content = $oldContent; // Restore old content due empty return value.
$GLOBALS['TT']->setTSlogMessage('"tidy" returned an empty value!',2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"tidy" returned an empty value!',2);
}
}
$GLOBALS['TT']->setTSlogMessage('"tidy" content lenght: '.strlen($content),0);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('"tidy" content lenght: '.strlen($content),0);
}
}
return $content;
}
......
public function includeLibraries(array $libraries) {
global $TYPO3_CONF_VARS;
$GLOBALS['TT']->push('Include libraries');
$GLOBALS['TT']->setTSlogMessage('Files for inclusion: "' . implode(', ', $libraries) . '"');
if ($this->tt_track) {
$GLOBALS['TT']->push('Include libraries');
$GLOBALS['TT']->setTSlogMessage('Files for inclusion: "' . implode(', ', $libraries) . '"');
}
foreach ($libraries as $library) {
$file = $GLOBALS['TSFE']->tmpl->getFileName($library);
if ($file) {
include_once('./' . $file);
} else {
$GLOBALS['TT']->setTSlogMessage('Include file "' . $file . '" did not exist!', 2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Include file "' . $file . '" did not exist!', 2);
}
}
}
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
}
......
$warning = '$TSFE->set_no_cache() was triggered by '.$trigger.'. ';
if ($this->TYPO3_CONF_VARS['FE']['disableNoCacheParameter']) {
$warning.= 'However $TYPO3_CONF_VARS[\'FE\'][\'disableNoCacheParameter\'] is set, so it will be ignored!';
$GLOBALS['TT']->setTSlogMessage($warning,2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($warning,2);
}
} else {
$warning.= 'Caching is disabled!';
$this->no_cache = 1;
typo3/sysext/cms/tslib/class.tslib_menu.php (Arbeitskopie)
$retVal = TRUE;
} else {
$GLOBALS['TT']->setTSlogMessage('ERROR in menu',3);
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage('ERROR in menu',3);
}
$retVal = FALSE;
}
return $retVal;
typo3/sysext/cms/tslib/pagegen.php (Arbeitskopie)
if (!is_object($TSFE)) {die('You cannot execute this file directly. It\'s meant to be included from index_ts.php');}
$TT->push('pagegen.php, initialize');
if ($USE_TIMETRACK) {
$TT->push('pagegen.php, initialize');
}
// *********************************
......
}
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// *******************
......
// If this is an array, it's a sign that this script is included in order to include certain PHP_SCRIPT_INT-scripts
if (!$GLOBALS['TSFE']->isINTincScript()) {
$TT->push('pagegen.php, render');
if ($USE_TIMETRACK) {
$TT->push('pagegen.php, render');
}
TSpagegen::renderContent();
$GLOBALS['TSFE']->setAbsRefPrefix();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
}
?>
typo3/sysext/cms/tslib/class.tslib_pagegen.php (Arbeitskopie)
*/
public static function renderContent() {
// PAGE CONTENT
$GLOBALS['TT']->incStackPointer();
$GLOBALS['TT']->push($GLOBALS['TSFE']->sPre, 'PAGE');
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->incStackPointer();
$GLOBALS['TT']->push($GLOBALS['TSFE']->sPre, 'PAGE');
}
$pageContent = $GLOBALS['TSFE']->cObj->cObjGet($GLOBALS['TSFE']->pSetup);
if ($GLOBALS['TSFE']->pSetup['wrap']) {$pageContent = $GLOBALS['TSFE']->cObj->wrap($pageContent, $GLOBALS['TSFE']->pSetup['wrap']);}
......
} else {
TSpagegen::renderContentWithHeader($pageContent);
}
$GLOBALS['TT']->pull($GLOBALS['TT']->LR?$GLOBALS['TSFE']->content:'');
$GLOBALS['TT']->decStackPointer();
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->pull($GLOBALS['TT']->LR?$GLOBALS['TSFE']->content:'');
$GLOBALS['TT']->decStackPointer();
}
}
/**
......
$minifyErrorScript = $minifyErrorInline = '';
$_scriptCode = t3lib_div::minifyJavaScript($_scriptCode,$minifyErrorScript);
if ($minifyErrorScript) {
$GLOBALS['TT']->setTSlogMessage($minifyErrorScript, 3);
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage($minifyErrorScript, 3);
}
}
if ($_inlineJS) {
$_inlineJS = t3lib_div::minifyJavaScript($_inlineJS,$minifyErrorInline);
if ($minifyErrorInline) {
$GLOBALS['TT']->setTSlogMessage($minifyErrorInline, 3);
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage($minifyErrorInline, 3);
}
}
}
}
typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie)
*/
const OBJECTTYPE_USER = 2;
protected $tt_track = FALSE;
/**
* Class constructor.
* Well, it has to be called manually since it is not a real constructor function.
......
$this->data = $data;
$this->currentRecord = $table ? $table.':'.$this->data['uid'] : '';
$this->parameters = Array();
if ($GLOBALS['USE_TIMETRACK']) {
$this->tt_track = TRUE;
}
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'])) {
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'] as $classArr) {
$this->cObjHookObjectsArr[$classArr[0]] = &t3lib_div::getUserObj($classArr[1]);
......
$GLOBALS['TSFE']->cObjectDepthCounter--;
if ($GLOBALS['TSFE']->cObjectDepthCounter>0) {
$name = trim($name);
if ($GLOBALS['TT']->LR) $GLOBALS['TT']->push($TSkey, $name);
if ($this->tt_track && $GLOBALS['TT']->LR) {
$GLOBALS['TT']->push($TSkey, $name);
}
// Checking if the COBJ is a reference to another object. (eg. name of 'blabla.blabla = < styles.something')
if (substr($name,0,1)=='<') {
......
$conf = $this->joinTSarrays($conf,$old_conf);
}
// Getting the cObject
$GLOBALS['TT']->incStackPointer();
if ($this->tt_track) {
$GLOBALS['TT']->incStackPointer();
}
$content.=$this->cObjGetSingle($name,$conf,$key);
$GLOBALS['TT']->decStackPointer();
if ($this->tt_track) {
$GLOBALS['TT']->decStackPointer();
}
} else {
$hooked = false;
......
}
}
}
if ($GLOBALS['TT']->LR) $GLOBALS['TT']->pull($content);
if ($this->tt_track && $GLOBALS['TT']->LR) {
$GLOBALS['TT']->pull($content);
}
}
// Increasing on exit...
$GLOBALS['TSFE']->cObjectDepthCounter++;
......
}
return $content;
} else {
$GLOBALS['TT']->setTSlogMessage('No elements in this content object array (COBJ_ARRAY, COA, COA_INT).', 2);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('No elements in this content object array (COBJ_ARRAY, COA, COA_INT).', 2);
}
}
}
......
*/
public function convertToUserIntObject() {
if ($this->userObjectType !== self::OBJECTTYPE_USER) {
$GLOBALS['TT']->setTSlogMessage('tslib_cObj::convertToUserIntObject() ' .
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('tslib_cObj::convertToUserIntObject() ' .
'is called in the wrong context or for the wrong object type', 2);
}
}
else {
$this->doConvertToUserIntObject = true;
......
do {
$res = $this->exec_getQuery($conf['table'],$conf['select.']);
if ($error = $GLOBALS['TYPO3_DB']->sql_error()) {
$GLOBALS['TT']->setTSlogMessage($error,3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($error,3);
}
} else {
$this->currentRecordTotal = $GLOBALS['TYPO3_DB']->sql_num_rows($res);
$GLOBALS['TT']->setTSlogMessage('NUMROWS: '.$GLOBALS['TYPO3_DB']->sql_num_rows($res));
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('NUMROWS: '.$GLOBALS['TYPO3_DB']->sql_num_rows($res));
}
$cObj =t3lib_div::makeInstance('tslib_cObj');
$cObj->setParent($this->data,$this->currentRecord);
$this->currentRecordNumber=0;
......
$theValue = $this->cObjGetSingle($conf['noResultObj'], $conf['noResultObj.'],'noResultObj');
}
$GLOBALS['TT']->setTSlogMessage('Search in fields: '.$search->listOfSearchFields);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Search in fields: '.$search->listOfSearchFields);
}
// wrapping
$content=$theValue;
......
* @see substituteSubpart(), substituteMarker(), substituteMarkerInObject(), TEMPLATE()
*/
public function substituteMarkerArrayCached($content, array $markContentArray = NULL, array $subpartContentArray = NULL, array $wrappedSubpartContentArray = NULL) {
$GLOBALS['TT']->push('substituteMarkerArrayCached');
if ($this->tt_track) {
$GLOBALS['TT']->push('substituteMarkerArrayCached');
}
// If not arrays then set them
if (is_null($markContentArray)) $markContentArray=array(); // Plain markers
......
$wPkeys = array_keys($wrappedSubpartContentArray);
$aKeys = array_merge(array_keys($markContentArray),$sPkeys,$wPkeys);
if (!count($aKeys)) {
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
return $content;
}
asort($aKeys);
$storeKey = md5('substituteMarkerArrayCached_storeKey:'.serialize(array($content,$aKeys)));
if ($this->substMarkerCache[$storeKey]) {
$storeArr = $this->substMarkerCache[$storeKey];
$GLOBALS['TT']->setTSlogMessage('Cached',0);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Cached',0);
}
} else {
$storeArrDat = $GLOBALS['TSFE']->sys_page->getHash($storeKey);
if (!isset($storeArrDat)) {
......
// Storing the cached data:
$GLOBALS['TSFE']->sys_page->storeHash($storeKey, serialize($storeArr), 'substMarkArrayCached');
$GLOBALS['TT']->setTSlogMessage('Parsing',0);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Parsing',0);
}
} else {
// Unserializing
$storeArr = unserialize($storeArrDat);
// Setting cache:
$this->substMarkerCache[$storeKey] = $storeArr;
$GLOBALS['TT']->setTSlogMessage('Cached from DB',0);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Cached from DB',0);
}
}
}
......
}
$content.=$storeArr['c'][count($storeArr['k'])];
$GLOBALS['TT']->pull();
if ($this->tt_track) {
$GLOBALS['TT']->pull();
}
return $content;
}
......
$res = $this->exec_getQuery($conf['table'],$conf['select.']);
if ($error = $GLOBALS['TYPO3_DB']->sql_error()) {
$GLOBALS['TT']->setTSlogMessage($error,3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($error,3);
}
} else {
$row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);
$result = intval($row[0]);
......
if ($fileArray['sample']) {
$gifCreator->scalecmd = '-sample';
$GLOBALS['TT']->setTSlogMessage('Sample option: Images are scaled with -sample.');
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Sample option: Images are scaled with -sample.');
}
}
if ($fileArray['alternativeTempPath'] && t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['FE']['allowedTempPaths'],$fileArray['alternativeTempPath'])) {
$gifCreator->tempPath = $fileArray['alternativeTempPath'];
$GLOBALS['TT']->setTSlogMessage('Set alternativeTempPath: '.$fileArray['alternativeTempPath']);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Set alternativeTempPath: '.$fileArray['alternativeTempPath']);
}
}
if (!trim($fileArray['ext'])){$fileArray['ext']='web';}
......
$finalTagParts['TYPE'] = 'file';
$finalTagParts['aTagParams'].=$this->extLinkATagParams($finalTagParts['url'], $finalTagParts['TYPE']);
} else {
$GLOBALS['TT']->setTSlogMessage("typolink(): File '".$splitLinkParam[0]."' did not exist, so '".$linktxt."' was not linked.",1);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage("typolink(): File '".$splitLinkParam[0]."' did not exist, so '".$linktxt."' was not linked.",1);
}
return $linktxt;
}
} else { // integer or alias (alias is without slashes or periods or commas, that is 'nospace,alphanum_x,lower,unique' according to definition in $TCA!)
......
if (is_array($mount_info) && $mount_info['overlay']) {
$page = $GLOBALS['TSFE']->sys_page->getPage($mount_info['mount_pid'],$disableGroupAccessCheck);
if (!count($page)) {
$GLOBALS['TT']->setTSlogMessage("typolink(): Mount point '".$mount_info['mount_pid']."' was not available, so '".$linktxt."' was not linked.",1);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage("typolink(): Mount point '".$mount_info['mount_pid']."' was not available, so '".$linktxt."' was not linked.",1);
}
return $linktxt;
}
$MPvarAcc['re-map'] = $mount_info['MPvar'];
......
$finalTagParts['targetParams']=$targetPart;
$finalTagParts['TYPE']='page';
} else {
$GLOBALS['TT']->setTSlogMessage("typolink(): Page id '".$link_param."' was not found, so '".$linktxt."' was not linked.",1);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage("typolink(): Page id '".$link_param."' was not found, so '".$linktxt."' was not linked.",1);
}
return $linktxt;
}
}
......
!t3lib_div::isFirstPartOfStr(trim($funcName),$pre) &&
!t3lib_div::isFirstPartOfStr(trim($funcName),'tx_')
) {
$GLOBALS['TT']->setTSlogMessage('Function "'.$funcName.'" was not prepended with "'.$pre.'"',3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Function "'.$funcName.'" was not prepended with "'.$pre.'"',3);
}
return $content;
}
// Split parts
......
$classObj->cObj = &$this;
$content = call_user_func_array(array($classObj, $parts[1]), array($content, $conf));
} else {
$GLOBALS['TT']->setTSlogMessage('Method "' . $parts[1] . '" did not exist in class "' . $parts[0] . '"', 3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Method "' . $parts[1] . '" did not exist in class "' . $parts[0] . '"', 3);
}
}
} else {
$GLOBALS['TT']->setTSlogMessage('Class "' . $parts[0] . '" did not exist', 3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Class "' . $parts[0] . '" did not exist', 3);
}
}
} else { // Function
if (function_exists($funcName)) {
$content = call_user_func($funcName, $content, $conf);
} else {
$GLOBALS['TT']->setTSlogMessage('Function "'.$funcName.'" did not exist',3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage('Function "'.$funcName.'" did not exist',3);
}
}
}
return $content;
......
if (strstr(strtolower($conf['begin'].$conf['max']),'total')) {
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('count(*)', $table, $queryParts['WHERE'], $queryParts['GROUPBY']);
if ($error = $GLOBALS['TYPO3_DB']->sql_error()) {
$GLOBALS['TT']->setTSlogMessage($error);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($error);
}
} else {
$row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);
$conf['max'] = str_ireplace('total', $row[0], $conf['max']);
......
}
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'uid IN ('.implode(',',$listArr).')'.$this->enableFields('pages').' AND doktype NOT IN ('.$this->checkPid_badDoktypeList.')');
if ($error = $GLOBALS['TYPO3_DB']->sql_error()) {
$GLOBALS['TT']->setTSlogMessage($error.': '.$query,3);
if ($this->tt_track) {
$GLOBALS['TT']->setTSlogMessage($error.': '.$query,3);
}
} else {
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$outArr[] = $row['uid'];
typo3/sysext/cms/tslib/index_ts.php (Arbeitskopie)
// *********************
require_once(PATH_t3lib.'class.t3lib_timetrack.php');
$TT = new t3lib_timeTrack;
$TT->start();
$TT->push('','Script start');
$USE_TIMETRACK = FALSE;
if ($_COOKIE['be_typo_user'] || $TYPO3_CONF_VARS['FE']['forceTimetracking']) {
$TT->start();
$TT->push('','Script start');
$USE_TIMETRACK = TRUE;
}
// *********************
// Mandatory libraries included
// *********************
$TT->push('Include class t3lib_db, t3lib_div, t3lib_extmgm','');
if ($USE_TIMETRACK) {
$TT->push('Include class t3lib_db, t3lib_div, t3lib_extmgm','');
}
require_once(PATH_t3lib.'class.t3lib_div.php');
require_once(PATH_t3lib.'class.t3lib_extmgm.php');
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// **********************
// Include configuration
// **********************
$TT->push('Include config files','');
if ($USE_TIMETRACK) {
$TT->push('Include config files','');
}
require(PATH_t3lib.'config_default.php');
if (!defined ('TYPO3_db')) die ('The configuration file was not included.'); // the name of the TYPO3 database is stored in this constant. Here the inclusion of the config-file is verified by checking if this var is set.
if (!t3lib_extMgm::isLoaded('cms')) die('<strong>Error:</strong> The main frontend extension "cms" was not loaded. Enable it in the extension manager in the backend.');
......
// *********************
// Autoloader
// *********************
$TT->push('Register Autoloader', '');
require_once(PATH_t3lib . 'class.t3lib_autoloader.php');
t3lib_autoloader::registerAutoloader();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->push('Register Autoloader', '');
}
require_once(PATH_t3lib . 'class.t3lib_autoloader.php');
t3lib_autoloader::registerAutoloader();
if ($USE_TIMETRACK) {
$TT->pull();
}
$TYPO3_DB = t3lib_div::makeInstance('t3lib_DB');
$TYPO3_DB->debugOutput = $TYPO3_CONF_VARS['SYS']['sqlDebug'];
$CLIENT = t3lib_div::clientInfo(); // Set to the browser: net / msie if 4+ browsers
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// *******************************
......
// *******************************
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
if (!get_magic_quotes_gpc()) {
$TT->push('Add slashes to GET/POST arrays','');
if ($USE_TIMETRACK) {
$TT->push('Add slashes to GET/POST arrays','');
}
t3lib_div::addSlashesOnArray($_GET);
t3lib_div::addSlashesOnArray($_POST);
$HTTP_GET_VARS = $_GET;
$HTTP_POST_VARS = $_POST;
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
}
......
// *********
// FE_USER
// *********
$TT->push('Front End user initialized','');
if ($USE_TIMETRACK) {
$TT->push('Front End user initialized','');
}
/* @var $TSFE tslib_fe */
$TSFE->initFEuser();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// ****************
// PRE BE_USER HOOK
......
// Process the ID, type and other parameters
// After this point we have an array, $page in TSFE, which is the page-record of the current page, $id
// *****************************************
$TT->push('Process ID','');
if ($USE_TIMETRACK) {
$TT->push('Process ID','');
}
// Initialize admin panel since simulation settings are required here:
if ($TSFE->beUserLogin) {
$BE_USER->initializeAdminPanel();
......
$TSFE->determineId();
}
$TSFE->makeCacheHash();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// *****************************************
// Admin Panel & Frontend editing
......
// ********************************
// Starts the template
// *******************************
$TT->push('Start Template','');
if ($USE_TIMETRACK) {
$TT->push('Start Template','');
}
$TSFE->initTemplate();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// ********************************
// Get from cache
// *******************************
$TT->push('Get Page from cache','');
if ($USE_TIMETRACK) {
$TT->push('Get Page from cache','');
}
$TSFE->getFromCache();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// ******************************************************
......
// *******************************************
// Setting language and locale
// *******************************************
$TT->push('Setting language and locale','');
if ($USE_TIMETRACK) {
$TT->push('Setting language and locale','');
}
$TSFE->settingLanguage();
$TSFE->settingLocale();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// ********************************
......
break;
case 'fe_tce':
$TSFE->includeTCA();
$TT->push('fe_tce','');
if ($USE_TIMETRACK) {
$TT->push('fe_tce','');
}
$TSFE->fe_tce();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
break;
}
......
// *******************************
$TSFE->setUrlIdToken();
$TT->push('Page generation','');
if ($USE_TIMETRACK) {
$TT->push('Page generation','');
}
if ($TSFE->isGeneratePage()) {
$TSFE->generatePage_preProcessing();
$temp_theScript=$TSFE->generatePage_whichScript();
......
} elseif ($TSFE->isINTincScript()) {
include(PATH_tslib.'pagegen.php');
}
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// ********************************
// $TSFE->config['INTincScript']
// *******************************
if ($TSFE->isINTincScript()) {
$TT->push('Non-cached objects','');
if ($USE_TIMETRACK) {
$TT->push('Non-cached objects','');
}
$TSFE->INTincScript();
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
}
// ***************
// Output content
// ***************
if ($TSFE->isOutputting()) {
$TT->push('Print Content','');
if ($USE_TIMETRACK) {
$TT->push('Print Content','');
}
$TSFE->processOutput();
// ***************************************
// Outputs content / Includes EXT scripts
// ***************************************
if ($TSFE->isEXTincScript()) {
$TT->push('External PHP-script','');
if ($USE_TIMETRACK) {
$TT->push('External PHP-script','');
}
// Important global variables here are $EXTiS_*, they must not be overridden in include-scripts!!!
$EXTiS_config = $TSFE->config['EXTincScript'];
$EXTiS_splitC = explode('<!--EXT_SCRIPT.',$TSFE->content); // Splits content with the key
......
}
}
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
} else {
echo $TSFE->content;
}
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
}
......
// ********************
// Finish timetracking
// ********************
$TT->pull();
if ($USE_TIMETRACK) {
$TT->pull();
}
// ******************
typo3/sysext/cms/tslib/class.tslib_fetce.php (Arbeitskopie)
$doublePostCheckKey = $this->calcDoublePostKey($this->newData[$table][$id]);
if ($this->checkDoublePostExist($table,$dPC_field,$doublePostCheckKey)) {
unset($this->newData[$table][$id]); // Unsetting the whole thing, because it's not going to be saved.
$GLOBALS['TT']->setTSlogMessage('"FEData": Submitted record to table $table was doublePosted (key: $doublePostCheckKey). Nothing saved.',2);
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage('"FEData": Submitted record to table $table was doublePosted (key: $doublePostCheckKey). Nothing saved.',2);
}
} else {
$this->newData[$table][$id][$dPC_field] = $doublePostCheckKey; // Setting key value
$this->extraList.=','.$dPC_field;
......
while(list($incFile_table,$incFile)=each($this->extScripts)) {
if (@is_file($incFile) && $GLOBALS['TSFE']->checkFileInclude($incFile)) {
include($incFile); // Always start the incFiles with a check of the object fe_tce. is_object($this);
$GLOBALS['TT']->setTSlogMessage('Included '.$incFile,0);
} else $GLOBALS['TT']->setTSlogMessage('"'.$incFile.'" was not found!',2);
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage('Included '.$incFile,0);
}
} elseif ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->setTSlogMessage('"'.$incFile.'" was not found!',2);
}
}
}
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (Arbeitskopie)
function getResultRows($sWArr,$freeIndexUid=-1) {
// Getting SQL result pointer:
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->push('Searching result');
}
$res = $this->getResultRows_SQLpointer($sWArr,$freeIndexUid);
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->pull();
}
// Organize and process result:
if ($res) {
......
// Perform SQL Search / collection of result rows array:
if ($list) {
// Do the search:
$GLOBALS['TT']->push('execFinalQuery');
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->push('execFinalQuery');
}
$res = $this->execFinalQuery($list,$freeIndexUid);
$GLOBALS['TT']->pull();
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->pull();
}
return $res;
} else {
return FALSE;
......
function getDisplayResults($sWArr, $resData, $freeIndexUid=-1) {
// Perform display of result rows array:
if ($resData) {
$GLOBALS['TT']->push('Display Final result');
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->push('Display Final result');
}
// Set first selected row (for calculation of ranking later)
$this->firstRow = $resData['firstRow'];
......
$content = '<p'.$this->pi_classParam('noresults').'>'.$this->pi_getLL('noResults','',1).'</p>';
}
$GLOBALS['TT']->pull();
if ($GLOBALS['USE_TIMETRACK']) {
$GLOBALS['TT']->pull();
}
} else {
$content.='<p'.$this->pi_classParam('noresults').'>'.$this->pi_getLL('noResults','',1).'</p>';
}
......
$theType = (string)$this->piVars['type'];
if (strstr($sWord,' ')) $theType = 20; // If there are spaces in the search-word, make a full text search instead.
... This diff was truncated because it exceeds the maximum size that can be displayed.
(1-1/2)