toDB($_POST['auth_method']); $temp['auth_noconn'] = intval($_POST['auth_noconn']); $temp['auth_method2'] = $tp->toDB($_POST['auth_method2']); $temp['auth_badpassword'] = intval($_POST['auth_badpassword']); if ($admin_log->logArrayDiffs($temp, $pref, 'AUTH_01')) { save_prefs(); // Only save if changes @TODO: header('location:'.e_SELF); exit; } } if(isset($_POST['updateeufs'])) { $authExtended = array(); foreach ($_POST['auth_euf_include'] as $au) { $authExtended[] = trim($tp->toDB($au)); } $au = implode(',',$authExtended); if ($au != $pref['auth_extended']) { $pref['auth_extended'] = $au; // @TODO: save_prefs(); $admin_log->log_event('AUTH_02',$au,''); } } // Avoid need for lots of checks later if (!isset($pref['auth_badpassword'])) $pref['auth_badpassword'] = 0; if (!isset($pref['auth_noconn'])) $pref['auth_noconn'] = 0; // Convert prefs if (isset($pref['auth_nouser'])) { $pref['auth_method2'] = 'none'; // Default to no fallback if ($pref['auth_nouser']) { $pref['auth_method2'] = 'e107'; } unset($pref['auth_nouser']); if (!isset($pref['auth_badpassword'])) $pref['auth_badpassword'] = 0; save_prefs(); // @TODO } $authlist = alt_auth_admin::alt_auth_get_authlist(); if (isset($pref['auth_extended'])) { $authExtended = explode(',',$pref['auth_extended']); } else { $pref['auth_extended'] = ''; $authExtended = array(); } if(isset($message)) { e107::getRender()->tablerender('', "