Toolbox::get_magic_quotes_runtime PHP Méthode

get_magic_quotes_runtime() static public méthode

Wrapper for get_magic_quotes_runtime - deprecated
Deprecation: in 0.90.1
static public get_magic_quotes_runtime ( ) : boolean
Résultat boolean
    static function get_magic_quotes_runtime()
    {
        return 0;
    }

Usage Example

Exemple #1
0
function plugin_surveyticket_install()
{
    global $DB;
    if (!TableExists('glpi_plugin_surveyticket_questions')) {
        $DB_file = GLPI_ROOT . "/plugins/surveyticket/install/mysql/plugin_surveyticket-empty.sql";
        $DBf_handle = fopen($DB_file, "rt");
        $sql_query = fread($DBf_handle, filesize($DB_file));
        fclose($DBf_handle);
        foreach (explode(";\n", "{$sql_query}") as $sql_line) {
            if (Toolbox::get_magic_quotes_runtime()) {
                $sql_line = Toolbox::stripslashes_deep($sql_line);
            }
            if (!empty($sql_line)) {
                $DB->query($sql_line);
            }
        }
        include GLPI_ROOT . "/plugins/surveyticket/inc/profile.class.php";
        $psProfile = new PluginSurveyticketProfile();
        $psProfile->initProfile();
    }
    return true;
}
All Usage Examples Of Toolbox::get_magic_quotes_runtime