summaryrefslogtreecommitdiff
path: root/web.php
diff options
context:
space:
mode:
Diffstat (limited to 'web.php')
-rw-r--r--web.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/web.php b/web.php
index 5511392..42675d9 100644
--- a/web.php
+++ b/web.php
@@ -15,10 +15,11 @@ $get = $frontend->parsegetfilters($_GET, $filters);
/*
Captcha
*/
-include "lib/captcha_gen.php";
-new captcha($frontend, $get, $filters, "web", true);
+include "lib/bot_protection.php";
+new bot_protection($frontend, $get, $filters, "web", true);
$payload = [
+ "timetaken" => microtime(true),
"class" => "",
"right-left" => "",
"right-right" => "",
@@ -359,7 +360,7 @@ if(count($results["answer"]) !== 0){
case "audio":
$right["answer"] .=
- '<audio src="/audio?s=' . urlencode($description["url"]) . '" controls><a href="/audio.php?s=' . urlencode($description["url"]) . '">Listen to the pronunciation audio</a></audio>';
+ '<audio src="/audio/linear?s=' . urlencode($description["url"]) . '" controls><a href="/audio/linear?s=' . urlencode($description["url"]) . '">Listen to the pronunciation audio</a></audio>';
break;
}
}