Example #1
0
        $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('', "<div style='text-align:center'><b>" . $message . "</b></div>");
}
$altAuthAdmin = new alt_auth_admin();
$text = "\r\n<div>\r\n<form method='post' action='" . e_SELF . "'>\r\n<table class='table adminform'>\r\n    \t<colgroup span='2'>\r\n    \t\t<col class='col-label' />\r\n    \t\t<col class='col-control' />\r\n    \t</colgroup>\r\n<tr>\r\n<td>" . LAN_ALT_1 . ": </td>\r\n<td>" . $altAuthAdmin->alt_auth_get_dropdown('auth_method', $pref['auth_method'], 'e107') . "\r\n</td>\r\n</tr>\r\n\r\n<tr>\r\n<td>" . LAN_ALT_78 . ":<br /></td>\r\n<td>\r\n<select class='tbox' name='auth_badpassword'>";
$sel = !$pref['auth_badpassword'] ? "" : " selected = 'selected' ";
$text .= "<option value='0' {$sel} >" . LAN_ALT_FAIL . "</option>";
$sel = $pref['auth_badpassword'] ? " selected = 'selected' " : "";
$text .= "<option value='1' {$sel} >" . LAN_ALT_FALLBACK . "</option>\r\n</select><div class='smalltext field-help'>" . LAN_ALT_79 . "</div>\r\n</td>\r\n</tr>\r\n\r\n<tr>\r\n<td>" . LAN_ALT_6 . ":<br /></td>\r\n<td>\r\n<select class='tbox' name='auth_noconn'>";
$sel = !$pref['auth_noconn'] ? '' : " selected = 'selected' ";
$text .= "<option value='0' {$sel} >" . LAN_ALT_FAIL . "</option>";
$sel = $pref['auth_noconn'] ? " selected = 'selected' " : '';
$text .= "<option value='1' {$sel} >" . LAN_ALT_FALLBACK . "</option>\r\n</select><div class='smalltext field-help'>" . LAN_ALT_7 . "</div>\r\n</td>\r\n</tr>\r\n\r\n<tr>\r\n<td>" . LAN_ALT_8 . ":<br />\r\n\r\n</td>\r\n<td>" . $altAuthAdmin->alt_auth_get_dropdown('auth_method2', $pref['auth_method2'], 'none') . "\r\n<div class='smalltext field-help'>" . LAN_ALT_9 . "</div>\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n<div class='buttons-bar center'>" . $frm->admin_button('updateprefs', LAN_UPDATE, 'update') . "\r\n</div>\r\n</form>\r\n</div>";
$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 = "<div>\r\n\t\t<form method='post' action='" . e_SELF . "'>\r\n\t\t<table class='table adminlist'>\r\n\t\t<colgroup>\r\n\t\t<col style='width:10%' />\r\n\t\t<col style='width:30%' />\r\n\t\t<col style='width:40%' />\r\n\t\t<col style='width:20%' />\r\n\t\t</colgroup>\n";
Example #2
0
function alt_auth_adminmenu()
{
    echo ' ';
    if (!is_array($authlist)) {
        $authlist = alt_auth_admin::alt_auth_get_authlist();
    }
    define('ALT_AUTH_ACTION', 'main');
    $var['main']['text'] = LAN_ALT_31;
    $var['main']['link'] = e_PLUGIN . 'alt_auth/alt_auth_conf.php';
    show_admin_menu('alt auth', ALT_AUTH_ACTION, $var);
    $var = array();
    foreach ($authlist as $a) {
        if ($a != 'e107') {
            $var[$a]['text'] = LAN_ALT_30 . $a;
            $var[$a]['link'] = e_PLUGIN . "alt_auth/{$a}_conf.php";
        }
    }
    show_admin_menu(LAN_ALT_29, ALT_AUTH_ACTION, $var);
}