addBreadCrumb(['link' => ADMIN.'settings_registration.php'.fusion_get_aidlink(), 'title' => $locale['register_settings']]); $settings = fusion_get_settings(); if (isset($_POST['savesettings'])) { $inputData = [ 'login_method' => form_sanitizer($_POST['login_method'], '0', 'login_method'), 'license_agreement' => form_sanitizer($_POST['license_agreement'], '', 'license_agreement', TRUE), 'enable_registration' => form_sanitizer($_POST['enable_registration'], '0', 'enable_registration'), 'email_verification' => form_sanitizer($_POST['email_verification'], '0', 'email_verification'), 'admin_activation' => form_sanitizer($_POST['admin_activation'], '0', 'admin_activation'), 'display_validation' => form_sanitizer($_POST['display_validation'], '0', 'display_validation'), 'enable_terms' => form_sanitizer($_POST['enable_terms'], '0', 'enable_terms'), 'license_lastupdate' => ($_POST['license_agreement'] != fusion_get_settings('license_agreement') ? time() : fusion_get_settings('license_lastupdate')) ]; if (\defender::safe()) { foreach ($inputData as $settings_name => $settings_value) { dbquery("UPDATE ".DB_SETTINGS." SET settings_value=:settings_value WHERE settings_name=:settings_name", [ ':settings_value' => $settings_value, ':settings_name' => $settings_name ]); } addNotice('success', $locale['900']); redirect(FUSION_REQUEST); } } opentable($locale['register_settings']); echo openform('settingsform', 'post', FUSION_REQUEST); $opts = ['1' => $locale['yes'], '0' => $locale['no']]; echo "