addBreadCrumb(['link' => ADMIN.'settings_user.php'.fusion_get_aidlink(), 'title' => $locale['user_settings']]); $settings = fusion_get_settings(); if (isset($_POST['savesettings'])) { $inputData = [ 'enable_deactivation' => form_sanitizer($_POST['enable_deactivation'], '0', 'enable_deactivation'), 'deactivation_period' => form_sanitizer($_POST['deactivation_period'], '365', 'deactivation_period'), 'deactivation_response' => form_sanitizer($_POST['deactivation_response'], '14', 'deactivation_response'), 'deactivation_action' => form_sanitizer($_POST['deactivation_action'], '0', 'deactivation_action'), 'hide_userprofiles' => form_sanitizer($_POST['hide_userprofiles'], '0', 'hide_userprofiles'), 'avatar_filesize' => form_sanitizer($_POST['calc_b'], '15', 'calc_b') * form_sanitizer($_POST['calc_c'], '100000', 'calc_c'), 'avatar_width' => form_sanitizer($_POST['avatar_width'], '100', 'avatar_width'), 'avatar_height' => form_sanitizer($_POST['avatar_height'], '100', 'avatar_height'), 'avatar_ratio' => form_sanitizer($_POST['avatar_ratio'], '0', 'avatar_ratio'), 'userNameChange' => form_sanitizer($_POST['userNameChange'], '0', 'userNameChange'), 'userthemes' => form_sanitizer($_POST['userthemes'], '0', 'userthemes'), 'multiple_logins' => form_sanitizer($_POST['multiple_logins'], '0', 'multiple_logins') ]; 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 ]); } if ($_POST['enable_deactivation'] == '0') { $result = dbquery("UPDATE ".DB_USERS." SET user_status='0' WHERE user_status='5'"); } addNotice('success', $locale['900']); redirect(FUSION_REQUEST); } } opentable($locale['user_settings']); echo "