ezsys
Summary
Returns misc values such as wwwdir, sitedir, etc.
Usage
ezsys( system_variable )
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| system_variable | string | The name of the desired variable. | Yes. |
Returns
A string containing the requested variable.
Description
This operator gives read access to certain Exponential system variables. The "system_variable" parameter must be used to specify the name of the variable that should be returned. As of Exponential 4.6 the "ezsys()" template operator now has a new parameter available "querystring". The following names can be used:
- indexfile - name of index file
- indexdir - relative path and index file
- sitedir - local path of Exponential installation
- wwwdir - relative directory path of Exponential installation
- hostname - hostname of Exponential server
- querystring (as of 4.6)
Examples
Example 1
Example: news theme installed on server "ez.no", by user "tom" in "/home/tom/public_html/local/ez_publish"
wwwdir - {ezsys( 'wwwdir' )}<br />
sitedir - {ezsys( 'sitedir' )}<br />
indexfile - {ezsys( 'indexfile' )}<br />
indexdir - {ezsys( 'indexdir' )}<br />
magicQuotes - {ezsys( 'magicQuotes' )}<br />
hostname - {ezsys( 'hostname' )}<br />
querystring - {ezsys('querystring')}<br/>The following output will be produced:
wwwdir - /~tom/local/ez_publish
sitedir - /home/tom/public_html/local/ez_publish/
indexfile - /index.php/news
indexdir - /~tom/local/ez_publish/index.php/news
magicQuotes -
hostname - ez.no
querystring - ?param1=value1¶m2=value2
Contributors
- Balazs Halasy Maintainer
- Geir Arne Waaler Maintainer
Comments
Add a comment