コード例 #1
0
ファイル: init.php プロジェクト: juliogallardo1326/proc
 /**
  * removeMagicQuotesGPC
  *
  * This function removess the magic quotes if they enabled
  *
  * @param    array
  * @return   array
  * @access   private
  * @author   Thorsten Rinne <*****@*****.**>
  */
 function removeMagicQuotesGPC($data)
 {
     if (get_magic_quotes_gpc()) {
         $addedData = array();
         foreach ($data as $key => $val) {
             $key = addslashes($key);
             if (is_array($val)) {
                 $addedData[$key] = PMF_Init::removeMagicQuotesGPC($val);
             } else {
                 $addedData[$key] = $val;
             }
         }
         return $addedData;
     }
     return $data;
 }