Core: added PortsIPv6 setting to webadmin (contributed by STR_Warrior)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1261 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
8758c757bd
commit
ef65bd6f49
|
@ -43,6 +43,9 @@ local function ShowGeneralSettings( Request )
|
|||
if( tonumber( Request.PostParams["Server_Port"] ) ~= nil ) then
|
||||
SettingsIni:SetValue("Server", "Port", Request.PostParams["Server_Port"], false )
|
||||
end
|
||||
if( tonumber( Request.PostParams["Server_PortsIPv6"] ) ~= nil ) then
|
||||
SettingsIni:SetValue("Server", "PortsIPv6", Request.PostParams["Server_PortsIPv6"], false )
|
||||
end
|
||||
if( tonumber( Request.PostParams["Server_Version"] ) ~= nil ) then
|
||||
SettingsIni:SetValue("Server", "PrimaryServerVersion", Request.PostParams["Server_Version"], false )
|
||||
end
|
||||
|
@ -73,6 +76,8 @@ local function ShowGeneralSettings( Request )
|
|||
<td><input type="text" name="Server_MaxPlayers" value="]] .. SettingsIni:GetValue("Server", "MaxPlayers") .. [["></td></tr>
|
||||
<tr><td>Port:</td>
|
||||
<td><input type="text" name="Server_Port" value="]] .. SettingsIni:GetValue("Server", "Port") .. [["></td></tr>
|
||||
<tr><td>PortsIPv6:</td>
|
||||
<td><input type="text" name="Server_PortsIPv6" value="]] .. SettingsIni:GetValue("Server", "PortsIPv6") .. [["></td></tr>
|
||||
<tr><td>Shown Version:</td>
|
||||
<td>]] .. HTML_Select_Version("Server_Version", SettingsIni:GetValueI("Server", "PrimaryServerVersion") ) .. [[</td></tr>
|
||||
</table><br>
|
||||
|
|
Loading…
Reference in New Issue