#192: Add new gameserver templates

This commit is contained in:
Ulrich Block 2013-12-14 14:39:48 +01:00
parent ea60f59028
commit be68e7e9cb
8 changed files with 1074 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

966
web/install/gameslist.php Normal file
View File

@ -0,0 +1,966 @@
<?php
/**
* File: gameslist.php.
* Author: Ulrich Block
* Date: 11.12.13
* Contact: <ulrich.block@easy-wi.com>
*
* This file is part of Easy-WI.
*
* Easy-WI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Easy-WI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Easy-WI. If not, see <http://www.gnu.org/licenses/>.
*
* Diese Datei ist Teil von Easy-WI.
*
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
* der GNU General Public License, wie von der Free Software Foundation,
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
*
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
* Siehe die GNU General Public License fuer weitere Details.
*
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
$gameImages = array(
array(
':steamgame' => 'S',
':appID' => 232330,
':updates' => 1,
':shorten' => 'css',
':description' => 'Counter-Strike: Source',
':gamebinary' => 'srcds_run',
':binarydir' => '',
':modfolder' => 'cstrike',
':fps' => 67,
':slots' => 12,
':map' => 'de_dust2',
':cmd' => './%binary% -game cstrike -ip %ip% -port %port% -hostport %port% +maxplayers %slots% +map %map% +tv_port %tvport% +tv_maxclients 1 +clientport %port3%',
':modcmds' => null,
':tic' => '66',
':gameq' => 'css',
':gamemod' => 'N',
':gamemod2' => '',
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 4,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => 27017,
':portFour' => 27018,
':portFive' => 27019,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 90,
':updates' => 1,
':shorten' => 'cstrike',
':description' => 'Counter-Strike 1.6',
':gamebinary' => 'hlds_run',
':binarydir' => null,
':modfolder' => 'cstrike',
':fps' => 100,
':slots' => 12,
':map' => 'de_dust',
':cmd' => './%binary% -game cstrike -ip %ip% -port %port% -sys_ticrate %tic% +maxplayers %slots% +map %map% +fps_max %fps%',
':modcmds' => null,
':tic' => 100,
':gameq' => 'cs16',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 2,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 90,
':updates' => 1,
':shorten' => 'czero',
':description' => 'Counter-Strike: Condition Zero',
':gamebinary' => 'hlds_run',
':binarydir' => null,
':modfolder' => 'czero',
':fps' => 100,
':slots' => 12,
':map' => 'de_dust',
':cmd' => './%binary% -game cstrike -ip %ip% -port %port% -pingboost 2 +sys_ticrate %tic% +maxplayers %slots% +map %map% +fps_max %fps%',
':modcmds' => null,
':tic' => 100,
':gameq' => 'cscz',
':gamemod' => 'Y',
':gamemod2' => null,
':configs' => "server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 2,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 232290,
':updates' => 1,
':shorten' => 'dods',
':description' => 'Day of Defeat: Source',
':gamebinary' => 'srcds_run',
':binarydir' => null,
':modfolder' => 'dod',
':fps' => null,
':slots' => 12,
':map' => 'dod_anzio',
':cmd' => './%binary% -game dod -ip %ip% -port %port% -verify_all +maxplayers %slots% +map %map% +tv_port %tvport% +replay_port %port3%',
':modcmds' => null,
':tic' => 66,
':gameq' => 'dods',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 3,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => 27017,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'cod4',
':description' => 'Call of Duty 4',
':gamebinary' => 'cod4_lnxded',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => './%binary% +set dedicated 2 +exec dedicated.cfg +set fs_basepath %absolutepath%/ +set fs_homepath %absolutepath%/.callofduty4 +set net_ip %ip% +set net_port %port% +set sv_maxclients %slots% +map_rotate',
':modcmds' => "[PAM402 = default]\r\n+set fs_game mods/pam402\r\n\r\n[Punkbuster]\r\n+set sv_punkbuster 1",
':tic' => null,
':gameq' => 'cod4',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "main/dedicated.cfg\r\nmain/server.cfg",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'main/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 550,
':updates' => 1,
':shorten' => 'left4dead',
':description' => 'Left 4 Dead',
':gamebinary' => 'srcds_run',
':binarydir' => '',
':modfolder' => 'l4d',
':fps' => null,
':slots' => 0,
':map' => 'l4d_airport01_greenhouse',
':cmd' => './%binary% -game left4dead -ip %ip% -port %port% +map %map%',
':modcmds' => null,
':tic' => null,
':gameq' => 'l4d',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => '',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 222860,
':updates' => 1,
':shorten' => 'left4dead2',
':description' => 'Left 4 Dead 2',
':gamebinary' => 'srcds_run',
':binarydir' => '',
':modfolder' => 'left4dead2',
':fps' => null,
':slots' => 0,
':map' => 'c2m1_highway',
':cmd' => './%binary% -game left4dead2 -ip %ip% -port %port% +map %map% ',
':modcmds' => null,
':tic' => null,
':gameq' => 'l4d2',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => '',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 17575,
':updates' => 1,
':shorten' => 'pvkii',
':description' => 'Pirates, Vikings, and Knights II',
':gamebinary' => 'srcds_run',
':binarydir' => '',
':modfolder' => 'pvkii',
':fps' => null,
':slots' => 12,
':map' => 'tw_temple',
':cmd' => './%binary% -game pvkii -ip %ip% -port %port% +maxplayers %slots% +map %map% +tv_port %tvport%',
':modcmds' => null,
':tic' => null,
':gameq' => 'source',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 2,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 17515,
':updates' => 1,
':shorten' => 'ageofchivalry',
':description' => 'Age Of Chivalry',
':gamebinary' => 'srcds_run',
':binarydir' => '',
':modfolder' => 'ageofchivalry',
':fps' => 75,
':slots' => 12,
':map' => 'aoc_battleground',
':cmd' => './%binary% -game ageofchivalry -ip %ip% -port %port% +maxplayers %slots% +map %map% +fps_max %fps% +tv_port %tvport%',
':modcmds' => null,
':tic' => 66,
':gameq' => 'aoc',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 2,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 90,
':updates' => 1,
':shorten' => 'dod',
':description' => 'Day of Defeat',
':gamebinary' => 'hlds_run',
':binarydir' => null,
':modfolder' => 'dod',
':fps' => 100,
':slots' => 12,
':map' => 'dod_anzio',
':cmd' => './%binary% -game dod -ip %ip% -port %port% +sys_ticrate %tic% +maxplayers %slots% +map %map% +fps_max %fps%',
':modcmds' => null,
':tic' => null,
':gameq' => 'dod',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 232370,
':updates' => 1,
':shorten' => 'hl2mp',
':description' => 'HL2 Deathmatch',
':gamebinary' => 'srcds_run',
':binarydir' => null,
':modfolder' => 'hl2mp',
':fps' => null,
':slots' => 12,
':map' => 'dm_lockdown',
':cmd' => './%binary% -game hl2mp -ip %ip% -port %port% +maxplayers %slots% +map %map% +tv_port %tvport%',
':modcmds' => null,
':tic' => null,
':gameq' => 'hl2dm',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 17705,
':updates' => 1,
':shorten' => 'insurgency',
':description' => 'Insurgency',
':gamebinary' => 'srcds_run',
':binarydir' => null,
':modfolder' => 'insurgency',
':fps' => 100,
':slots' => 12,
':map' => 'ins_abdallah',
':cmd' => './%binary% -game insurgency -ip %ip% -port %port% +maxplayers %slots% +map %map% +fps_max %fps%',
':modcmds' => null,
':tic' => null,
':gameq' => 'insurgency',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 232250,
':updates' => 1,
':shorten' => 'tf',
':description' => 'Team Fortress 2',
':gamebinary' => 'srcds_run',
':binarydir' => null,
':modfolder' => 'tf',
':fps' => null,
':slots' => 12,
':map' => 'cp_5gorge',
':cmd' => './%binary% -game tf -ip %ip% -port %port% +maxplayers %slots% +map %map% +tv_port %tvport%',
':modcmds' => null,
':tic' => null,
':gameq' => 'tf2',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 2,
':portOne' => 27015,
':portTwo' => 27016,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 90,
':updates' => 1,
':shorten' => 'tfc',
':description' => 'Team Fortress Classic',
':gamebinary' => 'hlds_run',
':binarydir' => null,
':modfolder' => 'tfc',
':fps' => 100,
':slots' => 12,
':map' => '2fort',
':cmd' => './%binary% -game tfc -ip %ip% -port %port% +sys_ticrate %tic% +maxplayers %slots% +map %map% +fps_max %fps%',
':modcmds' => null,
':tic' => null,
':gameq' => 'tfc',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 17505,
':updates' => 1,
':shorten' => 'zps',
':description' => 'Zombie Panic Source',
':gamebinary' => 'srcds_run',
':binarydir' => null,
':modfolder' => 'zps',
':fps' => 100,
':slots' => 12,
':map' => 'zpa_badbayou',
':cmd' => './%binary% -game zps -ip %ip% -port %port% +maxplayers %slots% +map %map% +fps_max %fps%',
':modcmds' => null,
':tic' => null,
':gameq' => 'zps',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\nmaplist.txt full\r\nmapcycle.txt full",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'S',
':appID' => 740,
':updates' => 1,
':shorten' => 'csgo',
':description' => 'Counter-Strike: Global Offensive',
':gamebinary' => 'srcds_run',
':binarydir' => null,
':modfolder' => 'csgo',
':fps' => null,
':slots' => 12,
':map' => 'de_dust',
':cmd' => './%binary% -game csgo -console -usercon -tickrate %tic% +ip %ip% +port %port% -maxplayers_override %slots% +map %map% +mapgroup %mapgroup%',
':modcmds' => "[Classic Casual = default]\r\n+game_type 0 +game_mode 0\r\n\r\n[Classic Competitive]\r\n+game_type 0 +game_mode 1\r\n\r\n[Arms Race]\r\n+game_type 1 +game_mode 0\r\n\r\n[Demolition]\r\n+game_type 1 +game_mode 1",
':tic' => 66,
':gameq' => 'csgo',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "cfg/server.cfg both\r\ncfg/autoexec.cfg both\r\ngamemodes.txt\r\ngamemodes_server.txt",
':configedit' => null,
':portStep' => 10,
':portMax' => 1,
':portOne' => 27015,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => 'mg_bomb',
':protected' => 'Y',
':protectedSaveCFGs' => 'cfg/server.cfg',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'mc',
':description' => 'Minecraft',
':gamebinary' => 'minecraft_server.jar',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => 'java -Xmx%maxram%M -Xms%minram%M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=%maxcores% -XX:+AggressiveOpts -jar %binary% nogui',
':modcmds' => null,
':tic' => null,
':gameq' => 'minecraft',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "server.properties full",
':configedit' => "server.properties','[server.properties] ini\r\nserver-port=%port%\r\nquery.port=%port%\r\nrcon.port=%port2%\r\nserver-ip=%ip%\r\nmax-players=%slots%",
':portStep' => 10,
':portMax' => 2,
':portOne' => 25565,
':portTwo' => 25566,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'Y',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'bukkit',
':description' => 'MC Bukkit',
':gamebinary' => 'craftbukkit.jar',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => 'java -Xincgc -Xmx%maxram%M -Xms%minram%M -jar %binary% -o true -h %ip% -p %port% -s %slots% --log-append false --log-limit 50000',
':modcmds' => null,
':tic' => null,
':gameq' => 'minecraft',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "server.properties full",
':configedit' => "[server.properties] ini\r\nserver-port=%port%\r\nquery.port=%port%\r\nrcon.port=%port2%\r\nserver-ip=%ip%\r\nmax-players=%slots%",
':portStep' => 10,
':portMax' => 2,
':portOne' => 25565,
':portTwo' => 25566,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'Y',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'samp',
':description' => 'GTA San Andreas',
':gamebinary' => 'samp03svr',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => './%binary%',
':modcmds' => null,
':tic' => null,
':gameq' => 'samp',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "server.cfg both",
':configedit' => "[server.cfg] cfg\r\nmaxplayers %slots%\r\nport %port%",
':portStep' => 10,
':portMax' => 1,
':portOne' => 7777,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'mtasa',
':description' => 'Multi Theft Auto San Andreas',
':gamebinary' => 'mta-server',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => './%binary%',
':modcmds' => "[mods/deathmatch/mtaserver.conf] xml\r\n<serverip>%ip%</serverip>\r\n<serverport>%port%</serverport> \r\n<httpport>%port2%</httpport>\r\n<maxplayers>%slots%</maxplayers>\r\n<httpserver>0</httpserver>",
':tic' => null,
':gameq' => 'Mta',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "mods/deathmatch/mtaserver.conf full",
':configedit' => null,
':portStep' => 10,
':portMax' => 3,
':portOne' => 22003,
':portTwo' => 22005,
':portThree' => 22126,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'teeworlds',
':description' => 'Teeworlds',
':gamebinary' => 'teeworlds_srv',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => './%binary%',
':modcmds' => "[Capture the Flag = default]\r\n-f config_ctf.cfg\r\n\r\n[Deathmatch]\r\n-f config_dm.cfg\r\n\r\n[Team Deathmatch]\r\n-f config_tdm.cfg",
':tic' => null,
':gameq' => 'teeworlds',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "config_ctf.cfg\r\nconfig_dm.cfg\r\nconfig_tdm.cfg",
':configedit' => "[autoexec.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_ctf.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_dm.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_tdm.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%",
':portStep' => 10,
':portMax' => 1,
':portOne' => 8303,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => '',
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'killingfloor252',
':description' => 'KillingFloor 2.52',
':gamebinary' => 'ucc-bin',
':binarydir' => 'System',
':modfolder' => 'KFMod20',
':fps' => null,
':slots' => 12,
':map' => 'KF-Offices.ut2',
':cmd' => './%binary% server KF-Offices?game=KFMod.KFGameType?GameStats=True?MaxPlayers=%slots% -mod="KFMod20" -log=../Logs/KF_Server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir',
':modcmds' => null,
':tic' => null,
':gameq' => 'killingfloor',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "KFMod20/System/KFMod20.ini",
':configedit' => "[autoexec.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_ctf.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_dm.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_tdm.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%",
':portStep' => 10,
':portMax' => 3,
':portOne' => 7777,
':portTwo' => 7787,
':portThree' => 7778,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'sauerbratenremod',
':description' => 'Sauerbraten',
':gamebinary' => 'remod',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => null,
':cmd' => './%binary% -i%ip% -j%port% -c%slots% -fserver-init.cfg',
':modcmds' => null,
':tic' => null,
':gameq' => 'cube2',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "server-init.cfg full",
':configedit' => "[server-init.cfg] cfg\r\nserverip \"%ip%\"\r\nserverport \"%port%\"\r\nmaxclients \"%slots%\"",
':portStep' => 10,
':portMax' => 2,
':portOne' => 28785,
':portTwo' => 28786,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'shootmania',
':description' => 'Shootmania',
':gamebinary' => 'ShootmaniaServer.sh',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => 'ShootmaniaServer',
':cmd' => './%binary% /dedicated_cfg=dedicated_cfg.txt /nodaemon /bindip=%ip% /forceip=%ip%',
':modcmds' => "[Shootmania Combo]\r\n/game_settings=MatchSettings/Combo.txt /title=SMStormCombo@nadeolabs\r\n\r\n[Shootmania Battle]\r\n/game_settings=MatchSettings/Battle.txt /title=SMStorm\r\n\r\n[Shootmania Elite = default]\r\n/game_settings=MatchSettings/Elite.txt /title=SMStormElite@nadeolabs\r\n\r\n[Shootmania Heroes]\r\n/game_settings=MatchSettings/Hereos.txt /title=SMStormHeroes@nadeolabs\r\n\r\n[Shootmania Joust]\r\n/game_settings=MatchSettings/Joust.txt /title=SMStormJoust@nadeolabs\r\n\r\n[Shootmania Melee]\r\n/game_settings=MatchSettings/Melee.txt /title=SMStorm\r\n\r\n[Shootmania Realms / broken]\r\n/game_settings=MatchSettings/Realms.txt /title=SMStorm\r\n\r\n[Shootmania Royal]\r\n/game_settings=MatchSettings/Royal.txt /title=SMStormRoyal@nadeolabs\r\n\r\n[Shootmania Siege]\r\n/game_settings=MatchSettings/Siege.txt /title=SMStorm\r\n\r\n[Shootmania TimeAttack / broken]\r\n/game_settings=MatchSettings/TimeAttack.txt /title=SMStorm\r\n\r\n[Shootmania YOUR Mod, ask the Support]\r\n/game_settings=MatchSettings/CustomMod.txt",
':tic' => null,
':gameq' => '',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "UserData/Config/dedicated_cfg.txt\r\nUserData/Maps/MatchSettings/Battle.txt\r\nUserData/Maps/MatchSettings/Elite.txt\r\nUserData/Maps/MatchSettings/Hereos.txt\r\nUserData/Maps/MatchSettings/Joust.txt\r\nUserData/Maps/MatchSettings/Melee.txt\r\nUserData/Maps/MatchSettings/Realms.txt\r\nUserData/Maps/MatchSettings/Royal.txt\r\nUserData/Maps/MatchSettings/Siege.txt\r\nUserData/Maps/MatchSettings/TimeAttack.txt\r\nUserData/Maps/MatchSettings/CustomMod.txt",
':configedit' => "[UserData/Config/dedicated_cfg.txt] xml\r\n<max_players>%slots%</max_players>\r\n<max_spectators>10</max_spectators>\r\n<enable_p2p_upload>false</enable_p2p_upload>\r\n<connection_uploadrate>2048</connection_uploadrate>\r\n<connection_downloadrate>4096</connection_downloadrate>\r\n<force_ip_address>%ip%</force_ip_address>\r\n<server_port>%port%</server_port>\r\n<server_p2p_port>%port2%</server_p2p_port>\r\n<bind_ip_address>%ip%</bind_ip_address>\r\n<xmlrpc_port>%port3%</xmlrpc_port>",
':portStep' => 10,
':portMax' => 3,
':portOne' => 2350,
':portTwo' => 2351,
':portThree' => 2352,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'trackmania',
':description' => 'Trackmania2',
':gamebinary' => 'TrackmaniaServer.sh',
':binarydir' => null,
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => 'TrackmaniaServer',
':cmd' => './%binary% /dedicated_cfg=dedicated_cfg.txt /nodaemon /bindip=%ip% /forceip=%ip%',
':modcmds' => "[Trackmania2 Canyon A = default]\r\n/game_settings=MatchSettings/TMCanyonA.txt /title=TMCanyon\r\n\r\n[Trackmania2 Canyon B]\r\n/game_settings=MatchSettings/TMCanyonB.txt /title=TMCanyon\r\n\r\n[Trackmania2 Canyon C]\r\n/game_settings=MatchSettings/TMCanyonC.txt /title=TMCanyon\r\n\r\n[Trackmania2 Canyon Custom]\r\n/game_settings=MatchSettings/TMCanyonCustom.txt /title=TMCanyon\r\n\r\n[Trackmania2 Stadium A]\r\n/game_settings=MatchSettings/TMStadiumA.txt /title=TMStadium\r\n\r\n[Trackmania2 Stadium B]\r\n/game_settings=MatchSettings/TMStadiumB.txt /title=TMStadium\r\n\r\n[Trackmania2 Stadium C]\r\n/game_settings=MatchSettings/TMStadiumC.txt /title=TMStadium\r\n\r\n[Trackmania2 Stadium Custom]\r\n/game_settings=MatchSettings/TMStadiumCustom.txt /title=TMStadium\r\n\r\n[Trackmania2 Valley A]\r\n/game_settings=MatchSettings/TMValleyA.txt /title=TMValley\r\n\r\n[Trackmania2 Valley B]\r\n/game_settings=MatchSettings/TMValleyB.txt /title=TMValley\r\n\r\n[Trackmania2 Valley C]\r\n/game_settings=MatchSettings/TMValleyC.txt /title=TMValley\r\n\r\n[Trackmania2 Valley Custom]\r\n/game_settings=MatchSettings/TMValleyCustom.txt /title=TMValley\r\n\r\n[Trackmania2 Platform A]\r\n/game_settings=MatchSettings/CanyonPlatformA.txt /title=Platform@nadeolive\r\n\r\n[Trackmania2 Platform B]\r\n/game_settings=MatchSettings/CanyonPlatformB.txt /title=Platform@nadeolive\r\n\r\n[Trackmania2 Platform C]\r\n/game_settings=MatchSettings/CanyonPlatformC.txt /title=Platform@nadeolive\r\n\r\n[Trackmania2 Platform Custom]\r\n/game_settings=MatchSettings/CanyonPlatformCustom.txt /title=Platform@nadeolive",
':tic' => null,
':gameq' => '',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "UserData/Config/dedicated_cfg.txt\r\nUserData/Maps/MatchSettings/TMCanyonCustom.txt\r\nUserData/Maps/MatchSettings/TMStadiumCustom.txt\r\nUserData/Maps/MatchSettings/TMValleyCustom.txt\r\nUserData/Maps/MatchSettings/CanyonPlatformCustom.txt",
':configedit' => "[UserData/Config/dedicated_cfg.txt] xml\r\n<max_players>%slots%</max_players>\r\n<max_spectators>10</max_spectators>\r\n<enable_p2p_upload>false</enable_p2p_upload>\r\n<connection_uploadrate>2048</connection_uploadrate>\r\n<connection_downloadrate>4096</connection_downloadrate>\r\n<force_ip_address>%ip%</force_ip_address>\r\n<server_port>%port%</server_port>\r\n<server_p2p_port>%port2%</server_p2p_port>\r\n<bind_ip_address>%ip%</bind_ip_address>\r\n<xmlrpc_port>%port3%</xmlrpc_port>",
':portStep' => 10,
':portMax' => 3,
':portOne' => 2350,
':portTwo' => 2351,
':portThree' => 2352,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'ut99',
':description' => 'Unreal Tournament',
':gamebinary' => 'ucc-bin',
':binarydir' => 'System',
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => 'DM-Codex.unr',
':cmd' => './%binary% server',
':modcmds' => "[DM = default]\r\n%map%?Game=Botpack.DeathMatchPlus?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TDM]\r\n%map%?Game=Botpack.TeamGamePlus?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[CTF]\r\n%map%?Game=Botpack.CTFGame?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[LMS]\r\n%map%?Game=Botpack.LastManStanding?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[DOM]\r\n%map%?Game=Botpack.Domination?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[BT]\r\n%map%?Game=BunnyTrack.BunnyTrackGame?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[JB]\r\n%map%?Game=JailBreak.JailBreak?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[MH]\r\n%map%?Game=Monsterhunt.Monsterhunt?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TMH]\r\n%map%?Game=TeamMH.TeamMH?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[RA]\r\n%map%?Game=RocketArena.ArenaGame?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir",
':tic' => null,
':gameq' => 'ut',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "ReadMe_WebAdmin_AdminPassword_ReDirect.txt",
':configedit' => null,
':portStep' => 10,
':portMax' => 3,
':portOne' => 7777,
':portTwo' => 7778,
':portThree' => 7779,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'ut2004',
':description' => 'UT2004',
':gamebinary' => 'ucc-bin',
':binarydir' => 'System',
':modfolder' => null,
':fps' => null,
':slots' => 12,
':map' => 'DM-Rankin.ut2',
':cmd' => './%binary% server',
':modcmds' => "[DM = default]\r\n%map%?Game=XGame.xDeathMatch?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TDM]\r\n%map%?Game=XGame.xTeamGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[CTF]\r\n%map%?Game=XGame.xCTFGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[iCTF-Clan]\r\n%map%?Game=XGame.InstagibCTF?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[iCTF-Public]\r\n%map%?Game=XGame.xCTFGame?Mutator=XGame.MutInstaGib?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TAM]\r\n%map%?Game=3spnv3141.TeamArenaMaster?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[AM]\r\n%map%?Game=3spnv3141.ArenaMaster=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[Freon]\r\n%map%?Game=3SPNv3141.Freon?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[ONS]\r\n%map%?Game=Onslaught.ONSOnslaughtGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[LMS]\r\n%map%?Game=BonusPack.xLastManStandingGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[DDOM]\r\n%map%?Game=XGame.xDoubleDom?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[BR]\r\n%map%?Game=XGame.xBombingRun?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[vCTF]\r\n%map%?Game=XGame.xVehicleCTFGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[Mutant]\r\n%map%?Game=BonusPack.xMutantGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[SkaarjPack.Invasion]\r\n%map%?Game=SkaarjPack.Invasion?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[AS]\r\n%map%?Game=UT2K4Assault.ASGameInfo?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[Jailbreak]\r\n%map%?Game=Jailbreak.Jailbreak?MaxPlayers=%slots% -ini=UT2004_JB.ini -log=UT2004_JB.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir",
':tic' => null,
':gameq' => 'ut2004',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "System/UT2004.ini\r\nSystem/XAdmin.ini\r\nReadMe_WebAdmin_AdminPassword_ReDirect.txt",
':configedit' => "[System/UT2004.ini] ini\r\nListenPort=%port3%",
':portStep' => 10,
':portMax' => 3,
':portOne' => 7777,
':portTwo' => 7778,
':portThree' => 7779,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
),
array(
':steamgame' => 'N',
':appID' => null,
':updates' => 1,
':shorten' => 'warsow',
':description' => 'WarSow',
':gamebinary' => 'wsw_server.x86_64',
':binarydir' => '',
':modfolder' => 'basewsw',
':fps' => null,
':slots' => 12,
':map' => '',
':cmd' => './%binary% +exec dedicated_server.cfg +set sv_maxclients %slots% +set sv_ip %ip% +set sv_port %port% +set sv_port6 %port%',
':modcmds' => "[Deathmatch]\r\n+set g_gametype \"dm\"\r\n\r\n[Team Deathmatch]\r\n+set g_gametype \"tdm\"\r\n\r\n[Team DMCTF]\r\n+set g_gametype \"tdm_ctf\"\r\n\r\n[Capture the Flag]\r\n+set g_gametype \"ctf\"\r\n\r\n[Clan Arena]\r\n+set g_gametype \"ca\"\r\n\r\n[Duel]\r\n+set g_gametype \"duel\"\r\n\r\n[Duel Arena]\r\n+set g_gametype \"da\"\r\n\r\n[DuelQuad]\r\n+set g_gametype \"duel_quad\"\r\n\r\n[FFA = default]\r\n+set g_gametype \"ffa\"\r\n\r\n[Mid Air]\r\n+set g_gametype \"midair\"\r\n\r\n[Race]\r\n+set g_gametype \"race\"\r\n\r\n[All Round]\r\n+set g_gametype \"allaround\"",
':tic' => null,
':gameq' => 'warsow',
':gamemod' => 'N',
':gamemod2' => null,
':configs' => "basewsw/dedicated_server.cfg\r\nbasewsw/motd.cfg",
':configedit' => "[basewsw/dedicated_autoexec.cfg] cfg\r\nsv_ip \"%ip%\"\r\nsv_port \"%port%\"\r\nsv_port6 \"%port%\"\r\nsv_maxclients \"%slots%\"",
':portStep' => 10,
':portMax' => 1,
':portOne' => 44400,
':portTwo' => null,
':portThree' => null,
':portFour' => null,
':portFive' => null,
':mapGroup' => null,
':protected' => 'N',
':protectedSaveCFGs' => null,
'ramLimited' => 'N',
':os' => 'L'
)
);

View File

@ -40,7 +40,7 @@
if (isset($include) and $include == true) {
$query = $sql->prepare("INSERT INTO `easywi_version` (`version`,`de`,`en`) VALUES
('4.11','<div align=\"right\">23.10.2013</div>
('4.11','<div align=\"right\">15.12.2013</div>
Leider haben sich in der 4.10 einige Fehler eingeschlichen. Dazu hat sie deutlich aufgezeigt, das viele Admins noch alte PHP Versionen nutzen und Easy-WI inkompatibel geworden ist.<br>
<br>
4.11 ist ein Hotfix Release, dass diese Probleme addressiert.<br>
@ -59,7 +59,7 @@ Leider haben sich in der 4.10 einige Fehler eingeschlichen. Dazu hat sie deutlic
<li>Minecraft Query funktioniert nicht</li>
<li>Falscher tsdns_settings.ini Syntax</li>
</ul>
','<div align=\"right\">10.23.2013</div>
','<div align=\"right\">12.15.2013</div>
Unfortunately errors have slipped in 4.10. In addition the update revealed that there are still admins with old PHP versions around. Those admins could not login anymore since.<br>
<br>
4.11 is a hotfix release which addresses these problems.<br>
@ -99,6 +99,97 @@ Unfortunately errors have slipped in 4.10. In addition the update revealed that
$query = $sql->prepare("ALTER TABLE `servertypes` ADD COLUMN `gameq` varchar(255) NULL AFTER `qstat`");
$query->execute();
require_once(EASYWIDIR . '/install/addonslist.php');
$query2 = $sql->prepare("SELECT `id` FROM `addons` WHERE `addon`=? AND `resellerid`=? LIMIT 1");
$query3 = $sql->prepare("INSERT INTO `addons` (`active`,`depending`,`paddon`,`addon`,`type`,`folder`,`menudescription`,`configs`,`cmd`,`rmcmd`,`resellerid`) VALUES ('Y',?,?,?,?,?,?,?,?,?,?)");
$query4 = $sql->prepare("SELECT `id` FROM `servertypes` WHERE `shorten`=? AND `resellerid`=? LIMIT 1");
$query5 = $sql->prepare("INSERT INTO `addons_allowed` (`addon_id`,`servertype_id`,`reseller_id`) VALUES (?,?,?)");
$query = $sql->prepare("SELECT `resellerid` FROM `userdata` WHERE `accounttype` IN ('a','r')");
$query->execute();
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
// add additional game images
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='killingfloor252' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'killingfloor252', 'KillingFloor 2.52', '', 'ucc-bin', 'System', 'KFMod20', NULL, 12, 'KF-Offices.ut2', './%binary% server KF-Offices?game=KFMod.KFGameType?GameStats=True?MaxPlayers=%slots% -mod=\"KFMod20\" -log=../Logs/KF_Server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir', NULL, NULL, NULL, 'N', NULL, 'KFMod20/System/KFMod20.ini', '[autoexec.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_ctf.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_dm.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%\r\n\r\n[config_tdm.cfg] cfg\r\nsv_max_clients %slots%\r\nsv_bindaddr %ip%\r\nsv_port %port%', NULL, 10, 3, 7777, 7787, 7778, NULL, NULL, 'N', ?, 'killingfloor', 'L', 'Y', 'N', NULL, NULL, NULL, NULL)");
$query->execute(array($row['resellerid']));
}
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='sauerbratenremod' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'sauerbratenremod', 'Sauerbraten', '', 'remod', NULL, NULL, NULL, 12, NULL, './%binary% -i%ip% -j%port% -c%slots% -fserver-init.cfg', NULL, NULL, NULL, 'N', NULL, 'server-init.cfg full', '[server-init.cfg] cfg\r\nserverip \"%ip%\"\r\nserverport \"%port%\"\r\nmaxclients \"%slots%\"', NULL, 10, 2, 28785, 28786, NULL, NULL, NULL, 'N', ?, 'cube2', 'L', 'Y', 'N', NULL, NULL, NULL, NULL)");
$query->execute(array($row['resellerid']));
}
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='shootmania' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'shootmania', 'Shootmania', '', 'ShootmaniaServer.sh', NULL, NULL, NULL, 12, 'ShootmaniaServer', './%binary% /dedicated_cfg=dedicated_cfg.txt /nodaemon /bindip=%ip% /forceip=%ip%', '[Shootmania Combo]\r\n/game_settings=MatchSettings/Combo.txt /title=SMStormCombo@nadeolabs\r\n\r\n[Shootmania Battle]\r\n/game_settings=MatchSettings/Battle.txt /title=SMStorm\r\n\r\n[Shootmania Elite = default]\r\n/game_settings=MatchSettings/Elite.txt /title=SMStormElite@nadeolabs\r\n\r\n[Shootmania Heroes]\r\n/game_settings=MatchSettings/Hereos.txt /title=SMStormHeroes@nadeolabs\r\n\r\n[Shootmania Joust]\r\n/game_settings=MatchSettings/Joust.txt /title=SMStormJoust@nadeolabs\r\n\r\n[Shootmania Melee]\r\n/game_settings=MatchSettings/Melee.txt /title=SMStorm\r\n\r\n[Shootmania Realms / broken]\r\n/game_settings=MatchSettings/Realms.txt /title=SMStorm\r\n\r\n[Shootmania Royal]\r\n/game_settings=MatchSettings/Royal.txt /title=SMStormRoyal@nadeolabs\r\n\r\n[Shootmania Siege]\r\n/game_settings=MatchSettings/Siege.txt /title=SMStorm\r\n\r\n[Shootmania TimeAttack / broken]\r\n/game_settings=MatchSettings/TimeAttack.txt /title=SMStorm\r\n\r\n[Shootmania YOUR Mod, ask the Support]\r\n/game_settings=MatchSettings/CustomMod.txt', NULL, NULL, 'N', NULL, 'UserData/Config/dedicated_cfg.txt\r\nUserData/Maps/MatchSettings/Battle.txt\r\nUserData/Maps/MatchSettings/Elite.txt\r\nUserData/Maps/MatchSettings/Hereos.txt\r\nUserData/Maps/MatchSettings/Joust.txt\r\nUserData/Maps/MatchSettings/Melee.txt\r\nUserData/Maps/MatchSettings/Realms.txt\r\nUserData/Maps/MatchSettings/Royal.txt\r\nUserData/Maps/MatchSettings/Siege.txt\r\nUserData/Maps/MatchSettings/TimeAttack.txt\r\nUserData/Maps/MatchSettings/CustomMod.txt', '[UserData/Config/dedicated_cfg.txt] xml\r\n<max_players>%slots%</max_players>\r\n<max_spectators>10</max_spectators>\r\n<enable_p2p_upload>false</enable_p2p_upload>\r\n<connection_uploadrate>2048</connection_uploadrate>\r\n<connection_downloadrate>4096</connection_downloadrate>\r\n<force_ip_address>%ip%</force_ip_address>\r\n<server_port>%port%</server_port>\r\n<server_p2p_port>%port2%</server_p2p_port>\r\n<bind_ip_address>%ip%</bind_ip_address>\r\n<xmlrpc_port>%port3%</xmlrpc_port>', NULL, 10, 3, 2350, 2351, 2352, NULL, NULL, 'N', ?, '', 'L', 'Y', 'N', NULL, NULL, NULL, NULL)");
$query->execute(array($row['resellerid']));
}
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='trackmania' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'trackmania', 'Trackmania2', '', 'TrackmaniaServer.sh', NULL, NULL, NULL, 12, 'TrackmaniaServer', './%binary% /dedicated_cfg=dedicated_cfg.txt /nodaemon /bindip=%ip% /forceip=%ip%', '[Trackmania2 Canyon A = default]\r\n/game_settings=MatchSettings/TMCanyonA.txt /title=TMCanyon\r\n\r\n[Trackmania2 Canyon B]\r\n/game_settings=MatchSettings/TMCanyonB.txt /title=TMCanyon\r\n\r\n[Trackmania2 Canyon C]\r\n/game_settings=MatchSettings/TMCanyonC.txt /title=TMCanyon\r\n\r\n[Trackmania2 Canyon Custom]\r\n/game_settings=MatchSettings/TMCanyonCustom.txt /title=TMCanyon\r\n\r\n[Trackmania2 Stadium A]\r\n/game_settings=MatchSettings/TMStadiumA.txt /title=TMStadium\r\n\r\n[Trackmania2 Stadium B]\r\n/game_settings=MatchSettings/TMStadiumB.txt /title=TMStadium\r\n\r\n[Trackmania2 Stadium C]\r\n/game_settings=MatchSettings/TMStadiumC.txt /title=TMStadium\r\n\r\n[Trackmania2 Stadium Custom]\r\n/game_settings=MatchSettings/TMStadiumCustom.txt /title=TMStadium\r\n\r\n[Trackmania2 Valley A]\r\n/game_settings=MatchSettings/TMValleyA.txt /title=TMValley\r\n\r\n[Trackmania2 Valley B]\r\n/game_settings=MatchSettings/TMValleyB.txt /title=TMValley\r\n\r\n[Trackmania2 Valley C]\r\n/game_settings=MatchSettings/TMValleyC.txt /title=TMValley\r\n\r\n[Trackmania2 Valley Custom]\r\n/game_settings=MatchSettings/TMValleyCustom.txt /title=TMValley\r\n\r\n[Trackmania2 Platform A]\r\n/game_settings=MatchSettings/CanyonPlatformA.txt /title=Platform@nadeolive\r\n\r\n[Trackmania2 Platform B]\r\n/game_settings=MatchSettings/CanyonPlatformB.txt /title=Platform@nadeolive\r\n\r\n[Trackmania2 Platform C]\r\n/game_settings=MatchSettings/CanyonPlatformC.txt /title=Platform@nadeolive\r\n\r\n[Trackmania2 Platform Custom]\r\n/game_settings=MatchSettings/CanyonPlatformCustom.txt /title=Platform@nadeolive', NULL, NULL, 'N', NULL, 'UserData/Config/dedicated_cfg.txt\r\nUserData/Maps/MatchSettings/TMCanyonCustom.txt\r\nUserData/Maps/MatchSettings/TMStadiumCustom.txt\r\nUserData/Maps/MatchSettings/TMValleyCustom.txt\r\nUserData/Maps/MatchSettings/CanyonPlatformCustom.txt', '[UserData/Config/dedicated_cfg.txt] xml\r\n<max_players>%slots%</max_players>\r\n<max_spectators>10</max_spectators>\r\n<enable_p2p_upload>false</enable_p2p_upload>\r\n<connection_uploadrate>2048</connection_uploadrate>\r\n<connection_downloadrate>4096</connection_downloadrate>\r\n<force_ip_address>%ip%</force_ip_address>\r\n<server_port>%port%</server_port>\r\n<server_p2p_port>%port2%</server_p2p_port>\r\n<bind_ip_address>%ip%</bind_ip_address>\r\n<xmlrpc_port>%port3%</xmlrpc_port>', NULL, 10, 3, 2350, 2351, 2352, NULL, NULL, 'N', ?, '', 'L', 'Y', 'N', NULL, NULL, NULL, NULL)");
$query->execute(array($row['resellerid']));
}
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='ut99' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'ut99', 'Unreal Tournament', '', 'ucc-bin', 'System', NULL, NULL, 12, 'DM-Codex.unr', './%binary% server', '[DM = default]\r\n%map%?Game=Botpack.DeathMatchPlus?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TDM]\r\n%map%?Game=Botpack.TeamGamePlus?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[CTF]\r\n%map%?Game=Botpack.CTFGame?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[LMS]\r\n%map%?Game=Botpack.LastManStanding?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[DOM]\r\n%map%?Game=Botpack.Domination?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[BT]\r\n%map%?Game=BunnyTrack.BunnyTrackGame?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[JB]\r\n%map%?Game=JailBreak.JailBreak?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[MH]\r\n%map%?Game=Monsterhunt.Monsterhunt?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TMH]\r\n%map%?Game=TeamMH.TeamMH?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[RA]\r\n%map%?Game=RocketArena.ArenaGame?MaxPlayers=%slots% -ini=UnrealTournament.ini -log=server.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir', NULL, NULL, 'N', NULL, 'ReadMe_WebAdmin_AdminPassword_ReDirect.txt', NULL, NULL, 10, 3, 7777, 7778, 7779, NULL, NULL, 'N', ?, 'ut', 'L', 'Y', 'N', NULL, NULL, NULL, NULL)");
$query->execute(array($row['resellerid']));
}
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='ut2004' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'ut2004', 'UT2004', '', 'ucc-bin', 'System', NULL, NULL, 12, 'DM-Rankin.ut2', './%binary% server', '[DM = default]\r\n%map%?Game=XGame.xDeathMatch?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TDM]\r\n%map%?Game=XGame.xTeamGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[CTF]\r\n%map%?Game=XGame.xCTFGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[iCTF-Clan]\r\n%map%?Game=XGame.InstagibCTF?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[iCTF-Public]\r\n%map%?Game=XGame.xCTFGame?Mutator=XGame.MutInstaGib?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[TAM]\r\n%map%?Game=3spnv3141.TeamArenaMaster?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[AM]\r\n%map%?Game=3spnv3141.ArenaMaster=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[Freon]\r\n%map%?Game=3SPNv3141.Freon?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[ONS]\r\n%map%?Game=Onslaught.ONSOnslaughtGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[LMS]\r\n%map%?Game=BonusPack.xLastManStandingGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[DDOM]\r\n%map%?Game=XGame.xDoubleDom?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[BR]\r\n%map%?Game=XGame.xBombingRun?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[vCTF]\r\n%map%?Game=XGame.xVehicleCTFGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[Mutant]\r\n%map%?Game=BonusPack.xMutantGame?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[SkaarjPack.Invasion]\r\n%map%?Game=SkaarjPack.Invasion?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[AS]\r\n%map%?Game=UT2K4Assault.ASGameInfo?MaxPlayers=%slots% -ini=UT2004.ini -log=UT2004.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir\r\n\r\n[Jailbreak]\r\n%map%?Game=Jailbreak.Jailbreak?MaxPlayers=%slots% -ini=UT2004_JB.ini -log=UT2004_JB.log -multihome=%ip% -port=%port% -queryport=%port2% -WebServerListenPort=%port3% -nohomedir', NULL, NULL, 'N', NULL, 'System/UT2004.ini\r\nSystem/XAdmin.ini\r\nReadMe_WebAdmin_AdminPassword_ReDirect.txt', '[System/UT2004.ini] ini\r\nListenPort=%port3%', NULL, 10, 3, 7777, 7778, 7779, NULL, NULL, 'N', ?, 'ut2004', 'L', 'Y', 'N', NULL, NULL, NULL, NULL)");
$query->execute(array($row['resellerid']));
}
$query = $sql->prepare("SELECT 1 FROM `servertypes` WHERE `shorten`='warsow' AND `resellerid`=? LIMIT 1");
$query->execute(array($row['resellerid']));
if ($query->rowCount() == 0) {
$query = $sql->prepare("INSERT INTO `servertypes` (`steamgame`, `appID`, `steamVersion`, `updates`, `shorten`, `description`, `type`, `gamebinary`, `binarydir`, `modfolder`, `fps`, `slots`, `map`, `cmd`, `modcmds`, `tic`, `qstat`, `gamemod`, `gamemod2`, `configs`, `configedit`, `qstatpassparam`, `portStep`, `portMax`, `portOne`, `portTwo`, `portThree`, `portFour`, `portFive`, `protected`, `resellerid`, `gameq`, `os`, `ftpAccess`, `ramLimited`, `downloadPath`, `protectedSaveCFGs`, `iptables`, `mapGroup`) VALUES ('N', NULL, NULL, 1, 'warsow', 'WarSow', '', 'wsw_server.x86_64', '', 'basewsw', NULL, 12, '', './%binary% +exec dedicated_server.cfg +set sv_maxclients %slots% +set sv_ip %ip% +set sv_port %port% +set sv_port6 %port%', '[Deathmatch]\r\n+set g_gametype \"dm\"\r\n\r\n[Team Deathmatch]\r\n+set g_gametype \"tdm\"\r\n\r\n[Team DMCTF]\r\n+set g_gametype \"tdm_ctf\"\r\n\r\n[Capture the Flag]\r\n+set g_gametype \"ctf\"\r\n\r\n[Clan Arena]\r\n+set g_gametype \"ca\"\r\n\r\n[Duel]\r\n+set g_gametype \"duel\"\r\n\r\n[Duel Arena]\r\n+set g_gametype \"da\"\r\n\r\n[DuelQuad]\r\n+set g_gametype \"duel_quad\"\r\n\r\n[FFA = default]\r\n+set g_gametype \"ffa\"\r\n\r\n[Mid Air]\r\n+set g_gametype \"midair\"\r\n\r\n[Race]\r\n+set g_gametype \"race\"\r\n\r\n[All Round]\r\n+set g_gametype \"allaround\"', NULL, NULL, 'N', NULL, 'basewsw/dedicated_server.cfg\r\nbasewsw/motd.cfg', '[basewsw/dedicated_autoexec.cfg] cfg\r\nsv_ip \"%ip%\"\r\nsv_port \"%port%\"\r\nsv_port6 \"%port%\"\r\nsv_maxclients \"%slots%\"', NULL, 10, 1, 44400, NULL, NULL, NULL, NULL, 'N', ?, 'warsow', 'L', 'Y', 'N', NULL, NULL, NULL, NULL);");
$query->execute(array($row['resellerid']));
}
// Loop to addons and add in case addons does not exist yet
foreach ($gameAddons as $addon) {
if (count($addon) == 10) {
$query2->execute(array($addon[':addon'],$row['resellerid']));
$addonID = $query2->fetchColumn();
if ($addonID < 1) {
$dependsID = 0;
if (strlen($addon[':depends'])) {
$query2->execute(array($addon[':depends'],$row['resellerid']));
$dependsID = $query2->fetchColumn();
}
$query3->execute(array($dependsID, $addon[':paddon'], $addon[':addon'], $addon[':type'], $addon[':folder'], $addon[':menudescription'], $addon[':configs'], $addon[':cmd'], $addon[':rmcmd'],$row['resellerid']));
$addonID = $sql->lastInsertId();
foreach ($addon[':supported'] as $supported) {
$query4->execute(array($supported,$row['resellerid']));
$query5->execute(array($addonID,$query4->fetchColumn(),$row['resellerid']));
}
}
}
}
}
// Migrate existing Images from qstat to GameQ
// Most accurate based on appID
$query = $sql->prepare("UPDATE `servertypes` SET `gameq`='css' WHERE `appID`=232330");
$query->execute();
@ -120,6 +211,10 @@ Unfortunately errors have slipped in 4.10. In addition the update revealed that
$query->execute();
$query = $sql->prepare("UPDATE `servertypes` SET `gameq`='killingfloor' WHERE `appID`=215360");
$query->execute();
$query = $sql->prepare("UPDATE `servertypes` SET `gameq`='zps' WHERE `appID`=17505");
$query->execute();
$query = $sql->prepare("UPDATE `servertypes` SET `gameq`='source' WHERE `appID`=17575");
$query->execute();
// Accurate, based on easy-wi/qstat query
$query = $sql->prepare("UPDATE `servertypes` SET `gameq`='minecraft' WHERE `qstat`='minecraft'");
@ -164,7 +259,7 @@ Unfortunately errors have slipped in 4.10. In addition the update revealed that
$query = $sql->prepare("UPDATE `servertypes` SET `gameq`='codwaw' WHERE `shorten`='codwaw' LIMIT 1");
$query->execute();
// DROP as not needed anymore
$query = $sql->prepare("DROP TABLE `qstatshorten`");
$query->execute();

View File

@ -64,7 +64,7 @@ include(EASYWIDIR . '/stuff/config.php');
$ewCfg['captcha'] = $captcha;
$ewCfg['title'] = $title;
$dbConnect['type'] = $databanktype;
$dbConnect['type'] = "mysql";
$dbConnect['host'] = $host;
$dbConnect['user'] = $user;
$dbConnect['pwd'] = $pwd;

View File

@ -38,7 +38,7 @@
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
if (!isset($admin_id) or !isset($reseller_id) or $main != 1 or $reseller_id != 0) {
if (!isset($displayToUser) and (!isset($admin_id) or !isset($reseller_id) or $main != 1 or $reseller_id != 0)) {
header('Location: admin.php');
die('No Acces');
}
@ -47,7 +47,6 @@ $query = "CREATE TABLE IF NOT EXISTS `addons` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`active` enum('Y','N') NOT NULL DEFAULT 'N',
`paddon` enum('Y','N') DEFAULT 'N',
`shorten` varchar(20) NOT NULL,
`addon` varchar(15) NOT NULL,
`type` enum('tool','map') DEFAULT 'tool',
`folder` varchar(255) DEFAULT NULL,

View File

@ -38,7 +38,7 @@
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
if (!isset($admin_id) or $main != 1 or $reseller_id != 0) {
if (!isset($displayToUser) and (!isset($admin_id) or $main != 1 or $reseller_id != 0)) {
header('Location: admin.php');
die('No acces');
}
@ -46,7 +46,6 @@ if (!isset($admin_id) or $main != 1 or $reseller_id != 0) {
$defined['addons'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
'paddon' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
'shorten' => array("Type"=>"varchar(20)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'addon' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'type' => array("Type"=>"enum('tool','map')","Null"=>"YES","Key"=>"","Default"=>"tool","Extra"=>""),
'folder' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
@ -1262,8 +1261,8 @@ foreach ($defined as $table => $t_p) {
$response->add($sqlStatement.'<br />');
}
}
if ($query->rowCount()==0) {
$response->add('<b>Error: no such Table: '.$table.'</b><br />');
if ($query->rowCount() == 0) {
$response->add('<b>Error: no such table: '.$table.'</b><br />');
} else {
$query = $sql->prepare("SHOW COLUMNS FROM `$table`");
$query->execute();
@ -1314,13 +1313,13 @@ foreach ($defined as $table => $t_p) {
}
$change[] = 'CHANGE `'.$key.'` `'.$key.'` '.$t_p[$key]['Type'] . ' ' . $NULL . ' ' . $DEFAULT.$AUTO_INCREMENT;
}
if (count($change)>0) {
if (count($change) > 0) {
$alter_query='ALTER TABLE `'.$table.'` '.implode(', ',$change);
$response->add('CHANGE: '.$alter_query.'<br />');
$alter = $sql->prepare($alter_query);
$alter->execute();
}
if (count($drop_key)>0) {
if (count($drop_key) > 0) {
$drop_query='ALTER TABLE `'.$table.'` '.implode(', ',$drop_key);
$response->add('DROP: '.$drop_query.'<br />');
$drop = $sql->prepare($drop_query);
@ -1354,19 +1353,19 @@ foreach ($defined as $table => $t_p) {
}
$add_keys[] = 'ADD COLUMN `'.$key.'` '.$t_p[$key]['Type'] . ' ' . $NULL . ' ' . $DEFAULT.$AFTER;
}
if (count($add_keys)>0) {
if (count($add_keys) > 0) {
$add_query='ALTER TABLE `'.$table.'` '.implode(', ',$add_keys);
$response->add('ADD: '.$add_query.'<br />');
$add = $sql->prepare($add_query);
$add->execute();
}
if (count($addIndex)>0) {
if (count($addIndex) > 0) {
$add_query='ALTER TABLE `'.$table.'` ADD INDEX(`'.implode('`),ADD INDEX(`',$addIndex).'`)';
$response->add('ADD: '.$add_query.'<br />');
$add = $sql->prepare($add_query);
$add->execute();
}
if (count($removeIndex)>0) {
if (count($removeIndex) > 0) {
$remove_query='ALTER TABLE `'.$table.'` DROP INDEX `'.implode('`,DROP INDEX `',$removeIndex).'`';
$response->add('ADD: '.$remove_query.'<br />');
$remove = $sql->prepare($remove_query);