|
23 | 23 | echo '<p><input type="button" value="<< Back" onclick="history.back();" /></p>'; |
24 | 24 | if (strlen(prepare_textdata($_REQUEST['TxText'])) > 65000) { |
25 | 25 | echo "<p>Error: Text too long, must be below 65000 Bytes.</p>"; |
26 | | - } |
27 | | - else { |
28 | | - echo splitCheckText($_REQUEST['TxText'], $_REQUEST['TxLgID'], -1); |
| 26 | + } else { |
| 27 | + echo splitCheckText( |
| 28 | + (string)$_REQUEST['TxText'], (int)$_REQUEST['TxLgID'], -1 |
| 29 | + ); |
29 | 30 | } |
30 | 31 | echo '<p><input type="button" value="<< Back" onclick="history.back();" /></p>'; |
31 | 32 |
|
|
34 | 35 | ?> |
35 | 36 | <form class="validate" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> |
36 | 37 | <table class="tab3" cellspacing="0" cellpadding="5"> |
37 | | -<tr> |
38 | | -<td class="td1 right">Language:</td> |
39 | | -<td class="td1"> |
40 | | -<select name="TxLgID" class="notempty setfocus"> |
41 | | - <?php |
42 | | - echo get_languages_selectoptions(getSetting('currentlanguage'), '[Choose...]'); |
43 | | - ?> |
44 | | -</select> <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" /> |
45 | | -</td> |
46 | | -</tr> |
47 | | -<tr> |
48 | | -<td class="td1 right">Text:<br /><br />(max.<br />65,000<br />bytes)</td> |
49 | | -<td class="td1"> |
50 | | -<textarea name="TxText" class="notempty checkbytes checkoutsidebmp" 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" /> |
51 | | -</td> |
52 | | -</tr> |
53 | | -<tr> |
54 | | -<td class="td1 right" colspan="2"> |
55 | | -<input type="button" value="<< Back" onclick="location.href='index.php';" /> |
56 | | -<input type="submit" name="op" value="Check" /></td> |
| 38 | + <tr> |
| 39 | + <td class="td1 right">Language:</td> |
| 40 | + <td class="td1"> |
| 41 | + <select name="TxLgID" class="notempty setfocus"> |
| 42 | + <?php |
| 43 | + echo get_languages_selectoptions(getSetting('currentlanguage'), '[Choose...]'); |
| 44 | + ?> |
| 45 | + </select> |
| 46 | + <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" /> |
| 47 | + </td> |
| 48 | + </tr> |
| 49 | + <tr> |
| 50 | + <td class="td1 right">Text:<br /><br />(max.<br />65,000<br />bytes)</td> |
| 51 | + <td class="td1"> |
| 52 | + <textarea name="TxText" class="notempty checkbytes checkoutsidebmp" data_maxlength="65000" data_info="Text" cols="60" rows="20"></textarea> |
| 53 | + <img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" /> |
| 54 | + </td> |
| 55 | + </tr> |
| 56 | + <tr> |
| 57 | + <td class="td1 right" colspan="2"> |
| 58 | + <input type="button" value="<< Back" onclick="location.href='index.php';" /> |
| 59 | + <input type="submit" name="op" value="Check" /> |
| 60 | + </td> |
57 | 61 | </tr> |
58 | 62 | </table> |
59 | 63 | </form> |
|
0 commit comments