Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1015 → Rev 1016

/trunk/includes/classes/OIDplus.class.php
348,11 → 348,13
if ($db_plugin_name === '') {
throw new OIDplusConfigInitializationException(_L('No database plugin selected in config file'));
}
if (!isset(self::$dbPlugins[$db_plugin_name])) {
foreach (self::$dbPlugins as $name => $plugin) {
if (strtolower($name) == strtolower($db_plugin_name)) {
return $plugin;
}
}
throw new OIDplusConfigInitializationException(_L('Database plugin "%1" not found',$db_plugin_name));
}
return self::$dbPlugins[$db_plugin_name];
}
 
private static $dbMainSession = null;
public static function db() {
397,7 → 399,7
 
if (OIDplus::baseConfig()->getValue('RECAPTCHA_ENABLED', false) && ($captcha_plugin_name === '')) {
// Legacy config file support!
$captcha_plugin_name = 'ReCAPTCHA';
$captcha_plugin_name = 'reCAPTCHA';
}
 
if ($captcha_plugin_name === '') $captcha_plugin_name = 'None'; // the "None" plugin is a must-have!
407,12 → 409,13
 
public static function getActiveCaptchaPlugin() {
$captcha_plugin_name = OIDplus::getActiveCaptchaPluginId();
 
if (!isset(self::$captchaPlugins[$captcha_plugin_name])) {
foreach (self::$captchaPlugins as $name => $plugin) {
if (strtolower($name) == strtolower($captcha_plugin_name)) {
return $plugin;
}
}
throw new OIDplusConfigInitializationException(_L('CAPTCHA plugin "%1" not found',$captcha_plugin_name));
}
return self::$captchaPlugins[$captcha_plugin_name];
}
 
# --- Page plugin
 
/trunk/includes/classes/OIDplusCaptchaPlugin.class.php
23,7 → 23,7
 
public abstract static function id(): string; // this is the name that is set to the configuration value OIDplus::baseConfig()->getValue('CAPTCHA_PLUGIN') to identify the CAPTCHA plugin
 
public abstract static function isVisible(): bool;
public abstract function isVisible(): bool;
 
public function captchaDomHead() { return ''; }