summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/v1/images.php4
-rw-r--r--api/v1/music.php4
-rw-r--r--api/v1/news.php4
-rw-r--r--api/v1/videos.php4
-rw-r--r--api/v1/web.php4
5 files changed, 10 insertions, 10 deletions
diff --git a/api/v1/images.php b/api/v1/images.php
index 3072b05..348dda7 100644
--- a/api/v1/images.php
+++ b/api/v1/images.php
@@ -16,9 +16,9 @@ $frontend = new frontend();
/*
Captcha
*/
-include "lib/captcha_gen.php";
+include "lib/bot_protection.php";
$null = null;
-new captcha($null, $null, $null, "images", false);
+new bot_protection($null, $null, $null, "images", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"images",
diff --git a/api/v1/music.php b/api/v1/music.php
index 409e6f0..a1359eb 100644
--- a/api/v1/music.php
+++ b/api/v1/music.php
@@ -16,9 +16,9 @@ $frontend = new frontend();
/*
Captcha
*/
-include "lib/captcha_gen.php";
+include "lib/bot_protection.php";
$null = null;
-new captcha($null, $null, $null, "music", false);
+new bot_protection($null, $null, $null, "music", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"music",
diff --git a/api/v1/news.php b/api/v1/news.php
index ddfd72a..ca11b13 100644
--- a/api/v1/news.php
+++ b/api/v1/news.php
@@ -16,9 +16,9 @@ $frontend = new frontend();
/*
Captcha
*/
-include "lib/captcha_gen.php";
+include "lib/bot_protection.php";
$null = null;
-new captcha($null, $null, $null, "news", false);
+new bot_protection($null, $null, $null, "news", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"news",
diff --git a/api/v1/videos.php b/api/v1/videos.php
index dab29af..c0a7507 100644
--- a/api/v1/videos.php
+++ b/api/v1/videos.php
@@ -16,9 +16,9 @@ $frontend = new frontend();
/*
Captcha
*/
-include "lib/captcha_gen.php";
+include "lib/bot_protection.php";
$null = null;
-new captcha($null, $null, $null, "videos", false);
+new bot_protection($null, $null, $null, "videos", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"videos",
diff --git a/api/v1/web.php b/api/v1/web.php
index 156e53e..df5cec1 100644
--- a/api/v1/web.php
+++ b/api/v1/web.php
@@ -16,9 +16,9 @@ $frontend = new frontend();
/*
Captcha
*/
-include "lib/captcha_gen.php";
+include "lib/bot_protection.php";
$null = null;
-new captcha($null, $null, $null, "web", false);
+new bot_protection($null, $null, $null, "web", false);
[$scraper, $filters] = $frontend->getscraperfilters(
"web",