thebobby Posted April 5, 2012 Share Posted April 5, 2012 Fatal error: Call to undefined function Clean() in /home/blaz1986/public_html/banner.php on line 10 Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 5, 2012 Share Posted April 5, 2012 (edited) If it aint there then you dont need to worry about it. Edited April 6, 2012 by illusions Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 5, 2012 Author Share Posted April 5, 2012 if ($_POST['submit'] != ""){ $_POST['changedesc'] = Clean($_POST['changedesc']); get this when trying to change banner Fatal error: Call to undefined function Clean() in /home/blaz1986/public_html/banner.php on line 10 Quote Link to comment Share on other sites More sharing options...
grant Posted April 6, 2012 Share Posted April 6, 2012 if ($_POST['submit'] != ""){ $_POST['changedesc'] = Clean($_POST['changedesc']); get this when trying to change banner Fatal error: Call to undefined function Clean() in /home/blaz1986/public_html/banner.php on line 10 function clean($str = '', $html = false) { if (empty($str)) return; if (is_array($str)) { foreach($str as $key => $value) $str[$key] = clean($value, $html); } else { if (get_magic_quotes_gpc()) $str = stripslashes($str); if (is_array($html)) $str = strip_tags($str, implode('', $html)); elseif (preg_match('|<([a-z]+)>|i', $html)) $str = strip_tags($str, $html); elseif ($html !== true) $str = strip_tags($str); $str = trim($str); }return $str; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.