Public Member Functions | |
| init () | |
| Registering Incoming data. | |
| initClipboard () | |
| Initialize the Clipboard. | |
| main () | |
| Performing the file admin action: Initializes the objects, setting permissions, sending data to object. | |
| finish () | |
| Redirecting the user after the processing has been done. | |
Public Attributes | |
| $file | |
| $redirect | |
| $CB | |
| $overwriteExistingFiles | |
| $vC | |
| $include_once = array() | |
| $fileProcessor | |
|
|
Redirecting the user after the processing has been done. Might also display error messages directly, if any.
Definition at line 164 of file tce_file.php. References t3lib_BEfunc::getSetUpdateSignal(). 00164 {
00165 // Prints errors, if...
00166 $this->fileProcessor->printLogErrorMessages($this->redirect);
00167
00168 t3lib_BEfunc::getSetUpdateSignal('updateFolderTree');
00169 if ($this->redirect) {
00170 Header('Location: '.t3lib_div::locationHeaderUrl($this->redirect));
00171 }
00172 }
|
|
|
Registering Incoming data.
Definition at line 97 of file tce_file.php. References PATH_t3lib. 00097 {
00098
00099 // GPvars:
00100 $this->file = t3lib_div::_GP('file');
00101 $this->redirect = t3lib_div::_GP('redirect');
00102 $this->CB = t3lib_div::_GP('CB');
00103 $this->overwriteExistingFiles = t3lib_div::_GP('overwriteExistingFiles');
00104 $this->vC = t3lib_div::_GP('vC');
00105
00106 // If clipboard is set, then include the clipboard class:
00107 if (is_array($this->CB)) {
00108 $this->include_once[] = PATH_t3lib.'class.t3lib_clipboard.php';
00109 }
00110 }
|
|
|
Initialize the Clipboard. This will fetch the data about files to paste/delete if such an action has been sent.
Definition at line 117 of file tce_file.php. 00117 {
00118 if (is_array($this->CB)) {
00119 $clipObj = t3lib_div::makeInstance('t3lib_clipboard');
00120 $clipObj->initializeClipboard();
00121 if ($this->CB['paste']) {
00122 $clipObj->setCurrentPad($this->CB['pad']);
00123 $this->file = $clipObj->makePasteCmdArray_file($this->CB['paste'],$this->file);
00124 }
00125 if ($this->CB['delete']) {
00126 $clipObj->setCurrentPad($this->CB['pad']);
00127 $this->file = $clipObj->makeDeleteCmdArray_file($this->file);
00128 }
00129 }
00130 }
|
|
|
Performing the file admin action: Initializes the objects, setting permissions, sending data to object.
Definition at line 138 of file tce_file.php. References $TYPO3_CONF_VARS. 00138 {
00139 global $FILEMOUNTS,$TYPO3_CONF_VARS,$BE_USER;
00140
00141 // Initializing:
00142 $this->fileProcessor = t3lib_div::makeInstance('t3lib_extFileFunctions');
00143 $this->fileProcessor->init($FILEMOUNTS, $TYPO3_CONF_VARS['BE']['fileExtensions']);
00144 $this->fileProcessor->init_actionPerms($BE_USER->user['fileoper_perms']);
00145 $this->fileProcessor->dontCheckForUnique = $this->overwriteExistingFiles ? 1 : 0;
00146
00147 // Checking referer / executing:
00148 $refInfo = parse_url(t3lib_div::getIndpEnv('HTTP_REFERER'));
00149 $httpHost = t3lib_div::getIndpEnv('TYPO3_HOST_ONLY');
00150 if ($httpHost!=$refInfo['host'] && $this->vC!=$BE_USER->veriCode() && !$TYPO3_CONF_VARS['SYS']['doNotCheckReferer']) {
00151 $this->fileProcessor->writeLog(0,2,1,'Referer host "%s" and server host "%s" did not match!',array($refInfo['host'],$httpHost));
00152 } else {
00153 $this->fileProcessor->start($this->file);
00154 $this->fileProcessor->processData();
00155 }
00156 }
|
|
|
Definition at line 82 of file tce_file.php. |
|
|
Definition at line 80 of file tce_file.php. |
|
|
Definition at line 88 of file tce_file.php. |
|
|
Definition at line 87 of file tce_file.php. |
|
|
Definition at line 83 of file tce_file.php. |
|
|
Definition at line 81 of file tce_file.php. |
|
|
Definition at line 84 of file tce_file.php. |
1.3.8-20040913