From 3b06ee0d381dc1be5f40ca98ad4278046d869d21 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:57:39 +0100 Subject: checked in initial customized verison for Archlinux32 --- plugins/AP_reCAPTCHA.php | 123 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 plugins/AP_reCAPTCHA.php (limited to 'plugins/AP_reCAPTCHA.php') diff --git a/plugins/AP_reCAPTCHA.php b/plugins/AP_reCAPTCHA.php new file mode 100644 index 0000000..2a56e04 --- /dev/null +++ b/plugins/AP_reCAPTCHA.php @@ -0,0 +1,123 @@ + $value) + { + $key = 'recaptcha_'.$key; + + if (isset($pun_config[$key])) + $db->query('UPDATE '.$db->prefix.'config SET conf_value = \''.$db->escape($value).'\' WHERE conf_name = \''.$db->escape($key).'\'') or error('Unable to update config value for '.$key, __FILE__, __LINE__, $db->error()); + else + $db->query('INSERT INTO '.$db->prefix.'config (conf_name, conf_value) VALUES (\''.$db->escape($key).'\', \''.$db->escape($value).'\')') or error('Unable to store config value for '.$key, __FILE__, __LINE__, $db->error()); + } + + // Regenerate the config cache + if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) + require PUN_ROOT.'include/cache.php'; + + generate_config_cache(); + + redirect('admin_loader.php?plugin=AP_reCAPTCHA.php', $lang_recaptcha['Settings saved']); +} + + +// Display the admin navigation menu +generate_admin_menu($plugin); + +?> + +
+

+
+
+
+
+ +
+

+ +

+ + + + + + + + + + + + + +
+ /> +
+ +
+ +
+
+
+ +
+ +
+

+ +

+ + + + + + + + + + + + + +
+ /> +
+ /> +
+ /> +
+
+
+
+

+
+
+
-- cgit v1.2.3-54-g00ecf