radius = $this->altAuthGetParams('radius'); } public function showForm($mes) { $ns = e107::getRender(); $frm = new form; $text = $frm->form_open('post',e_SELF); $text .= ""; $text .= "\n"; $text .= "\n"; $tmp = $this->alt_auth_get_field_list('radius', $frm, $this->radius, FALSE); if ($tmp) { $text .= "\n".$tmp; unset($tmp); } $text .= "\n"; $text .= "
".LAN_RADIUS_01.""; $text .= $frm->form_text('radius_server', 35, vartrue($this->radius['radius_server']), 120); $text .= "
".LAN_RADIUS_02.""; $text .= $frm->form_text('radius_secret', 35, vartrue($this->radius['radius_secret']), 200); $text .= "
".LAN_ALT_27."
"; // $text .= $frm -> form_button("submit", "update", LAN_ALT_2); $text .= e107::getForm()->admin_button('update', LAN_UPDATE,'update'); $text .= "
\n"; $text .= $frm->form_close(); $ns->tablerender(LAN_RADIUS_06, $mes->render().$text); $ns->tablerender(LAN_ALT_40.LAN_ALT_41, $this->alt_auth_test_form('radius',$frm)); } } $message = ''; $radiusAdmin = new alt_auth_radius(); if(vartrue($_POST['update'])) { // $message .= alt_auth_post_options('radius'); $mes->addSuccess($radiusAdmin->alt_auth_post_options('radius')); } if (!extension_loaded('radius')) { // $message .= "

".LAN_RADIUS_11."

"; $mes->addWarning(LAN_RADIUS_11); } if($message) { $ns->tablerender('',"
".$message."
"); } $radiusAdmin->readOptions(); $radiusAdmin->showForm($mes); require_once(e_ADMIN.'footer.php'); function radius_conf_adminmenu() { alt_auth_adminmenu(); } ?>