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.
| Markup | Output | Notes |
|---|---|---|
| {version} | 4.01 | of BoltWire |
| {now} | 1369532815 | Current timestamp |
| {captcha} | 7484 | random # |
| {return} | referrer link | |
| {ip} | 184.72.91.94 | user 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.
| Markup | Output | Notes |
|---|---|---|
| {p} | docs.handbook.variables.system | current page |
| {p0} | 4 | how many page levels |
| {p1} | docs | first page level |
| {p2} | handbook | second page level |
| {p3} | variables | third page level |
| {page} | system | last page level |
| {title} | System Variables | Same as {page} if not set |
| {data} | changesummary, author, title, counter | data fields on page |
| {:author} | Caveman | |
| {:lastmodified} | ||
| {:changesummary} | Page renamed from docs.system to docs.elements.variables.system by Caveman | if set |

