Ejemplo n.º 1
0
function show_otherdb_form()
{
    $ns = e107::getRender();
    $parm = altAuthGetParams('otherdb');
    $frm = new form();
    $text = $frm->form_open("post", e_SELF);
    $text .= "<table class='table adminform'>";
    $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>";
    $text .= OTHERDB_LAN_15;
    $text .= "</td></tr>";
    $text .= alt_auth_get_db_fields('otherdb', $frm, $parm, 'server|uname|pwd|db|table|ufield|pwfield|salt');
    $text .= "<tr><td>" . OTHERDB_LAN_9 . "</td><td>";
    $text .= altAuthGetPasswordSelector('otherdb_password_method', $frm, $parm['otherdb_password_method'], TRUE);
    $text .= "</td></tr>";
    $text .= "<tr><td class='forumheader2' colspan='2'>" . LAN_ALT_27 . "</td></tr>";
    $text .= alt_auth_get_field_list('otherdb', $frm, $parm, FALSE);
    $text .= "<tr><td class='forumheader' colspan='2' style='text-align:center;'>";
    $text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update');
    $text .= '</td></tr>';
    $text .= '</table>';
    $text .= $frm->form_close();
    $ns->tablerender(OTHERDB_LAN_10, $text);
    $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('otherdb', $frm));
}
Ejemplo n.º 2
0
function show_e107db_form()
{
    $ns = e107::getRender();
    $parm = altAuthGetParams('e107db');
    $frm = new form();
    $text = $frm->form_open('post', e_SELF);
    $text .= "<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>";
    $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>";
    $text .= E107DB_LAN_1;
    $text .= "</td></tr>";
    $text .= alt_auth_get_db_fields('e107db', $frm, $parm, 'server|uname|pwd|db|prefix|classfilt');
    $text .= "<tr><td>" . E107DB_LAN_9 . "</td><td>";
    $text .= altAuthGetPasswordSelector('e107db_password_method', $frm, $parm['e107db_password_method'], FALSE);
    $text .= "</td></tr>";
    $text .= "<tr><td colspan='2'><br />" . E107DB_LAN_11 . "</td></tr>";
    $text .= alt_auth_get_field_list('e107db', $frm, $parm, TRUE);
    $text .= "</table><div class='buttons-bar center'>";
    $text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update');
    //	$text .= $frm -> form_button("submit", "update", LAN_ALT_UPDATESET);
    $text .= '</div>';
    $text .= $frm->form_close();
    $ns->tablerender(E107DB_LAN_10, $text);
    $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('e107db', $frm));
}
Ejemplo n.º 3
0
}
$sql->db_Select("alt_auth", "*", "auth_type = 'radius' ");
while ($row = $sql->db_Fetch()) {
    $radius[$row['auth_parmname']] = base64_decode(base64_decode($row['auth_parmval']));
    // Encoding is new for 0.8
}
$frm = new form();
$text = $frm->form_open("post", e_SELF);
$text .= "<table class='table adminform'>";
$text .= "<tr><td>" . LAN_RADIUS_01 . "</td><td>";
$text .= $frm->form_text("radius_server", 35, $radius['radius_server'], 120);
$text .= "</td></tr>";
$text .= "<tr><td>" . LAN_RADIUS_02 . "</td><td>";
$text .= $frm->form_text('radius_secret', 35, $radius['radius_secret'], 200);
$text .= "</td></tr>";
$tmp = alt_auth_get_field_list('radius', $frm, $ldap, FALSE);
if ($tmp) {
    $text .= "<tr><td class='forumheader2' colspan='2'>" . LAN_ALT_27 . "</td></tr>" . $tmp;
    unset($tmp);
}
$text .= "<tr><td class='forumheader' colspan='2' style='text-align:center;'>";
// $text .= $frm -> form_button("submit", "update", LAN_ALT_2);
$text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update');
$text .= "</td></tr>";
$text .= "</table>";
$text .= $frm->form_close();
$ns->tablerender(LAN_RADIUS_06, $mes->render() . $text);
$ns->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('radius', $frm));
require_once e_ADMIN . "footer.php";
function radius_conf_adminmenu()
{
Ejemplo n.º 4
0
$text .= "</td></tr>";
$text .= "<tr><td>" . LDAPLAN_4 . "</td><td>";
$text .= $frm->form_text("ldap_passwd", 35, $ldap['ldap_passwd'], 120);
$text .= "</td></tr>";
$text .= "<tr><td>" . LDAPLAN_5 . "</td><td>";
$text .= $frm->form_select_open("ldap_version");
foreach ($ldap_ver as $v) {
    $sel = $ldap['ldap_version'] == $v ? " Selected='selected'" : "";
    $text .= $frm->form_option($v, $sel, $v);
}
$text .= $frm->form_select_close();
$text .= "</td></tr>";
$text .= "<tr><td>" . LDAPLAN_7 . "<br /><span class='smalltext'>" . LDAPLAN_8 . "</span></td><td>";
$text .= $frm->form_text('ldap_edirfilter', 35, $ldap['ldap_edirfilter'], 120);
$text .= "<br /><span class='smalltext'>" . LDAPLAN_9 . "<br />" . htmlentities($current_filter) . "</span></td></tr>";
$text .= "<tr><td class='forumheader2' colspan='2'>" . LAN_ALT_27 . "</td></tr>";
add_extended_fields();
$text .= alt_auth_get_field_list('ldap', $frm, $ldap, FALSE);
$text .= "<tr><td class='forumheader' colspan='2' style='text-align:center;'>";
$text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update');
//$text .= $frm -> form_button('submit', 'update', LDAPLAN_13);
$text .= "</td></tr>";
$text .= "</table>\n";
$text .= $frm->form_close();
e107::getRender()->tablerender(LDAPLAN_6, $mes->render() . $text);
e107::getRender()->tablerender(LAN_ALT_40 . LAN_ALT_41, alt_auth_test_form('ldap', $frm));
require_once e_ADMIN . 'footer.php';
function ldap_conf_adminmenu()
{
    alt_auth_adminmenu();
}