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

From BoxMatrix


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

Info
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.

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.

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 ?> ?>

Fact-Box