REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 1.88 KB
Close
/home/jambtst2015/public_html/forum/includes/captcha/captcha_factory.php
Text
Base64
<?php /** * * @package VC * @version $Id$ * @copyright (c) 2008 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ if (!defined('IN_PHPBB')) { exit; } /** * A small class for 3.0.x (no autoloader in 3.0.x) * * @package VC */ class phpbb_captcha_factory { /** * return an instance of class $name in file $name_plugin.php */ function &get_instance($name) { global $phpbb_root_path, $phpEx; $name = basename($name); if (!class_exists($name)) { include($phpbb_root_path . "includes/captcha/plugins/{$name}_plugin." . $phpEx); } $instance = call_user_func(array($name, 'get_instance')); return $instance; } /** * Call the garbage collector */ function garbage_collect($name) { global $phpbb_root_path, $phpEx; $name = basename($name); if (!class_exists($name)) { include($phpbb_root_path . "includes/captcha/plugins/{$name}_plugin." . $phpEx); } call_user_func(array($name, 'garbage_collect'), 0); } /** * return a list of all discovered CAPTCHA plugins */ function get_captcha_types() { global $phpbb_root_path, $phpEx; $captchas = array( 'available' => array(), 'unavailable' => array(), ); $dp = @opendir($phpbb_root_path . 'includes/captcha/plugins'); if ($dp) { while (($file = readdir($dp)) !== false) { if ((preg_match('#_plugin\.' . $phpEx . '$#', $file))) { $name = preg_replace('#^(.*?)_plugin\.' . $phpEx . '$#', '\1', $file); if (!class_exists($name)) { include($phpbb_root_path . "includes/captcha/plugins/$file"); } if (call_user_func(array($name, 'is_available'))) { $captchas['available'][$name] = call_user_func(array($name, 'get_name')); } else { $captchas['unavailable'][$name] = call_user_func(array($name, 'get_name')); } } } closedir($dp); } return $captchas; } } ?>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
plugins
DIR
-
drwxr-xr-x
2024-11-22 17:53:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
captcha_factory.php
1.88 KB
lrw-r--r--
2024-11-22 17:53:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
captcha_gd.php
70.33 KB
lrw-r--r--
2024-11-22 17:53:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
captcha_gd_wave.php
24.54 KB
lrw-r--r--
2024-11-22 17:53:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
captcha_non_gd.php
84.19 KB
lrw-r--r--
2024-11-22 17:53:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).