Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-25 10:16:15

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

[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]
post
  • returns $_POST[attributecontent]
cookie
  • returns $_COOKIE[attributecontent]
env
  • returns $_ENV[attributecontent]
request
  • returns $_REQUEST@[attributecontent]
session
  • 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
2005-08-25
  • 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

#2 2005-08-25 17:25:40

arkham
Member
Registered: 2005-03-27
Posts: 102
Website

Re: [archives] gho_vars

Ahh I think I will be using this.

Thanks!

Offline

#3 2005-08-25 19:50:27

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

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

#4 2006-02-02 05:22:11

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

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

Board footer

Powered by FluxBB