|
@@ 188-196 (lines=9) @@
|
| 185 |
|
* @return mixed If $var is set it returns the value of $_GET[$var]. If $var is NULL (default), returns $_GET itself. In any case *slashes are stipped from the output!* |
| 186 |
|
* @see _POST(), _GP(), _GETset() |
| 187 |
|
*/ |
| 188 |
|
public static function _GET($var = null) |
| 189 |
|
{ |
| 190 |
|
$value = $var === null ? $_GET : (empty($var) ? null : $_GET[$var]); |
| 191 |
|
// This is there for backwards-compatibility, in order to avoid NULL |
| 192 |
|
if (isset($value) && !is_array($value)) { |
| 193 |
|
$value = (string)$value; |
| 194 |
|
} |
| 195 |
|
return $value; |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
/** |
| 199 |
|
* Returns the global $_POST array (or value from) normalized to contain un-escaped values. |
|
@@ 206-214 (lines=9) @@
|
| 203 |
|
* @return mixed If $var is set it returns the value of $_POST[$var]. If $var is NULL (default), returns $_POST itself. In any case *slashes are stipped from the output!* |
| 204 |
|
* @see _GET(), _GP() |
| 205 |
|
*/ |
| 206 |
|
public static function _POST($var = null) |
| 207 |
|
{ |
| 208 |
|
$value = $var === null ? $_POST : (empty($var) || !isset($_POST[$var]) ? null : $_POST[$var]); |
| 209 |
|
// This is there for backwards-compatibility, in order to avoid NULL |
| 210 |
|
if (isset($value) && !is_array($value)) { |
| 211 |
|
$value = (string)$value; |
| 212 |
|
} |
| 213 |
|
return $value; |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
/** |
| 217 |
|
* Writes input value to $_GET. |