Rozdiely pre phpWebFileManager/functions.inc.php medzi verziami 1.3 a 1.4
| verzia 1.3, 2003/11/20 14:07:26 |
verzia 1.4, 2004/01/26 13:52:43 |
|
|
| * http://platon.sk/projects/phpWebFileManager/ |
* http://platon.sk/projects/phpWebFileManager/ |
| */ |
*/ |
| |
|
| /* $Platon: phpWebFileManager/functions.inc.php,v 1.2 2003/02/12 19:46:07 nepto Exp $ */ |
/* $Platon: phpWebFileManager/functions.inc.php,v 1.3 2003/11/20 14:07:26 nepto Exp $ */ |
| |
|
| /* Functions in this file was extracted created from Platon class. |
/* Functions in this file was extracted created from Platon class. |
| |
|
|
|
| */ |
*/ |
| function fm_get_cgi_var($name, $default_value = null) /* {{{ */ |
function fm_get_cgi_var($name, $default_value = null) /* {{{ */ |
| { |
{ |
| global $HTTP_GET_VARS; |
static $magic_quotes_gpc = null; |
| $var = @$HTTP_GET_VARS[$name]; |
if ($magic_quotes_gpc === null) { |
| if (! isset($var)) { |
$magic_quotes_gpc = get_magic_quotes_gpc(); |
| global $HTTP_POST_VARS; |
} |
| $var = @$HTTP_POST_VARS[$name]; |
global $HTTP_GET_VARS; |
| } |
$var = @$HTTP_GET_VARS[$name]; |
| if (isset($var)) { |
if (! isset($var)) { |
| if (is_array($var)) { |
global $HTTP_POST_VARS; |
| foreach (array_keys($var) as $key) { |
$var = @$HTTP_POST_VARS[$name]; |
| $var[$key] = stripslashes($var[$key]); |
} |
| } |
if (isset($var)) { |
| } else { |
if ($magic_quotes_gpc) { |
| $var = stripslashes($var); |
if (is_array($var)) { |
| } |
foreach (array_keys($var) as $key) { |
| } else { |
$var[$key] = stripslashes($var[$key]); |
| $var = @$default_value; |
} |
| } |
} else { |
| return $var; |
$var = stripslashes($var); |
| |
} |
| |
} |
| |
} else { |
| |
$var = @$default_value; |
| |
} |
| |
return $var; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /** |
/** |
Platon Group <platon@platon.sk> http://platon.sk/
|
|