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 eZ Publish system variables. The "system_variable" parameter must be used to specify the name of the variable that should be returned. The following names can be used:
- indexfile - name of index file
- indexdir - relative path and index file
- sitedir - local path of eZ Publish installation
- wwwdir - relative directory path of eZ Publish installation
- hostname - hostname of eZ Publish server
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 />
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
Balazs Halasy (05/02/2004 10:33 am)
Balazs Halasy (04/05/2005 1:46 pm)
Comments
There are no comments.