diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-09-22 17:51:43 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-09-22 17:51:43 +0000 |
commit | aa9dbcec3c95efda6b3087c4bc6a48a0cef48774 (patch) | |
tree | 55da5b5b2da384919b8f315bbb54c1dd002e0de4 /phpBB/includes/captcha/captcha_factory.php | |
parent | 08428f8fa133c43c05066ff0e307abe01d943fa0 (diff) | |
download | forums-aa9dbcec3c95efda6b3087c4bc6a48a0cef48774.tar forums-aa9dbcec3c95efda6b3087c4bc6a48a0cef48774.tar.gz forums-aa9dbcec3c95efda6b3087c4bc6a48a0cef48774.tar.bz2 forums-aa9dbcec3c95efda6b3087c4bc6a48a0cef48774.tar.xz forums-aa9dbcec3c95efda6b3087c4bc6a48a0cef48774.zip |
short php open tags should not be used. :) A lot of users (including myself) do not allow them.
git-svn-id: file:///svn/phpbb/trunk@8907 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/captcha_factory.php')
-rw-r--r-- | phpBB/includes/captcha/captcha_factory.php | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/phpBB/includes/captcha/captcha_factory.php b/phpBB/includes/captcha/captcha_factory.php index dfbe605917..0f16e137ec 100644 --- a/phpBB/includes/captcha/captcha_factory.php +++ b/phpBB/includes/captcha/captcha_factory.php @@ -1,4 +1,4 @@ -<? +<?php /** * * @package VC @@ -18,10 +18,12 @@ if (!defined('IN_PHPBB')) if (!interface_exists('phpbb_captcha_plugin')) { - include(PHPBB_ROOT_PATH . "includes/captcha/captcha_plugin." . PHP_EXT); + include(PHPBB_ROOT_PATH . 'includes/captcha/captcha_plugin.' . PHP_EXT); } -/** A small class until we get the autoloader done */ +/** +* A small class until we get the autoloader done +*/ class phpbb_captcha_factory { /** @@ -36,7 +38,7 @@ class phpbb_captcha_factory } return call_user_func(array($name, 'get_instance')); } - + /** * Call the garbage collector */ @@ -49,16 +51,17 @@ class phpbb_captcha_factory } call_user_func(array($name, 'garbage_collect'), 0); } - + /** * return a list of all discovered CAPTCHA plugins */ public static function get_captcha_types() { - $captchas = array(); - $captchas['available'] = array(); - $captchas['unavailable'] = array(); - + $captchas = array( + 'available' => array(), + 'unavailable' => array(), + ); + $dp = @opendir(PHPBB_ROOT_PATH . 'includes/captcha/plugins'); if ($dp) @@ -87,4 +90,6 @@ class phpbb_captcha_factory return $captchas; } -}
\ No newline at end of file +} + +?>
\ No newline at end of file |