A little tool for displaying variables and constants

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

A little tool for displaying variables and constants

Post by Gert » Wed May 26, 2010 1:30 pm

Hallo,

in some situations I need the output of some variables and constants, so I have made a little tool.

I have inserted following table below the content in the template of my test installation:

Code: Select all

<h4>Variablen- und Konstantentest</h4>
<table border="1px" cellpadding="6px" cellspacing="0" style="font-family: 'courier new'; font-size: 15px; width: 100%; background: #f6f6e9;">
<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$cf['language']['default']</span></td>
<td style="padding: 2px 8px;"><?php echo $cf['language']['default'].tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$sl </span></td>
<td style="padding: 2px 8px;"><?php echo $sl.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$su </span></td>
<td style="padding: 2px 8px;"><?php echo $su.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$sn </span></td>
<td style="padding: 2px 8px;"><?php echo $sn.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$pth['folder']['plugins'] </span></td>
<td style="padding: 2px 8px;"><?php echo ($pth['folder']['plugins'].tag('br'));?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$pth['folder']['cmsimple'] </span></td>
<td style="padding: 2px 8px;"><?php echo ($pth['folder']['cmsimple'].tag('br'));?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$_SERVER[SERVER_NAME] </span></td>
<td style="padding: 2px 8px;"><?php echo $_SERVER[SERVER_NAME].tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">sv('QUERY_STRING') </span></td>
<td style="padding: 2px 8px;"><?php echo (sv('QUERY_STRING')).tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">CMSIMPLE_ROOT </span>(absolut)</td>
<td style="padding: 2px 8px;"><?php echo CMSIMPLE_ROOT.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">CMSIMPLE_BASE </span>(relativ)</td>
<td style="padding: 2px 8px;"><?php echo CMSIMPLE_BASE.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$pth['folder']['base'] </span></td>
<td style="padding: 2px 8px;"><?php echo $pth['folder']['base'].tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$adm </span></td>
<td style="padding: 2px 8px;"><?php echo $adm.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$edit </span></td>
<td style="padding: 2px 8px;"><?php echo $edit.tag('br');?></td>
</tr>

<tr>
<td style="padding: 2px 8px;"><span style="color: #606;">$login </span></td>
<td style="padding: 2px 8px;"><?php echo $login.tag('br');?></td>
</tr>

</table>
You can see it here: http://www.ge-webdesign.de/xhtestvar/

You easily can extend it by copy and edit a complete table row. Maybe you like it - Gert
Last edited by Gert on Wed Dec 15, 2010 11:45 am, edited 1 time in total.
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Post Reply