diff --git a/8chan-captcha/config.example.php b/8chan-captcha/config.example.php deleted file mode 100644 index d011b3f4..00000000 --- a/8chan-captcha/config.example.php +++ /dev/null @@ -1,15 +0,0 @@ - 'SET NAMES utf8')); - -// Captcha expiration: -$expires_in = 120; // 120 seconds - -// Captcha dimensions: -$width = 300; -$height = 80; - -// Captcha length: -$length = 6; diff --git a/8chan-captcha/cool-php-captcha-0.3.1/captcha.php b/8chan-captcha/cool-php-captcha-0.3.1/captcha.php index 4f742194..f8f0ce35 100644 --- a/8chan-captcha/cool-php-captcha-0.3.1/captcha.php +++ b/8chan-captcha/cool-php-captcha-0.3.1/captcha.php @@ -31,7 +31,7 @@ class SimpleCaptcha { * directory to another location outise the web server * */ - public $resourcesPath = 'cool-php-captcha-0.3.1/resources'; + public $resourcesPath = '8chan-captcha/cool-php-captcha-0.3.1/resources'; /** Min word length (for non-dictionary random text generation) */ public $minWordLength = 5; diff --git a/8chan-captcha/entrypoint.php b/8chan-captcha/entrypoint.php index d0edd3da..213ddb6f 100644 --- a/8chan-captcha/entrypoint.php +++ b/8chan-captcha/entrypoint.php @@ -3,8 +3,8 @@ header('Access-Control-Allow-Origin: *'); $mode = @$_GET['mode']; -require_once("config.php"); -require_once("functions.php"); +chdir('..'); // for "cool PHP CAPTCHA"'s resourcesPath +include "inc/functions.php"; // general 8chan functions switch ($mode) { // Request: GET entrypoint.php?mode=get&extra=1234567890 @@ -26,7 +26,7 @@ case "get": echo "
You do not have JavaScript enabled. To fill out the CAPTCHA, please copy the ID to the post form in the ID field, and write the answer in the answer field.