$button_url = $ui->url('hostbutton_url', 'post'); $button_gfx = $ui->url('hostbutton_gfx_url', 'post'); } $welcome = (isset($forcewelcome) and $forcewelcome == 'Y') ? $serverdetails['virtualserver_welcomemessage'] : $ui->description('welcome', 'post'); # Ticket https://github.com/easy-wi/developer/issues/13 "Bearbeiten von TS3 Servern im Usermodul erweitern" $virtualserver_antiflood_points_needed_command_block = $ui->id('virtualserver_antiflood_points_needed_command_block', 255, 'post'); $virtualserver_antiflood_points_needed_ip_block = $ui->id('virtualserver_antiflood_points_needed_ip_block', 255, 'post'); $virtualserver_antiflood_points_tick_reduce = $ui->id('virtualserver_antiflood_points_tick_reduce', 255, 'post'); $virtualserver_hostbanner_gfx_interval = $ui->id('virtualserver_hostbanner_gfx_interval', 255, 'post'); $virtualserver_hostmessage_mode = $ui->id('virtualserver_hostmessage_mode', 1, 'post'); $virtualserver_needed_identity_security_level = $ui->id('virtualserver_needed_identity_security_level', 255, 'post'); $virtualserver_reserved_slots = ($ui->id('virtualserver_reserved_slots', 4, 'post') and $ui->id('virtualserver_reserved_slots', 4, 'post') < $slots) ? $ui->id('virtualserver_reserved_slots', 4, 'post') : 0; $mod = $connection->ModServer($localserverid, $slots, $ip, $port, $initialpassword, $name, $welcome, $max_download_total_bandwidth, $max_upload_total_bandwidth, $banner_url, $banner_gfx, $button_url, $button_gfx, $tooltip, $virtualserver_reserved_slots, $virtualserver_needed_identity_security_level, $virtualserver_hostmessage_mode, $virtualserver_hostbanner_gfx_interval, $virtualserver_antiflood_points_tick_reduce, $virtualserver_antiflood_points_needed_command_block, $virtualserver_antiflood_points_needed_ip_block); $template_file = $spracheResponse->table_add . '<br />' . $spracheResponse->ts_query_success . $mod[0]['msg']; } $connection->CloseConnection(); $query = $sql->prepare("UPDATE `voice_server` SET `dns`=?,`initialpassword`=? WHERE `id`=? AND `resellerid`=? LIMIT 1"); $query->execute(array($dns, $initialpassword, $id, $reseller_id)); $loguseraction = '%mod% %voserver% ' . $ip . ':' . $port; $insertlog->execute(); } else { $template_file = implode(', ', $errors); } } else { $template_file = 'userpanel_404.tpl'; } } else { $template_file = $spracheResponse->token; } } } else {