43 if (!isset($instance)) {
45 $instance =
new $class();
52 return $this->captchaHandler->loadConfig(
$name);
57 return $this->captchaHandler->loadBasicConfig($filename);
62 return $this->captchaHandler->readConfig(
$file);
67 return $this->captchaHandler->writeConfig(
$file, $data);
74 foreach (glob($this->captchaHandler->path_basic .
'/config.*.php') as $filename) {
75 $plugin_List = preg_replace(
'/(config\.)(.*)(\.php)/',
'$2', basename($filename));
84 foreach ($this->plugin_List as $key) {
94 $_POST[
'disabled'] =
$system->CleanVars($_POST,
'disabled',
false,
'boolean');
95 $_POST[
'mode'] =
$system->CleanVars($_POST,
'mode',
'image',
'string');
96 $_POST[
'name'] =
$system->CleanVars($_POST,
'name',
'xoopscaptcha',
'string');
97 $_POST[
'skipmember'] =
$system->CleanVars($_POST,
'skipmember',
false,
'boolean');
98 $_POST[
'maxattempts'] =
$system->CleanVars($_POST,
'maxattempts', 10,
'int');
99 foreach (array_keys($this->
config) as $key) {
108 $class =
'Xcaptcha' . ucfirst(
$name);
109 $this->Pluginhandler = null;
112 $this->Pluginhandler =
new $class($this);
114 return $this->Pluginhandler;
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
writeConfig($file= 'config', $data)
loadBasicConfig($filename=null)
readConfig($file= 'config')
loadConfig($name= 'config')
loadPluginHandler($name=null)