existance and ignore deprecation warnings.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12987
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/* if running with magic_quotes_gpc then strip the slashes
from POST and GET global arrays */
-if (get_magic_quotes_gpc()) {
+if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) {
sqstripslashes($_GET);
sqstripslashes($_POST);
}
/**
* Do not use SquirrelMail with magic_quotes_* on.
*/
-if ( get_magic_quotes_runtime() || get_magic_quotes_gpc() ||
+if ( (function_exists('get_magic_quotes_runtime') && @get_magic_quotes_runtime()) ||
+ (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) ||
( (bool) ini_get('magic_quotes_sybase') && ini_get('magic_quotes_sybase') != 'off' )
) {
$magic_quotes_warning='You have enabled any one of <tt>magic_quotes_runtime</tt>, '