Hi all,
this is my very first thread in this forum and I want to say Hello to
everybody!
Could it be possible in one of the next releases to save a result from "tools"
-> "text difference" into a DIFF-File!? The result should look like this code:
--- c:\file1.php 2012-05-23 11:59:46.416101600 +0200
+++ c:\file2 2012-05-23 13:00:34.727773100 +0200
@@ -110,8 +110,13 @@
// A dedicated file path has a higher priority:
$k = $this->pi_getFFvalue($this->cObj->data['tx_kkcsv2table_flex'],
'csvDedicatedFilePath', 'sDEF');
if (!empty($k) && $k != '') {
- $csv_file = 'fileadmin/' . $k;
- if (substr($k,0,1) == '/') $csv_file = 'fileadmin' . $k;
+ $k = str_replace('../', '', $k);
+ if (substr($k,-4) == '.csv' || substr($k,-4) == '.txt') {
+ $csv_file = 'fileadmin/' . $k;
+ if (substr($k,0,1) == '/') $csv_file = 'fileadmin' . $k;
+ } else {
+ return '<p style="color:red; font-weight:bold;"
class="'.$extKey.'">Only csv- or txt-files are allowed!</p>';
+ }
}
$this->col_delimiter =
$this->pi_getFFvalue($this->cObj->data['tx_kkcsv2table_flex'], 'col_delimiter',
'sDEF');
--
Have a nice day!
Regards from Jülich, Germany
Kurt Kunig
http://www.kupix.de
<http://forum.pspad.com/read.php?2,59323,59323>
PSPad freeware editor http://www.pspad.com