Audiovox P965 Arkusz Danych Strona 173

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 280
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 172
RouterOS PHP class
170
left-value, right-value - either string or variable
if %version% ~= 4.*
# execute commands for version 4.*
else
# execute commands for all other versions 4.*
endif
= - left is equal right
!= - left is not equal tight
< - left is less than right
<= - left is less or equal right
> - left is greater than right
>= - left is greater or equal right
~= - right is wildcardly equal left (using fnmatch from php)
!~= - right is wildcardly not equal left (using fnmatch from php)
Script file can include another file and parse it in place. Current file path is used to include file. Each file can be
included more than once.
include [file-name]
Includes file if exists. If file doesn't exist parser will continue.
require [file-name]
Require file. If file doesn't exist parser will return with error.
set [alias] [key=value] [key2=value2]...
add [alias] [key=value] [key2=value2]...
Set or add (synonims) config line.
function [cmd-name] [$arg1] [$arg2=$default2]...
# function body
endfunction
Add new user php function. Always in defined function first argument is $parser to access current parser context.
function my_first_function $srcaddress $dstaddress="1.2.3.4"
# do some crazy stuff with $parser.
endfunction
ignore [alias] [key=value] [key2=value2]...
pass [alias] [key=value] [key2=value2]...
Add ignore or pass config line. See RouterOSParser::ignore or RouterOSParser::pass functions.
flush [alias] [alias2]...
Clean all configuration for specified alias!
section [alias] [cmd] [type] [keys or false] [default_key=default_value]...
Przeglądanie stron 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 279 280

Komentarze do niniejszej Instrukcji

Brak uwag