Skip to content

Commit 4a921f5

Browse files
author
LWT Project
committed
Version 1.5.9 (02-Jul-2013 21:58)
1 parent 8a688b6 commit 4a921f5

3 files changed

Lines changed: 22 additions & 8 deletions

File tree

‎check_text.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</td>
4848
</tr>
4949
<tr>
50-
<td class="td1 right">Text:</td>
50+
<td class="td1 right">Text:<br /><br />(max.<br />65,000<br />bytes)</td>
5151
<td class="td1">
5252
<textarea name="TxText" class="notempty checkbytes" data_maxlength="65000" data_info="Text" cols="60" rows="20"></textarea> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
5353
</td>

‎edit_texts.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
<td class="td1"><input type="text" class="notempty" name="TxTitle" value="" maxlength="200" size="60" /> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" /></td>
313313
</tr>
314314
<tr>
315-
<td class="td1 right">Text:</td>
315+
<td class="td1 right">Text:<br /><br />(max.<br />65,000<br />bytes)</td>
316316
<td class="td1">
317317
<textarea name="TxText" class="notempty checkbytes" data_maxlength="65000" data_info="Text" cols="60" rows="20"></textarea> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
318318
</td>
@@ -378,7 +378,7 @@
378378
<td class="td1"><input type="text" class="notempty" name="TxTitle" value="<?php echo tohtml($record['TxTitle']); ?>" maxlength="200" size="60" /> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" /></td>
379379
</tr>
380380
<tr>
381-
<td class="td1 right">Text:</td>
381+
<td class="td1 right">Text:<br /><br />(max.<br />65,000<br />bytes)</td>
382382
<td class="td1">
383383
<textarea <?php echo getScriptDirectionTag($record['TxLgID']); ?> name="TxText" class="notempty checkbytes" data_maxlength="65000" data_info="Text" cols="60" rows="20"><?php echo tohtml($record['TxText']); ?></textarea> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
384384
</td>

‎long_text_import.php‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@
4646

4747
if((0 + $paragraph_handling) == 2) {
4848
$data = preg_replace('/\n\s*?\n/u', '', $data);
49-
$data = str_replace("\n"," ",$data);
50-
$data = str_replace("","\n",$data);
49+
$data = str_replace("\n",' ',$data);
50+
$data = preg_replace('/\s{2,}/u', ' ', $data);
51+
$data = str_replace('','',$data);
52+
$data = str_replace('',"\n",$data);
53+
} else {
54+
$data = str_replace("\n",'',$data);
55+
$data = preg_replace('/\s{2,}/u', ' ', $data);
56+
$data = str_replace('','',$data);
57+
$data = str_replace('',"\n",$data);
5158
}
5259

5360
if ($data == "") {
@@ -111,7 +118,7 @@
111118
<tr>
112119
<td class="td1 right"><b>Text <?php echo $textno+1; ?>:</b><br /><br /><br />Length:<br /><?php echo $bytes; ?><br />Bytes</td>
113120
<td class="td1">
114-
<textarea readonly="readonly" <?php echo getScriptDirectionTag($langid); ?> name="text[<?php echo $textno; ?>]" cols="60" rows="10"><?php echo str_replace("","\n",implode(" ",$item)); ?></textarea>
121+
<textarea readonly="readonly" <?php echo getScriptDirectionTag($langid); ?> name="text[<?php echo $textno; ?>]" cols="60" rows="10"><?php echo str_replace(" ","\n",implode(" ",$item)); ?></textarea>
115122
</td>
116123
</tr>
117124
<?php
@@ -190,8 +197,15 @@
190197
<td class="td1">
191198
Either specify a <b>File to upload</b>:<br />
192199
<input name="thefile" type="file" /><br /><br />
193-
<b>Or</b> type in or paste from clipboard (do <b>NOT</b> specify file):<br />
194-
<textarea name="Upload" cols="60" rows="25"></textarea> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
200+
<b>Or</b> paste from clipboard (do <b>NOT</b> specify file):<br />
201+
<textarea name="Upload" cols="60" rows="15"></textarea> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
202+
203+
<p class="smallgray2">&nbsp;<br />IMPORTANT:
204+
If the text is too long, the import may not be possible.<br />
205+
Current upload limits (in bytes):<br />
206+
<b>post_max_size = <?php echo ini_get('post_max_size'); ?> /
207+
upload_max_filesize = <?php echo ini_get('upload_max_filesize'); ?></b><br />
208+
If needed, increase in <br />"<?php echo tohtml(php_ini_loaded_file()); ?>" <br />and restart server.</p>
195209
</td>
196210
</tr>
197211
<tr>

0 commit comments

Comments
 (0)