get_magic_quotes_gpc() static public méthode

Wrapper for get_magic_quotes_gpc - deprecated
Deprecation: in 0.90.1
static public get_magic_quotes_gpc ( ) : boolean
Résultat boolean
Exemple #1
0
if (isset($_GET)) {
    if (Toolbox::get_magic_quotes_gpc()) {
        $_GET = array_map(array('Toolbox', 'stripslashes_deep'), $_GET);
    }
    $_GET = array_map(array('Toolbox', 'addslashes_deep'), $_GET);
    $_GET = array_map(array('Toolbox', 'clean_cross_side_scripting_deep'), $_GET);
}
if (isset($_REQUEST)) {
    if (Toolbox::get_magic_quotes_gpc()) {
        $_REQUEST = array_map(array('Toolbox', 'stripslashes_deep'), $_REQUEST);
    }
    $_REQUEST = array_map(array('Toolbox', 'addslashes_deep'), $_REQUEST);
    $_REQUEST = array_map(array('Toolbox', 'clean_cross_side_scripting_deep'), $_REQUEST);
}
if (isset($_FILES)) {
    if (Toolbox::get_magic_quotes_gpc()) {
        $_FILES = array_map(array('Toolbox', 'stripslashes_deep'), $_FILES);
    }
    $_FILES = array_map(array('Toolbox', 'addslashes_deep'), $_FILES);
    $_FILES = array_map(array('Toolbox', 'clean_cross_side_scripting_deep'), $_FILES);
}
// Mark if Header is loaded or not :
$HEADER_LOADED = false;
$FOOTER_LOADED = false;
if (isset($AJAX_INCLUDE)) {
    $HEADER_LOADED = true;
}
/* On startup, register all plugins configured for use. */
if (!isset($AJAX_INCLUDE) && !isset($PLUGINS_INCLUDED)) {
    // PLugin already included
    $PLUGINS_INCLUDED = 1;
 static function protectData($data)
 {
     if (Toolbox::get_magic_quotes_gpc()) {
         $data = Toolbox::stripslashes_deep($data);
     }
     $data = Toolbox::addslashes_deep($data);
     $data = Toolbox::clean_cross_side_scripting_deep($data);
     return $data;
 }