mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 05:11:42 +02:00
@@ -32,10 +32,57 @@ require_once(e_PLUGIN.'alt_auth/alt_auth_adminmenu.php');
|
||||
require_once(e_PLUGIN.'alt_auth/extended_password_handler.php');
|
||||
|
||||
|
||||
|
||||
|
||||
class alt_auth_otherdb extends alt_auth_admin
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public function showForm()
|
||||
{
|
||||
$ns = e107::getRender();
|
||||
|
||||
$parm = $this->altAuthGetParams('importdb');
|
||||
|
||||
$frm = new form;
|
||||
$text = $frm -> form_open('post', e_SELF);
|
||||
$text .= "<table class='table adminform'>
|
||||
<colgroup span='2'>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
</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 = alt_auth_post_options('importdb');
|
||||
$message = $otherDbAdmin->alt_auth_post_options('importdb');
|
||||
}
|
||||
|
||||
if(vartrue($message))
|
||||
@@ -44,41 +91,8 @@ if(vartrue($message))
|
||||
}
|
||||
|
||||
|
||||
show_importdb_form();
|
||||
$otherDbAdmin->showForm();
|
||||
|
||||
function show_importdb_form()
|
||||
{
|
||||
$ns = e107::getRender();
|
||||
|
||||
|
||||
$parm = altAuthGetParams('importdb');
|
||||
|
||||
$frm = new form;
|
||||
$text = $frm -> form_open('post', e_SELF);
|
||||
$text .= "<table class='table adminform'>
|
||||
<colgroup span='2'>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
</colgroup>";
|
||||
|
||||
|
||||
$text .= "<tr><td colspan='2'>".IMPORTDB_LAN_11."</td></tr>";
|
||||
$text .= "<tr><td>".IMPORTDB_LAN_9."</td><td>";
|
||||
|
||||
$text .= 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,alt_auth_test_form('importdb',$frm));
|
||||
|
||||
}
|
||||
|
||||
require_once(e_ADMIN.'footer.php');
|
||||
|
||||
|
Reference in New Issue
Block a user