function getMysqlReadyString($a) { global $vbulletin; if(get_magic_quotes_gpc()) { $tmp = stripslashes($a); } else { $tmp = $a; } return $vbulletin->db->escape_string($tmp); }