"; $savemsg .= ""; } else { $input_errors[] = gettext("Authentication failed."); } } } $pgtitle = array(gettext("Diagnostics"), gettext("Authentication")); $shortcut_section = "authentication"; include("head.inc"); ?> '. $savemsg.''); require_once('classes/Form.class.php'); $form = new Form('Test'); $section = new Form_Section('Authentication Test'); foreach (auth_get_authserver_list() as $auth_server) $serverlist[$auth_server['name']] = $auth_server['name']; $section->addInput(new Form_Select( 'authmode', 'Authentication Server', $pconfig['authmode'], $serverlist ))->setHelp('Select the authentication server to test against'); $section->addInput(new Form_Input( 'username', 'Username', 'text', $pconfig['username'], ['placeholder' => 'Username'] )); $section->addInput(new Form_Input( 'password', 'Password', 'password', $pconfig['password'], ['placeholder' => 'Password'] )); $form->add($section); print $form; include("foot.inc");