function oprav_addslashes(&$hodnota, $key) { if (is_array($hodnota)) { array_walk($hodnota, 'oprav_addslashes'); } else { $hodnota=stripslashes($hodnota); } } if (get_magic_quotes_gpc()) { if (! empty($_GET)) { array_walk($_GET, 'oprav_addslashes'); } if (! empty($_POST)) { array_walk($_POST, 'oprav_addslashes'); } } @import_request_variables('gp');
<?php ###################################################################### # phpRS Extrakce GET a POST promennych a jejich zpracovani 1.0.1 ###################################################################### // Copyright (c) 2001-2005 by Jiri Lukas ([email]jirilukas@supersvet.cz[/email]) // [http://www.supersvet.cz/phprs/] // This program is free software. - Toto je bezplatny a svobodny software. // funkce pro vytvoreni reference mezi dvema poli function Extract_prom($pole, &$target) { if (!is_array($pole)): return false; else: $is_magic_quotes = get_magic_quotes_gpc(); var_dump($is_magic_quotes); die(); reset($pole);
php_flag magic_quotes_gpc 0