error(mysql_error()."
$query","SQL Error"); mysql_select_db($dbsettings["name"]) or $debug->error(mysql_error()."
$query","SQL Error"); mysql_query("SET NAMES latin2"); echo mysql_error(); } $sql = str_replace("{{table}}", $dbsettings["prefix"].$table, $query); $sqlquery = mysql_query($sql) or $debug->error(mysql_error()."
$sql
","SQL Error"); unset($dbsettings); $numqueries++; // $arr = debug_backtrace(); $file = end(explode('/',$arr[1]['file'])); $line = $arr[1]['line']; $debug->add("Query $numqueries: $query$file($line)$table$fetch"); if($fetch) { $sqlrow = mysql_fetch_array($sqlquery); return $sqlrow; } else { return $sqlquery; } } ?>]*script*\"?[^>]*>", $u_url)) || (eregi("<[^>]*object*\"?[^>]*>", $u_url)) || (eregi("<[^>]*iframe*\"?[^>]*>", $u_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $u_url)) || (eregi("<[^>]*meta*\"?[^>]*>", $u_url)) || (eregi("<[^>]*style*\"?[^>]*>", $u_url)) || (eregi("<[^>]*form*\"?[^>]*>", $u_url)) || (eregi("\([^>]*\"?[^)]*\)", $u_url)) || (eregi("\"", $u_url))){ die (); } } unset($u_url); function czysc_url($url){ $bad_entities = array("&", "\"", "'", '\"', "\'", "<", ">", "(", ")"); $safe_entities = array("&", "", "", "", "", "", "", "", ""); $url = str_replace($bad_entities, $safe_entities, $url); return $url; } $_SERVER['PHP_SELF'] = czysc_url($_SERVER['PHP_SELF']); $_SERVER['QUERY_STRING'] = isset($_SERVER['QUERY_STRING']) ? czysc_url($_SERVER['QUERY_STRING']) : ""; $_SERVER['REQUEST_URI'] = isset($_SERVER['REQUEST_URI']) ? czysc_url($_SERVER['REQUEST_URI']) : ""; $PHP_SELF = czysc_url($_SERVER['PHP_SELF']); function is__Num($value){ return (preg_match("/^[0-9]+$/", $value)); } function verify_image($file){ $txt = file_get_contents($file); $image_safe = true; if (preg_match('#&(quot|lt|gt|nbsp);#i', $txt)) {$image_safe = false;} elseif (preg_match("#&\#x([0-9a-f]+);#i", $txt)) {$image_safe = false;} elseif (preg_match('#&\#([0-9]+);#i', $txt)) {$image_safe = false;} elseif (preg_match("#([a-z]*)=([\`\'\"]*)script:#iU", $txt)) {$image_safe = false;} elseif (preg_match("#([a-z]*)=([\`\'\"]*)javascript:#iU", $txt)) {$image_safe = false;} elseif (preg_match("#([a-z]*)=([\'\"]*)vbscript:#iU", $txt)) {$image_safe = false;} elseif (preg_match("#(<[^>]+)style=([\`\'\"]*).*expression\([^>]*>#iU", $txt)) {$image_safe = false;} elseif (preg_match("#(<[^>]+)style=([\`\'\"]*).*behaviour\([^>]*>#iU", $txt)) {$image_safe = false;} elseif (preg_match("#]*>#i", $txt)) {$image_safe = false;} return $image_safe; } ?>
Fatal error: Call to undefined function doquery() in E:\wamp\www\common.php on line 144
I have the same behavior, tried on latest xampp on windows 7 The error text is exactly the same