Location: PHPKode > projects > OSADS Alliance Database > OSADS-2.1/includes/common.php
<?php
// +----------------------------------------------------------------------
// | OSADS v2.0
// |
// | PHP Source
// +----------------------------------------------------------------------
// | Copyright (C) 2008 by Frank Tetzel <hide@address.com>
// +----------------------------------------------------------------------
// |
// | OSADS is free software; you can redistribute it and/or modify
// | it under the terms of the GNU General Public License as published by
// | the Free Software Foundation; either version 2 of the License, or
// | (at your option) any later version.
// |
// | OSADS is distributed in the hope that it will be useful,
// | but WITHOUT ANY WARRANTY; without even the implied warranty of
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// | GNU General Public License for more details.
// |
// | You should have received a copy of the GNU General Public License
// | along with OSADS. If not, write to the Free Software Foundation, Inc.,
// | 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
// |
// +----------------------------------------------------------------------
//

function a_stripslashes($data) {
   return is_array($data) ? array_map(__FUNCTION__, $data)
                          : stripslashes($data);
}

if (get_magic_quotes_gpc()) {
   $_POST      = a_stripslashes($_POST);
   $_GET       = a_stripslashes($_GET);
   $_REQUEST   = a_stripslashes($_REQUEST);
   $_COOKIE    = a_stripslashes($_COOKIE);
}

?>
Return current item: OSADS Alliance Database