Project

General

Profile

Feature #17540 » 6169_v2.diff

Administrator Admin, 2007-09-02 10:53

View differences:

t3lib/class.t3lib_tsparser_ext.php (working copy)
} else {
$m=strcspn ($type," [");
$retArr["type"]=strtolower(substr($type,0,$m));
if (t3lib_div::inList("int,options,file,boolean,offset",$retArr["type"])) {
if (t3lib_div::inList('int,options,file,boolean,offset,user', $retArr['type'])) {
$p=trim(substr($type,$m));
$reg = array();
ereg("\[(.*)\]",$p,$reg);
......
$p_field.='<input type="file" name="upload_'.$fN.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth().' onChange="uFormUrl('.$aname.')" size="50" />';
}
break;
case 'user':
$userFunction = $typeDat['paramstr'];
$userFunctionParams = array('fieldName' => $fN, 'fieldValue' => $fV);
$p_field = t3lib_div::callUserFunction($userFunction, $userFunctionParams, $this, '');
break;
case 'small':
default:
$fwidth= $typeDat["type"]=="small" ? 10 : 46;
typo3/mod/tools/em/class.em_index.php (working copy)
} else {
$script = '';
}
$updates = $this->updatesForm($extKey,$list[$extKey],1,$script,'<input type="hidden" name="_do_install" value="1" /><input type="hidden" name="_clrCmd" value="'.$this->CMD['clrCmd'].'" />');
if ($updates) {
$updates = 'Before the extension can be installed the database needs to be updated with new tables or fields. Please select which operations to perform:'.$updates;
$dbUpdates = $this->updatesForm($extKey,$list[$extKey],1,$script,'<input type="hidden" name="_do_install" value="1" /><input type="hidden" name="_clrCmd" value="'.$this->CMD['clrCmd'].'" />');
if ($dbUpdates) {
$updates = 'Before the extension can be installed the database needs to be updated with new tables or fields. Please select which operations to perform:'.$dbUpdates;
if($this->CMD['standAlone']) $updates .= '<input type="hidden" name="standAlone" value="1" />';
$depsolver = t3lib_div::_POST('depsolver');
if(is_array($depsolver['ignore'])) {
......
if (@is_file($absPath.'ext_conf_template.txt')) {
$this->content.=$this->doc->spacer(10);
$this->content.=$this->doc->section('Configuration:','(<em>Notice: You may need to clear the cache after configuration of the extension. This is required if the extension adds TypoScript depending on these settings.</em>)<br /><br />',0,1);
$this->tsStyleConfigForm($extKey,$list[$extKey]);
if(t3lib_extMgm::isLoaded($extKey)) {
$this->tsStyleConfigForm($extKey,$list[$extKey]);
} else {
$this->content.= 'This extension provides additional configuration options which become available once you install it.';
}
}
// Show details:
......
if ($notSilent) $updates.= $uCache;
$updates.= $this->checkUploadFolder($extKey,$extInfo);
$absPath = $this->getExtPath($extKey,$extInfo['type']);
if ($notSilent && @is_file($absPath.'ext_conf_template.txt')) {
$cForm = $this->tsStyleConfigForm($extKey,$extInfo,1,$script,$updates.$addFields.'<br />');
if ($updates) {
$updates = '</form><form action="'.htmlspecialchars($script).'" method="post">'.$updates.$addFields.'
<br /><input type="submit" name="write" value="Make updates" />
';
}
if ($updates || $cForm) {
if ($cForm) {
$updates = '</form>'.$cForm.'<form>';
} else {
$updates = '</form><form action="'.htmlspecialchars($script).'" method="post">'.$updates.$addFields.'
<br /><input type="submit" name="write" value="Make updates" />
';
}
}
return $updates;
}
(7-7/7)