Esempio n. 1
0
        $text .= "<tr><td>" . LAN_ALT_26 . "</td><td>";
        $text .= OTHERDB_LAN_15;
        $text .= "</td></tr>";
        $text .= $this->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 .= $this->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 .= $this->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, $this->alt_auth_test_form('otherdb', $frm));
    }
}
$otherdbAdmin = new alt_auth_otherdb();
if (vartrue($_POST['update'])) {
    $message = $otherdbAdmin->alt_auth_post_options('otherdb');
}
if (vartrue($message)) {
    e107::getRender()->tablerender('', "<div style='text-align:center;'>" . $message . '</div>');
}
$otherdbAdmin->showForm($mes);
require_once e_ADMIN . 'footer.php';
function otherdb_conf_adminmenu()
{
    alt_auth_adminmenu();
}
Esempio n. 2
0
        $ns = e107::getRender();
        $parm = $this->altAuthGetParams('importdb');
        $frm = new form();
        $text = $frm->form_open('post', e_SELF);
        $text .= "<table class='table adminform'>\r\n\t\t<colgroup span='2'>\r\n\t\t\t<col class='col-label' />\r\n\t\t\t<col class='col-control' />\r\n\t\t</colgroup>";
        $text .= "<tr><td colspan='2'>" . IMPORTDB_LAN_11 . "</td></tr>";
        $text .= "<tr><td>" . IMPORTDB_LAN_9 . "</td><td>";
        $text .= $this->altAuthGetPasswordSelector('importdb_password_method', $frm, $parm['importdb_password_method'], TRUE);
        $text .= "</td></tr>";
        $text .= "</table><div class='buttons-bar center'>";
        $text .= e107::getForm()->admin_button("update", LAN_UPDATE, 'update');
        $text .= "</div>";
        $text .= $frm->form_close();
        $ns->tablerender(IMPORTDB_LAN_10, $text);
        $ns->tablerender(LAN_ALT_40 . LAN_ALT_41, $this->alt_auth_test_form('importdb', $frm));
    }
}
$otherDbAdmin = new alt_auth_otherdb();
if (vartrue($_POST['update'])) {
    //	$message = update_importdb_prefs();
    $message = $otherDbAdmin->alt_auth_post_options('importdb');
}
if (vartrue($message)) {
    e107::getRender()->tablerender("", "<div style='text-align:center;'>" . $message . "</div>");
}
$otherDbAdmin->showForm();
require_once e_ADMIN . 'footer.php';
function importdb_conf_adminmenu()
{
    alt_auth_adminmenu();
}