Project

General

Profile

Bug #23603 » 15799_v2_44.diff

Administrator Admin, 2010-09-24 20:09

View differences:

t3lib/class.t3lib_treeview.php (working copy)
$c = $this->getDataCount($res);
$crazyRecursionLimiter = 999;
$idH = array();
// Traverse the records:
while ($crazyRecursionLimiter>0 && $row = $this->getDataNext($res,$subCSSclass)) {
$a++;
t3lib/class.t3lib_pagerenderer.php (working copy)
if (!isset($this->cssInline[$name]) && !empty($block)) {
$this->cssInline[$name] = array (
'code' => $block,
'compress' => $compress,
'compress' => $compressed,
'forceOnTop' => $forceOnTop
);
}
t3lib/class.t3lib_stdgraphic.php (working copy)
$bits = explode(' ',$text);
foreach ($bits as $word) {
$word.=' ';
$word = $word;
$wordInf = $this->ImageTTFBBoxWrapper($fontSize, $angle, $fontFile, $word, $splitRenderingConf ,$sF);
$wordW = ($wordInf[2]-$wordInf[0]);
$this->ImageTTFTextWrapper($im, $fontSize, $angle, $x, $y, $Fcolor, $fontFile, $word, $splitRenderingConf, $sF);
t3lib/class.t3lib_frontendedit.php (working copy)
if ($editClass) {
$edit = t3lib_div::getUserObj($editClass);
if (is_object($edit)) {
$content = $edit->editIcons($content, $params, $conf, $currentRecord, $dataArray, $addURLParamStr, $table, $editUid, $fieldList);
$content = $edit->editIcons($content, $params, $conf, $currentRecord, $dataArray, $addUrlParamStr, $table, $editUid, $fieldList);
}
}
}
t3lib/class.t3lib_tcemain.php (working copy)
$newFiles = implode(',', $dbAnalysis->getValueArray());
list(,,$recFieldName) = explode(':', $recFID);
if ($currentFilesForHistory != $newFiles) {
$this->mmHistoryRecords[$currentTable . ':' . $id]['oldRecord'][$recFieldName] = $currentFilesForHistory;
$this->mmHistoryRecords[$currentTable . ':' . $id]['newRecord'][$recFieldName] = $newFiles;
$this->mmHistoryRecords[$table . ':' . $id]['oldRecord'][$recFieldName] = $currentFilesForHistory;
$this->mmHistoryRecords[$table . ':' . $id]['newRecord'][$recFieldName] = $newFiles;
} else {
$this->mmHistoryRecords[$currentTable . ':' . $id]['oldRecord'][$currentField] = '';
$this->mmHistoryRecords[$currentTable . ':' . $id]['newRecord'][$currentField] = '';
$this->mmHistoryRecords[$table . ':' . $id]['oldRecord'][$currentField] = '';
$this->mmHistoryRecords[$table . ':' . $id]['newRecord'][$currentField] = '';
}
} else {
$this->dbAnalysisStore[] = array($dbAnalysis, $tcaFieldConf['MM'], $id, 0); // This will be traversed later to execute the actions
......
if ($TCA[$table]['ctrl']['cruser_id']) {
$newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['cruser_id']] = $this->userid;
}
if ($TCA[$table]['ctrl']['tstamp'] && count($fieldArray)) {
if ($TCA[$table]['ctrl']['tstamp'] && count($newVersion_placeholderFieldArray)) {
$newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME'];
}
......
unlink ($dat['ID_absFile']);
#echo 'DELETE FlexFormFile:'.$dat['ID_absFile'].LF;
} else {
$this->log($table,0,3,0,100,"Delete: Referenced file '".$dat['ID_absFile']."' that was supposed to be deleted together with it's record didn't exist");
$this->log(
'', 0, 3, 0, 100,
'Delete: Referenced file "' . $dat['ID_absFile'] .
'" that was supposed to be deleted together with ' .
'its record did not exist.'
);
}
}
}
t3lib/matchcondition/class.t3lib_matchcondition_frontend.php (working copy)
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_matchcondition.php']['devices_class'])) {
foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_matchcondition.php']['devices_class'] as $_classRef) {
$_procObj = t3lib_div::getUserObj($_classRef);
return $_procObj->whichDevice_ext($useragent);
return $_procObj->whichDevice_ext($userAgent);
}
}
t3lib/class.t3lib_querygenerator.php (working copy)
$c=0;
$arrCount=0;
$loopcount = 0;
foreach ($queryConfig as $key => $conf) {
$subscript = $parent.'['.$key.']';
$lineHTML = '';
......
$from_table_Arr[0] = $fieldSetup['foreign_table'];
}
$counter = 0;
$webMountPageTree = '';
while (list(, $from_table) = each($from_table_Arr)) {
if (($useTablePrefix && !$dontPrefixFirstTable && $counter!=1) || $counter==1) {
$tablePrefix = $from_table.'_';
......
$out='<select name="'.$name.'" onChange="submit();">';
$out.='<option value=""></option>';
foreach ($this->fields as $key => $value) {
if (!$fieldValue['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields', $this->table.':'.$key)) {
if (!$value['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields', $this->table . ':' . $key)) {
$label = $this->fields[$key]['label'];
$label_alt = $this->fields[$key]['label_alt'];
$out .= '<option value="'.$prepend.$key.'"'.($key==$fieldName ? ' selected' : '').'>'.$label.'</option>';
......
$out.='<a href="#" onClick="document.forms[0][\''.$name.'\'].value=\'\';return false;">' . t3lib_iconWorks::getSpriteIcon('actions-edit-delete', array('title' => 'Clear list')) . '</a>';
$out.='<BR><select name="_fieldListDummy" size="5" onChange="document.forms[0][\''.$name.'\'].value+=\',\'+this.value">';
foreach ($this->fields as $key => $value) {
if (!$fieldValue['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields', $this->table.':'.$key)) {
if (!$value['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields', $this->table . ':' . $key)) {
$label = $this->fields[$key]['label'];
$label_alt = $this->fields[$key]['label_alt'];
$out .= '<option value="'.$key.'"'.($key==$fieldName ? ' selected':'').'>'.$label.'</option>';
......
if (!$GLOBALS['BE_USER']->isAdmin() && $GLOBALS['TYPO3_CONF_VARS']['BE']['lockBeUserToDBmounts']) {
$webMounts = $GLOBALS['BE_USER']->returnWebmounts();
$perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
$webMountPageTree = '';
foreach($webMounts as $key => $val) {
if ($webMountPageTree) {
$webMountPageTreePrefix = ',';
t3lib/class.t3lib_tceforms_inline.php (working copy)
$enabledControls = $config['appearance']['enabledControls'];
// Hook: Can disable/enable single controls for specific child records:
foreach ($this->hookObjects as $hookObj) {
$hookObj->renderForeignRecordHeaderControl_preProcess($parentUid, $foreign_table, $rec, $config, $isVirtual, $enabledControls);
$hookObj->renderForeignRecordHeaderControl_preProcess($parentUid, $foreign_table, $rec, $config, $isVirtualRecord, $enabledControls);
}
// Icon to visualize that a required field is nested in this inline level:
......
// Hook: Post-processing of single controls for specific child records:
foreach ($this->hookObjects as $hookObj) {
$hookObj->renderForeignRecordHeaderControl_postProcess($parentUid, $foreign_table, $rec, $config, $isVirtual, $cells);
$hookObj->renderForeignRecordHeaderControl_postProcess($parentUid, $foreign_table, $rec, $config, $isVirtualRecord, $cells);
}
// Compile items into a DIV-element:
return '
......
$PA['fieldTSConfig'] = $this->fObj->setTSconfig($foreign_table,array(),$foreign_selector);
$config = $PA['fieldConf']['config'];
if(!$disabled) {
if (TRUE) {
// Create option tags:
$opt = array();
$styleAttrValue = '';
......
$parentRecord = $this->getRecord(0, $parent['table'], $parent['uid']);
$parentLanguageField = $GLOBALS['TCA'][$parent['table']]['ctrl']['languageField'];
$childLanguageField = $GLOBALS['TCA'][$current['table']]['ctrl']['languageField'];
if ($parentRecord[$languageField]>0) {
$record[$childLanguageField] = $parentRecord[$languageField];
if ($parentRecord[$parentLanguageField] > 0) {
$record[$childLanguageField] = $parentRecord[$parentLanguageField];
}
}
t3lib/class.t3lib_fullsearch.php (working copy)
$valueArray = $row;
if ($GLOBALS['SOBE']->MOD_SETTINGS['search_result_labels']) {
foreach ($valueArray as $key => $val) {
$valueArray[$key] = $this->getProcessedValueExtra($table, $key, $val, $conf, ',');
$valueArray[$key] = $this->getProcessedValueExtra($table, $key, $val, array(), ',');
}
}
$xmlObj->addRecord($table, $valueArray);
......
}
$d->close();
natcasesort($fileArray);
$out = '';
while (list(, $fileName) = each($fileArray)) {
if (t3lib_div::inList($fV, $fileName) || $fV == $fileName) {
if (!$out) {
......
}
}
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
$GLOBALS['TYPO3_DB']->sql_free_result($checkres);
}
}
} else {
......
if (!$GLOBALS['BE_USER']->isAdmin() && $GLOBALS['TYPO3_CONF_VARS']['BE']['lockBeUserToDBmounts']) {
$webMounts = $GLOBALS['BE_USER']->returnWebmounts();
$perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
$webMountPageTree = '';
foreach($webMounts as $key => $val) {
if ($webMountPageTree) {
$webMountPageTreePrefix = ',';
......
* @return [type] ...
*/
function csvRowTitles($row, $conf, $table) {
$out = '';
$SET = $GLOBALS['SOBE']->MOD_SETTINGS;
foreach ($row as $fN => $fV) {
if (t3lib_div::inList($SET['queryFields'], $fN) || (!$SET['queryFields'] && $fN!='pid')) {
t3lib/class.t3lib_sqlengine.php (working copy)
$fN = $fInfo['Field'];
// Set value:
// FIXME $options not defined
$saveArray[$fN] = isset($fields_values[$fN]) ? $fields_values[$fN] : $options['Default'];
if (isset($fields_values[$fN])) {
$saveArray[$fN] = $fields_values[$fN];
}
// Process value:
$this->processAccordingToConfig($saveArray[$fN], $fInfo);
......
* @return array Array of keys pointing to result rows in $this->data[$table]
*/
function selectFromData($table,$where) {
$output = array();
$itemKeys = array();
if (is_array($this->data[$table])) {
// All keys:
t3lib/class.t3lib_tsparser_ext.php (working copy)
}
$a=0;
$c=count($keyArr);
static $i;
static $i = 0;
foreach ($keyArr as $key => $value) {
$HTML = '';
$a++;
(4-4/5)