X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/blobdiff_plain/65178dfeda0c6e5eae59cffe743d2096ab6a4d29..8d11567eae5c9f89b38015d58663364ebf465f5f:/CookieCaptcha.php diff --git a/CookieCaptcha.php b/CookieCaptcha.php index dc57bea..30a0317 100644 --- a/CookieCaptcha.php +++ b/CookieCaptcha.php @@ -32,30 +32,7 @@ if ( !defined( 'MEDIAWIKI' ) ) { $dir = __DIR__; require_once $dir . '/ConfirmEdit.php'; -$wgCaptchaClass = 'FancyCaptcha'; +$wgCaptchaClass = 'CookieCaptcha'; -/** - * The name of a file backend ($wgFileBackends) to be used for storing files. - * Defaults to FSFileBackend using $wgCaptchaDirectory as a base path. - */ -$wgCaptchaFileBackend = ''; - -global $wgCaptchaDirectory; -$wgCaptchaDirectory = "$wgUploadDirectory/captcha"; // bad default :D - -global $wgCaptchaDirectoryLevels; -$wgCaptchaDirectoryLevels = 0; // To break into subdirectories - -global $wgCaptchaSecret; -$wgCaptchaSecret = "CHANGE_THIS_SECRET!"; - -/** - * By default the FancyCaptcha rotates among all available captchas. - * Setting $wgCaptchaDeleteOnSolve to true will delete the captcha - * files when they are correctly solved. Thus the user will need - * something like a cron creating new thumbnails to avoid drying up. - */ -$wgCaptchaDeleteOnSolve = false; - -$wgExtensionMessagesFiles['FancyCaptcha'] = $dir . '/FancyCaptcha.i18n.php'; -$wgAutoloadClasses['FancyCaptcha'] = $dir . '/FancyCaptcha.class.php'; +$wgExtensionMessagesFiles['CookieCaptcha'] = $dir . '/CookieCaptcha.i18n.php'; +$wgAutoloadClasses['CookieCaptcha'] = $dir . '/CookieCaptcha.class.php';