summaryrefslogtreecommitdiff
path: root/extensions/ConfirmEdit/includes/specials/SpecialCaptcha.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/ConfirmEdit/includes/specials/SpecialCaptcha.php')
-rw-r--r--extensions/ConfirmEdit/includes/specials/SpecialCaptcha.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/extensions/ConfirmEdit/includes/specials/SpecialCaptcha.php b/extensions/ConfirmEdit/includes/specials/SpecialCaptcha.php
new file mode 100644
index 00000000..63305791
--- /dev/null
+++ b/extensions/ConfirmEdit/includes/specials/SpecialCaptcha.php
@@ -0,0 +1,22 @@
+<?php
+class CaptchaSpecialPage extends UnlistedSpecialPage {
+ public function __construct() {
+ parent::__construct( 'Captcha' );
+ }
+
+ function execute( $par ) {
+ $this->setHeaders();
+
+ $instance = ConfirmEditHooks::getInstance();
+
+ switch( $par ) {
+ case "image":
+ if ( method_exists( $instance, 'showImage' ) ) {
+ return $instance->showImage();
+ }
+ case "help":
+ default:
+ return $instance->showHelp();
+ }
+ }
+}