altAuthGetParams('otherdb'); $frm = new form; $text = $frm -> form_open("post", e_SELF); $tab1 = " "; $tab1 .= ""; $tab1 .= $this->alt_auth_get_db_fields('otherdb', $frm, $parm, 'server|port|uname|pwd|db|table|ufield|pwfield|salt'); $tab1 .= "
".LAN_ALT_26.""; $tab1 .= OTHERDB_LAN_15; $tab1 .= "
".OTHERDB_LAN_9.""; $tab1 .= $this->altAuthGetPasswordSelector('otherdb_password_method', $frm, $parm['otherdb_password_method'], TRUE); $tab1 .= "
"; $tab2 = " "; $tab2 .= ""; $tab2 .= $this->alt_auth_get_field_list('otherdb',$frm, $parm, FALSE); $tab2 .= '
".LAN_ALT_27."
'; $tabs = array( 'tab1' => array('caption'=>'Database', 'text'=>$tab1), 'tab2' => array('caption'=>'Data', 'text'=>$tab2), ); $text .= e107::getForm()->tabs($tabs); $text .= "
"; $text .= e107::getForm()->admin_button("update", LAN_UPDATE,'update'); $text .= '
'; $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(!empty($_POST['update'])) { $message = $otherdbAdmin->alt_auth_post_options('otherdb'); } if(!empty($message)) { echo e107::getMessage()->addSuccess($message)->render(); } $otherdbAdmin->showForm($mes); require_once(e_ADMIN.'footer.php'); function otherdb_conf_adminmenu() { alt_auth_adminmenu(); }