Plugin

EE 1
EE 2
Server Variable

Developer

Rein de Vries

3rd Party (Free)

Creative Commons Attribution Download v1.2

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

A small plugin that retrieves the SERVER / POST / GET vars from the server. You can use it as single tag as well as tag pair.

=============================
examples (Single tag)
=============================

{exp:server_var:get}
this will output an array of all GET vars

{exp:server_var:server:get var="test"}
this will output the value $_GET['test'] 

{exp:server_var:post}
this will output an array of all POST vars

{exp:server_var:server:post var="test"}
this will output the value $_POST['test'] 

{exp:server_var:server}
this will output an array of all server vars

{exp:server_var:server var="http_connection"}
Ths will out put the value of $_SERVER['HTTP_CONNECTION']

{exp:server_var:server var="redirect_url"}
Ths will out put the value of $_SERVER['REDIRECT_URL']

{exp:server_var:server var="redirect_url" segment="1"}
Ths will out put segment 1 from the value of $_SERVER['REDIRECT_URL']


*Segment parameter can only be used with url values

*Use the slash param when you use a diffrent server [windows/linux]
{exp:server_var:server var=“redirect_url” segment=“1” slash=”/”}

=============================
examples (Pair tag)
=============================

{exp:server_var:server}
 {http_host} - this is the var $_SERVER['HTTP_HOST']
{/exp:server_var:server}


{exp:server_var:post}
 {action} - this is the var $_POST['action']
{/exp:server_var:post}

{exp:server_var:get}
 {action} - this is the var $_GET['action']
{/exp:server_var:get}

=============================
The Tag(s)
=============================
{exp:server_var:server}
{exp:server_var:post}
{exp:server_var:get}

==============
TAG PARAMETERS
==============
var=”[the key]”
segment=”[segment number]”
slash=”[sort of slash]”

==============
Changelog:
==============

  • 1.2 : Tag data support
  • 1.1 : POST and GET support
  • 1.0 : Init release

Download Server Variable

EE Version Downloads Add-On Version Release Date
2.+ Download 1.2 2012-01-18 08:58 PM

This entry was last updated May 14, 2012, 11:36 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!