Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[archives] gho_vars
Notice: This thread is archived, this plugin is currently not available.
**********************************************************
description
A small plugin for printing out predefined variables provided by PHP. See the PHP-documentation for examples of the data you can get.
<txp:gho_vars server='REMOTE_ADDR' />
would put out the IP-adress of the visitor.
More info: gho_vars 2006.1
attributes
you can use one of the following attributes, to get the corresponding data.
get- returns $_GET[attributecontent]
- returns $_POST[attributecontent]
- returns $_COOKIE[attributecontent]
- returns $_ENV[attributecontent]
- returns $_REQUEST@[attributecontent]
- returns $_SESSION@[attributecontent]
todo
- I am thinking about implementing a kind of returning of TXP-variables. But as I do not know and did not checked yet the security-aspects of this task this is not yet implemented.
- For featurerequests contact me. Thanks.
history
2005-12-24 v.2006.1- re-release (revised for Textpattern 4.0.3)
- new documentation
- v.4.0.0 initial version working with TXP4.0
Last edited by graumeister (2006-02-02 05:20:04)
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: [archives] gho_vars
Ahh I think I will be using this.
Thanks!
Offline
Re: [archives] gho_vars
As will I. I was just about to embark on a project that would have embedded a bunch of PHP code into a page. I am thinking that this will allow to bypass all of that in an elegant way.
Offline
Re: [archives] gho_vars
hi all, i released a reworked version with new documentation, see the initial post.
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Pages: 1