diff --git a/cforms-corrupted.php b/cforms-corrupted.php index 9d638af..77342e4 100644 --- a/cforms-corrupted.php +++ b/cforms-corrupted.php @@ -18,6 +18,11 @@ */ cforms2_check_access_priv(); + +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + if (!check_admin_referer("corruptedsettings")) + return; +} ?>

@@ -62,6 +67,7 @@
+

diff --git a/cforms-global-settings.php b/cforms-global-settings.php index 82289df..c200963 100644 --- a/cforms-global-settings.php +++ b/cforms-global-settings.php @@ -26,6 +26,11 @@ if (cforms2_check_erased()) return; +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + if (!check_admin_referer("cformsglobal")) + return; +} + $style = $cformsSettings['global']['cforms_css']; // Update Settings. @@ -81,6 +86,7 @@

' . __('All the global and per form settings are listed here as JSON. You can use this as a backup tool if you like.', 'cforms2') . '

'; echo '

' . __('Warning!', 'cforms2') . '

' . __('Please do not change anything here unless you know what you are doing!', 'cforms2') . '

'; @@ -303,6 +309,7 @@
+

not erase any of its data. If you like to quit using cforms for good, please erase all data before deactivating the plugin.', 'cforms2') ?>

diff --git a/cforms-options.php b/cforms-options.php index a98d164..ff5d750 100644 --- a/cforms-options.php +++ b/cforms-options.php @@ -26,6 +26,10 @@ if (cforms2_check_erased()) return; +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + if (!check_admin_referer("cformsdata")) + return; +} $formcount = count(Cforms2\FormSettings::forms()); @@ -264,6 +268,7 @@
 
+