Project

General

Profile

Bug #19675 » v2_9886_paramError.diff

Administrator Admin, 2008-12-03 23:26

View differences:

typo3/file_edit.php (working copy)
* @return void
*/
function init() {
//TODO remove global
global $BACK_PATH,$TYPO3_CONF_VARS;
// Setting target, which must be a file reference to a file within the mounts.
......
}
$key=$this->basicff->checkPathAgainstMounts($this->target.'/');
if (!$this->target || !$key) {
t3lib_BEfunc::typo3PrintError ('Parameter Error','Target was not a directory!','');
t3lib_BEfunc::typo3PrintError($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', true), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', true), '');
exit;
}
// Finding the icon
......
* @return void
*/
function main() {
//TODO remove global, change $LANG into $GLOBALS['LANG'], change locallang*.php to locallang*.xml
global $BE_USER, $LANG, $TYPO3_CONF_VARS;
$docHeaderButtons = $this->getButtons();
typo3/file_upload.php (working copy)
$this->target = $this->basicff->is_directory($this->target);
$key=$this->basicff->checkPathAgainstMounts($this->target.'/');
if (!$this->target || !$key) {
t3lib_BEfunc::typo3PrintError ('Parameter Error','Target was not a directory!','');
t3lib_BEfunc::typo3PrintError ($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', true), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', true), '');
exit;
}
......
// Make checkbox for "overwrite"
$code.='
<div id="c-override">
<input type="checkbox" name="overwriteExistingFiles" id="overwriteExistingFiles" value="1" /> <label for="overwriteExistingFiles">'.$LANG->getLL('overwriteExistingFiles',1).'</label>
<input type="checkbox" class="checkbox" name="overwriteExistingFiles" id="overwriteExistingFiles" value="1" /> <label for="overwriteExistingFiles">'.$LANG->getLL('overwriteExistingFiles',1).'</label>
</div>
';
......
$SOBE->main();
$SOBE->printContent();
?>
?>
typo3/file_newfolder.php (working copy)
$this->target = $this->basicff->is_directory($this->target);
$key=$this->basicff->checkPathAgainstMounts($this->target.'/');
if (!$this->target || !$key) {
t3lib_BEfunc::typo3PrintError ('Parameter Error','Target was not a directory!','');
t3lib_BEfunc::typo3PrintError ($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', true), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', true), '');
exit;
}
typo3/sysext/lang/locallang_mod_file_list.xml (working copy)
<label index="mlang_labels_tablabel">Listing of files in the directory</label>
<label index="mlang_labels_tabdescr">This is the file administration system in TYPO3. It allows you to access the file mounts of your login. Through this module you can upload, copy, move an delete files on the server.</label>
<label index="mlang_tabs_tab">Filelist</label>
<label index="paramError">Parameter Error:</label>
<label index="targetNoDir">Target was not a directory!</label>
</languageKey>
</data>
</T3locallang>
typo3/file_rename.php (working copy)
* @return void
*/
function init() {
//TODO remove global
global $LANG,$BACK_PATH,$TYPO3_CONF_VARS;
// Initialize GPvars:
......
}
$key=$this->basicff->checkPathAgainstMounts($this->target.'/');
if (!$this->target || !$key) {
t3lib_BEfunc::typo3PrintError ('Parameter Error','Target was not a directory!','');
t3lib_BEfunc::typo3PrintError ($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', true), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', true), '');
exit;
}
......
* @return void
*/
function main() {
//TODO remove global, change $LANG into $GLOBALS['LANG'], change locallang*.php to locallang*.xml
global $LANG;
// Make page header:
(2-2/2)