*/ function array_clean_input ($array) { if(!is_array($array)) { return false; } if(empty($array)) { return false; } foreach($array as $key => $val) { if(is_array($val)) { $new_array[$key] = array_clean_input($val); } else { $new_array[$key] = trim(stripslashes($val)); } } return $new_array; } function array_clean_sql ($array) { if(!is_array($array)) { return false; } if(empty($array)) { return false; } foreach($array as $key => $val) { if(is_array($val)) { $new_array[$key] = array_clean_sql($val); } else { $new_array[$key] = mysql_real_escape_string(trim(stripslashes($val))); } } return $new_array; } /** * Recursively prepare an array for output in (X)HTML environment * @author David Turner */ function array_html_prepare ($array, $allow_for_html=TRUE) { // currently disabled - think that WYSIWYG pro will handle this return $array; // custom replacements to allow for loading HTML from db $replacements = array( "$" => "$", "&" => "&", '"' => """, "'" => "'" ); if(!is_array($array)) { return false; } if(empty($array)) { return false; } foreach($array as $key => $val) { if(is_array($val)) { $new_array[$key] = array_html_prepare($val); } else { if($allow_for_html) { foreach($replacements as $search => $replace) { $val = str_replace($search,$replace,$val); } $new_array[$key] = $val; } else { $new_array[$key] = htmlspecialchars($val); } } } return $new_array; } ?> 2015 Roots and Blues Festival | Pass Purchase - Select Your Pass



If this page does not automatically load within 5 seconds... CLICK HERE.