/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_updater/includes
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_updater/includes/html.php (3655B)
0) {
$separator = strpos($url, '?')===false ? '?' : '&';
foreach ($prm as $k=>$v) {
$url .= $separator . urlencode($k) . '=' . urlencode($v);
$separator = '&';
}
}
return $url;
}
}
/* GET, POST and SESSION utilities
-------------------------------------------------------------------------------- */
// Strip slashes if Magic Quotes is on
if (!function_exists('trx_updater_stripslashes')) {
function trx_updater_stripslashes($val) {
static $magic = 0;
if ($magic === 0) {
$magic = version_compare(phpversion(), '5.4', '>=')
|| (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()==1)
|| (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime()==1)
|| strtolower(ini_get('magic_quotes_sybase'))=='on';
}
if (is_array($val)) {
foreach($val as $k=>$v)
$val[$k] = trx_updater_stripslashes($v);
} else
$val = $magic ? stripslashes(trim($val)) : trim($val);
return $val;
}
}
// Return GET or POST value
if (!function_exists('trx_updater_get_value_gp')) {
function trx_updater_get_value_gp($name, $defa='') {
if (isset($_GET[$name])) $rez = $_GET[$name];
else if (isset($_POST[$name])) $rez = $_POST[$name];
else $rez = $defa;
return trx_updater_stripslashes($rez);
}
}
// Return GET or POST or COOKIE value
if (!function_exists('trx_updater_get_value_gpc')) {
function trx_updater_get_value_gpc($name, $defa='') {
if (isset($_GET[$name])) $rez = $_GET[$name];
else if (isset($_POST[$name])) $rez = $_POST[$name];
else if (isset($_COOKIE[$name])) $rez = $_COOKIE[$name];
else $rez = $defa;
return trx_updater_stripslashes($rez);
}
}
// Get GET, POST, SESSION value and save it (if need)
if (!function_exists('trx_updater_get_value_gps')) {
function trx_updater_get_value_gps($name, $defa='') {
if (isset($_GET[$name])) $rez = $_GET[$name];
else if (isset($_POST[$name])) $rez = $_POST[$name];
else if (isset($_SESSION[$name])) $rez = $_SESSION[$name];
else $rez = $defa;
return trx_updater_stripslashes($rez);
}
}