If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
SSI-Directives
BoxMatrix >> Webinterface >> SSI-Directives | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
UI-Structure | UI-Modules | HTML-Files | XML-Files | REST-API | Lua-Scripts | Javascript | Browser | SSI-Files | SSI-Directives | HTML-Text | Event-Text | Help-Pages | CSS-Files | Graphics | Research |
The AVM webserver (ctlmgr or websrv) supports ServerSide-Includes (SSI) in all textual file formats it serves. This covers HTML-Files, XML-Files, Lua-Scripts, Javascript, SSI-Files, etc. An AVM SSI-Directive is a non standard tag using the form <? ... ?> . The ... represents the webserver builtin function to execute, which includes its output at the position of the directive. There's a second type of SSI directives for including translated text which uses the form {? ... ?} . It is explained in the HTML-Text section.
|
SSI-Directives[edit]
Goto: SSI-Directives - SSI-Typos - Variable-Expansion - Examples
Daily updated index of all SSI directives found scanning Firmware-Probes . Last update: 2024-11-20 09:05 GMT.
The label (ssidir)
in the Directive
column shows there are other objects in this wiki using this name.
The Mod
column shows the amount of models using the respective directive. Click the column header to sort by this number.
While all SSI directives work in every textual filetypes served by the AVM webserver the Filetypes
column shows where they are used.
Directive | Mod | Firmware | Description | Filetypes | Type | Origin |
---|---|---|---|---|---|---|
and | 34 | 4.85 - 5.57 | Include the boolean result of a 2-operand logical AND fubction. | html | ssidir | AVM |
base64 (ssidir) | 5 | 4.80 - 4.85 | Include a base64 encoded string or block | html, js | ssidir | AVM |
calc | 46 | 4.44 - 5.27 | Include the numerical result of a simple 2-operand calculation. | frm, html, js, xml | ssidir | AVM |
DowngradeImageURL | 39 | 7.24 - 7.90 | Include the URL of the latest release image for downgrading from Labor. | html | ssidir | AVM |
echo (ssidir) | 85 | 1.63 - 5.58 | Include the value of a var: session variable. | bin, css, def, frm, html, js, txt, xml | ssidir | AVM |
eq | 34 | 4.74 - 5.57 | Include an arbitary block depending on 2 operands being equal. | frm, html, js, lua, txt, xml | ssidir | AVM |
error | 85 | 1.63 - 5.58 | Include the boolean comparison to a given error code. | frm, html, js, xml | ssidir | AVM |
FLASH2_PARAM01 | 37 | 4.30 - 4.99 | Include the minutes it takes to update and reboot. | html | ssidir | AVM |
if (ssidir) | 85 | 1.63 - 5.58 | Include an arbitary block depending on a condition. | bin, css, csv, def, frm, html, inc, js, txt, xml | ssidir | AVM |
include | 149 | 1.63 - 8.00 | Include an arbitary textual file. | bak, def, frm, html, inc, js, lua, txt, xml | ssidir | AVM |
lua | 107 | 4.79 - 8.00 | Include the output of a Lua-script block or string. | html, js, lua | ssidir | AVM |
multiquery | 84 | 1.63 - 5.57 | Include an arbitary block multiple times, iterating an array of UI-Module keys. | csv, frm, html, js, txt, xml | ssidir | AVM |
multiquerycount | 33 | 1.63 - 4.81 | Include the amount of objects in an UI-Module list / array. | html, inc, js | ssidir | AVM |
multiqueryjs | 29 | 4.74 - 5.27 | Include an arbitary block multiple times, iterating an array of UI-Module keys. | js | ssidir | AVM |
multiquerytext | 69 | 4.06 - 5.54 | Include an arbitary block multiple times, iterating an array of UI-Module keys. | csv, html, js, txt | ssidir | AVM |
neq | 19 | 4.74 - 5.54 | Include an arbitary block depending on 2 operands not being equal. | frm, html, js | ssidir | AVM |
OEM (ssidir) | 41 | 5.04 - 6.36 | Include the current Branding. | html | ssidir | AVM |
or | 22 | 4.85 - 5.54 | Include the boolean result of a 2-operand logical OR fubction. | html | ssidir | AVM |
print (ssidir) | 74 | 4.21 - 5.57 | Include the value of a var: session variable. | frm, html, js, lua, xml | ssidir | AVM |
query | 85 | 1.63 - 5.58 | Include the value of an UI-Module key. | bak, bin, css, csv, frm, html, inc, js, lua, txt, xml | ssidir | AVM |
queryjs | 34 | 4.76 - 5.54 | Include the value of an UI-Module key. | js | ssidir | AVM |
querytext | 65 | 4.06 - 5.57 | Include the value of an UI-Module key. | csv, frm, html, js, xml | ssidir | AVM |
REASON | 72 | 4.85 - 8.00 | Include the error text for an ERR_NOT_ALLOWED error. | html | ssidir | AVM |
REASON_ID | 71 | 5.01 - 8.00 | Include the error number for an ERR_NOT_ALLOWED error. | html | ssidir | AVM |
repeat | 82 | 1.63 - 5.57 | Include an arbitary block multiple times, iterating a loop counter. | frm, html, js, txt | ssidir | AVM |
setvariable | 154 | 1.63 - 7.32 | Set a variable in the var: session variables UI-Module. | , S, bak, bin, def, frm, html, inc, js, lua, sh, txt, xml, xxx | ssidir | AVM |
setvariableonce | 62 | 1.63 - 5.27 | Set a variable in the var: session variables UI-Module unless it's already set. | html | ssidir | AVM |
SID | 107 | 4.68 - 8.00 | Include the current Session-ID. | html | ssidir | AVM |
STATUS | 146 | 1.120 - 8.00 | Include the firmwarecfg update or import error message. | html | ssidir | AVM |
URL (ssidir) | 72 | 4.85 - 8.00 | Include the URL for an ERR_NOT_ALLOWED error. | html | ssidir | AVM |
xml | 156 | 1.120 - 8.00 | Standard XML header, not a SSI directive. | bin, config, html, js, lua, svg, tcom, xml | ssidir | AVM |
xml... | 21 | 7.90 - 8.00 | TODO | js | ssidir | |
32 directives |
SSI-Typos[edit]
Seems there was an era with some drunk developers having some speling prblems. ;-)
Daily updated index of all typos in SSI directives found scanning Firmware-Probes . Last update: 2024-11-20 09:05 GMT.
The label (ssidir)
in the Directive
column shows there are other objects in this wiki using this name.
The Mod
column shows the amount of models using the respective directive. Click the column header to sort by this number.
Directive | Mod | Firmware | Description | Filetypes | Type | Origin |
---|---|---|---|---|---|---|
id (ssidir) | 8 | 4.22 - 4.95 | Typo for if. | html | ssidir | AVM |
servariable | 7 | 4.44 - 4.93 | Typo for setvariable. | inc | ssidir | AVM |
setvaraible | 7 | 4.44 - 4.93 | Typo for setvariable. | inc | ssidir | AVM |
setvraible | 7 | 4.44 - 4.93 | Typo for setvariable. | inc | ssidir | AVM |
4 typos in directive names |
Variable-Expansion[edit]
All arguments to SSI directives may include values from the var: session variable UI-Module, in the form $var:name
.
This is the typical usage of the echo and print SSI directives:
<? echo $var:menu ?> <? print $var:urlWhy ?>
But it works with all directives, like:
<? setvariable var:MiniUser 1 ?> <? query telcfg:settings/Foncontrol/$var:MiniUser/ImagePath ?>
Note that setvariable does not use the $
sign, unless it wants to get the variable name from another variable.
Examples[edit]
Samples of some of the SSI-Directives.
<? include ../html/de/js/jsl.js ?> <? include ../html/de/home/mail_config.frm ?>
<?lua box.html(box.glob.sid) ?> <?lua box.html(box.glob.script); if box.get.mode then box.html('?mode='..box.get.mode) end ?>
<? setvariable var:showWhyLink 1 ?> <? setvariable var:urlWhy 'http://www.avm.de/fritzbox_safety' ?>
<? setvariableonce var:lanip $2 ?>
<? echo $var:sid ?> <? echo $var:menu ?>
<? print $var:urlWhy ?>
<? query connection0:pppoe:status/ip ?> <? query box:status/localtime ?>
<? if eq <? multiquerycount dhcpd:status/lease/list ?> 0 `` ?>
<? SID ?>
<? STATUS ?>
<? error found ?>
<? base64 <? query telcfg:settings/Foncontrol/$var:MiniUser/ImagePath ?> ?>