|
New PHP Macros format
The format of PHP Macros has been changed.
This modification has solved problems with using a big file.
Input parameters:
| $_POST['FileName'] | The name of the FILE |
| $_POST['FileSaved'] | 1 - File is SAVED; 0 - File is NOT SAVED |
| $_POST['Text'] | TEXT |
| $_POST['CurX'] | Cursor position. CHAR POSITION |
| $_POST['CurY'] | Cursor position. LINE POSITION |
| $_POST['SelectedText'] | SELECTED TEXT |
| $_POST['SelStart'] | START position of Selected text |
| $_POST['SelLength'] | LENGTH of Selected text |
| $_POST['TextCoding'] | Text CODING (ANSI, UTF-8) |
| $_POST['TextFormat'] | Text FORMAT (WIN, Unix, Mac) |
As you can see the array $_SERVER has been changed to $_POST.
Parameters which control a text selection has been changed too.
Now uses only two parameters - $_POST['SelStart'] and $_POST['SelLength'].
Has added new parameters $_POST['TextCoding'] and $_POST['TextFormat'].
Recommendation to adapt Your macros to new format:
- Replace the string $_SERVER to $_POST
- If Your macros selects a text then You must change a algorithm to text select and use parameters
$_POST['SelStart'] - Start position of Selected text.
$_POST['SelLength'] - Length of Selected text.
|