BoltWire

Innovative Ideas :: Radical Results!

INFORMATION

DOCUMENTATION

SOLUTIONS

System Variables

Documentation > Handbook > Variables > System Variables

Listed below are some of the system variables available in BoltWire and the values that they return. Refresh the page to see some of the variables update.

To define your own, add a line to your config.php (or index.php) with the syntax:

<code>
$BOLTvar['$field'] = 'value';
</code>

Simple PHP can be used in the the $BOLTvar definition. The $ is required before the field name. Also, the field name must be lowercase.

MarkupOutputNotes
{version}4.01of BoltWire
{now}1369532815Current timestamp
{captcha}7484random #
{return}referrer link
{ip}184.72.91.94user ip address
{domain}www.boltwire.com
{field}http://www.boltwire.com
{fieldurl}
{script}http://www.boltwire.com/index.php?p=
{action}action if set
{id}
{member}
{memberships}group memberships, if any

Below are some variables connected with this particular page. Technically, most are system variables, but they function more like page variables. The author and changesummary fields are actually normal data fields. The lastmodified field is generated dynamically.

MarkupOutputNotes
{p}docs.handbook.variables.systemcurrent page
{p0}4how many page levels
{p1}docsfirst page level
{p2}handbooksecond page level
{p3}variablesthird page level
{page}systemlast page level
{title}System VariablesSame as {page} if not set
{data}changesummary, author, title, counterdata fields on page
{:author}Caveman
{:lastmodified}
{:changesummary}Page renamed from docs.system to docs.elements.variables.system by Cavemanif set
Copyright © 2013, all rights reserved.