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('', "
".$message."
"); } $altAuthAdmin = new alt_auth_admin(); $text = "
".LAN_ALT_1.": ". $altAuthAdmin->alt_auth_get_dropdown('auth_method', $pref['auth_method'], 'e107')."
".LAN_ALT_78.":
".LAN_ALT_79."
".LAN_ALT_6.":
".LAN_ALT_7."
".LAN_ALT_8.":
".$altAuthAdmin->alt_auth_get_dropdown('auth_method2', $pref['auth_method2'], 'none')."
".LAN_ALT_9."
". $frm->admin_button('updateprefs',LAN_UPDATE,'update')."
"; $ns = e107::getRender(); $ns->tablerender(LAN_ALT_3, $text); if ($euf->userCount) { include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_user_extended.php'); $fl = &$euf->fieldDefinitions; $text = "
\n"; $text .= ""; foreach ($fl as $f) { $checked = (in_array($f['user_extended_struct_name'], $authExtended) ? " checked='checked'" : ''); $text .= "\n"; } $text .= "
".LAN_ALT_61." ".LAN_ALT_62." ".LAN_ALT_63." ".LAN_ALT_64."
{$f['user_extended_struct_name']} ".$tp->toHTML($f['user_extended_struct_text'],FALSE,'TITLE')." {$euf->user_extended_types[$f['user_extended_struct_type']]}
".$frm->admin_button('updateeufs',LAN_UPDATE,'update')."
"; e107::getRender()->tablerender(LAN_ALT_60, $text); } require_once(e_ADMIN.'footer.php'); function alt_auth_conf_adminmenu() { alt_auth_adminmenu(); } ?>