1 | <?php
|
---|
2 |
|
---|
3 | $FormClasses = array(
|
---|
4 | 'UserOptions' => array(
|
---|
5 | 'Title' => 'Základní nastavení',
|
---|
6 | 'Table' => 'User',
|
---|
7 | 'SubmitText' => 'Uložit',
|
---|
8 | 'Items' => array(
|
---|
9 | 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
10 | 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
|
---|
11 | 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
|
---|
12 | 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
|
---|
13 | //'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
|
---|
14 | //'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
|
---|
15 | ),
|
---|
16 | ),
|
---|
17 | 'UserRegister' => array(
|
---|
18 | 'Title' => 'Registrace uživatele',
|
---|
19 | 'SubmitText' => 'Registrovat',
|
---|
20 | 'Table' => 'User',
|
---|
21 | 'Items' => array(
|
---|
22 | 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
23 | 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
|
---|
24 | 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''),
|
---|
25 | 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
|
---|
26 | 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
|
---|
27 | //'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
|
---|
28 | //'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
|
---|
29 | ),
|
---|
30 | ),
|
---|
31 | 'PasswordRecovery' => array(
|
---|
32 | 'Title' => 'Obnova hesla',
|
---|
33 | 'SubmitText' => 'Obnovit',
|
---|
34 | 'Table' => '',
|
---|
35 | 'Items' => array(
|
---|
36 | 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
37 | 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
|
---|
38 | ),
|
---|
39 | ),
|
---|
40 | 'UserLogin' => array(
|
---|
41 | 'Title' => 'Přihlášení uživatele',
|
---|
42 | 'SubmitText' => 'Přihlásit',
|
---|
43 | 'Table' => '',
|
---|
44 | 'Items' => array(
|
---|
45 | 'Username' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
46 | 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
|
---|
47 | ),
|
---|
48 | ),
|
---|
49 | 'ServerCreate' => array(
|
---|
50 | 'Title' => 'Nový server',
|
---|
51 | 'Table' => 'Server',
|
---|
52 | 'SubmitText' => 'Registrovat',
|
---|
53 | 'Items' => array(
|
---|
54 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'),
|
---|
55 | 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),
|
---|
56 | 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Webové stránky', 'Default' => ''),
|
---|
57 | 'Type' => array('Type' => 'ServerType', 'Caption' => 'Typ', 'Default' => 0),
|
---|
58 | 'Database' => array('Type' => 'Database', 'Caption' => 'Databáze', 'Default' => 0),
|
---|
59 | 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'),
|
---|
60 | ),
|
---|
61 | ),
|
---|
62 | 'ServerEdit' => array(
|
---|
63 | 'Title' => 'Nastavení',
|
---|
64 | 'Table' => 'Server',
|
---|
65 | 'SubmitText' => 'Uložit',
|
---|
66 | 'Items' => array(
|
---|
67 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'),
|
---|
68 | 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),
|
---|
69 | 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Webové stránky', 'Default' => ''),
|
---|
70 | 'Type' => array('Type' => 'ServerType', 'Caption' => 'Typ', 'Default' => 0),
|
---|
71 | //'Database' => array('Type' => 'Database', 'Caption' => 'Databáze', 'Default' => 0),
|
---|
72 | 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'),
|
---|
73 | 'ServerId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0),
|
---|
74 | //'TimeCreation' => array('Type' => 'DateTime', 'Caption' => 'Datum založení', 'Default' => 'NOW()'),
|
---|
75 | ),
|
---|
76 | ),
|
---|
77 | 'ServerView' => array(
|
---|
78 | 'Title' => 'Nastavení',
|
---|
79 | 'Table' => 'Server',
|
---|
80 | 'SubmitText' => 'Uložit',
|
---|
81 | 'Items' => array(
|
---|
82 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'),
|
---|
83 | 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),
|
---|
84 | 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Webové stránky', 'Default' => ''),
|
---|
85 | 'Type' => array('Type' => 'ServerType', 'Caption' => 'Typ', 'Default' => 0),
|
---|
86 | 'Database' => array('Type' => 'Database', 'Caption' => 'Databáze', 'Default' => 0),
|
---|
87 | 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'),
|
---|
88 | 'ServerId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0),
|
---|
89 | 'TimeCreate' => array('Type' => 'DateTime', 'Caption' => 'Datum založení', 'Default' => 'NOW()'),
|
---|
90 | 'NetworkPortRealmd' => array('Type' => 'Integer', 'Caption' => 'Port realmd', 'Default' => ''),
|
---|
91 | ),
|
---|
92 | ),
|
---|
93 | 'ServerList' => array(
|
---|
94 | 'Title' => 'Server',
|
---|
95 | 'Table' => '(SELECT `Client`.`Version`, `Server`.`Name`, `Server`.`Homepage`, `Server`.`Id`, `Server`.`NetworkPortRealmd`, `User`.`Name` AS `UserName`, Server.Online, Server.CharacterOnlineCount, Server.CharacterCount, Server.AccountCount FROM `Server` JOIN `User` ON `User`.`Id` = `Server`.`User` JOIN `Database` ON `Database`.`Id` = `Server`.`Database` JOIN `Emulator` ON `Emulator`.`Id` = `Database`.`Emulator` JOIN `Client` ON `Client`.`Id` = `Emulator`.`Client`)',
|
---|
96 | 'Items' => array(
|
---|
97 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
98 | 'NetworkPortRealmd' => array('Type' => 'Integer', 'Caption' => 'Realmlist', 'Default' => ''),
|
---|
99 | 'Version' => array('Type' => 'Integer', 'Caption' => 'Verze', 'Default' => 0),
|
---|
100 | 'Online' => array('Type' => 'OnlineState', 'Caption' => 'Stav', 'Default' => 0),
|
---|
101 | 'CharacterOnlineCount' => array('Type' => 'Integer', 'Caption' => 'Hráčů online', 'Default' => 0),
|
---|
102 | 'AccountCount' => array('Type' => 'Integer', 'Caption' => 'Účtů', 'Default' => 0),
|
---|
103 | 'CharacterCount' => array('Type' => 'Integer', 'Caption' => 'Postav', 0),
|
---|
104 | 'UserName' => array('Type' => 'String', 'Caption' => 'Správce', 'Default' => ''),
|
---|
105 | ),
|
---|
106 | ),
|
---|
107 | 'EmulatorList' => array(
|
---|
108 | 'Title' => 'Emulátory',
|
---|
109 | 'Table' => '(SELECT `Emulator`.`Name`, `Emulator`.`Id`, `Client`.`Version` AS `ClientVersion`, `Emulator`.`Revision`, `Emulator`.`ScriptDev2Revision`, `Emulator`.`ScriptDev2PatchFileName`, `Emulator`.`Version`, `Emulator`.`CommitHash` FROM `Emulator` JOIN `Client` ON `Client`.`Id` = `Emulator`.`Client`)',
|
---|
110 | 'DefaultOrderColumn' => 'Revision',
|
---|
111 | 'DefaultOrderDirection' => 1,
|
---|
112 | 'Items' => array(
|
---|
113 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
114 | 'Version' => array('Type' => 'String', 'Caption' => 'Verze', 'Default' => ''),
|
---|
115 | 'Revision' => array('Type' => 'Integer', 'Caption' => 'Revize', 'Default' => 0),
|
---|
116 | 'ClientVersion' => array('Type' => 'Integer', 'Caption' => 'Verze klienta', 'Default' => 0),
|
---|
117 | 'ScriptDev2Revision' => array('Type' => 'Integer', 'Caption' => 'Verze SD2', 'Default' => 0),
|
---|
118 | //'ScriptDev2PatchFileName' => array('Type' => 'String', 'Caption' => 'SD2 záplata', 'Default' => ''),
|
---|
119 | //'CommitHash' => array('Type' => 'String', 'Caption' => 'Commit HASH', 'Default' => ''),
|
---|
120 | ),
|
---|
121 | ),
|
---|
122 | 'EmulatorItem' => array(
|
---|
123 | 'Title' => 'Emulátor',
|
---|
124 | 'Table' => 'Emulator',
|
---|
125 | 'Items' => array(
|
---|
126 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
127 | 'Version' => array('Type' => 'String', 'Caption' => 'Verze', 'Default' => ''),
|
---|
128 | 'Revision' => array('Type' => 'Integer', 'Caption' => 'Revize', 'Default' => 0),
|
---|
129 | 'Client' => array('Type' => 'Client', 'Caption' => 'Verze klienta', 'Default' => 0),
|
---|
130 | 'ScriptDev2Revision' => array('Type' => 'Integer', 'Caption' => 'Verze SD2', 'Default' => 0),
|
---|
131 | 'ScriptDev2PatchFileName' => array('Type' => 'String', 'Caption' => 'SD2 záplata', 'Default' => ''),
|
---|
132 | 'CommitHash' => array('Type' => 'String', 'Caption' => 'Commit HASH', 'Default' => ''),
|
---|
133 | ),
|
---|
134 | ),
|
---|
135 | 'BackupList' => array(
|
---|
136 | 'Title' => 'Zálohy',
|
---|
137 | 'Table' => '(SELECT * FROM `Backup`)',
|
---|
138 | 'Items' => array(
|
---|
139 | 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''),
|
---|
140 | 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => ''),
|
---|
141 | ),
|
---|
142 | ),
|
---|
143 | 'ClientList' => array(
|
---|
144 | 'Title' => 'Verze klienta',
|
---|
145 | 'Table' => 'Client',
|
---|
146 | 'DefaultOrderColumn' => 'BuildNumber',
|
---|
147 | 'DefaultOrderDirection' => 1,
|
---|
148 | 'Items' => array(
|
---|
149 | 'Version' => array('Type' => 'String', 'Caption' => 'Verze', 'Default' => ''),
|
---|
150 | 'BuildNumber' => array('Type' => 'Integer', 'Caption' => 'Číslo sestavení', 'Default' => ''),
|
---|
151 | 'ReleaseDate' => array('Type' => 'Date', 'Caption' => 'Datum vydání', 'Default' => ''),
|
---|
152 | 'Title' => array('Type' => 'String', 'Caption' => 'Titulek', 'Default' => ''),
|
---|
153 | ),
|
---|
154 | ),
|
---|
155 | 'DebugList' => array(
|
---|
156 | 'Title' => 'Restarty',
|
---|
157 | 'Table' => 'Debug',
|
---|
158 | 'Items' => array(
|
---|
159 | 'Time' => array('Type' => 'String', 'Caption' => 'Čas', 'Default' => ''),
|
---|
160 | 'MangosVersion' => array('Type' => 'String', 'Caption' => 'Verze emulátoru', 'Default' => ''),
|
---|
161 | 'DbVersion' => array('Type' => 'String', 'Caption' => 'Verze databáze', 'Default' => ''),
|
---|
162 | 'MaxPlayerCount' => array('Type' => 'Integer', 'Caption' => 'Max. online hráčů', 'Default' => ''),
|
---|
163 | 'Uptime' => array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => ''),
|
---|
164 | ),
|
---|
165 | ),
|
---|
166 | 'DebugItem' => array(
|
---|
167 | 'Title' => 'Záznam restartu',
|
---|
168 | 'Table' => 'Debug',
|
---|
169 | 'Items' => array(
|
---|
170 | 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''),
|
---|
171 | 'MangosVersion' => array('Type' => 'String', 'Caption' => 'Verze emulátoru', 'Default' => ''),
|
---|
172 | 'DbVersion' => array('Type' => 'String', 'Caption' => 'Verze databáze', 'Default' => ''),
|
---|
173 | 'MaxPlayerCount' => array('Type' => 'Integer', 'Caption' => 'Max. online hráčů', 'Default' => ''),
|
---|
174 | 'Uptime' => array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => ''),
|
---|
175 | ),
|
---|
176 | ),
|
---|
177 | 'GameAccountNew' => array(
|
---|
178 | 'Title' => 'Vytvoření nového herního účtu',
|
---|
179 | 'Table' => '',
|
---|
180 | 'Items' => array(
|
---|
181 | 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
182 | 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
|
---|
183 | 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''),
|
---|
184 | 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
|
---|
185 | 'Expansion' => array('Type' => 'ServerExpansion', 'Caption' => 'Rozšíření', 'Default' => 2),
|
---|
186 | 'ServerId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0),
|
---|
187 | ),
|
---|
188 | ),
|
---|
189 | 'TaskList' => array(
|
---|
190 | 'Title' => 'Seznam úloh',
|
---|
191 | 'Table' => 'Task',
|
---|
192 | 'DefaultOrderColumn' => 'TimeCreate',
|
---|
193 | 'DefaultOrderDirection' => 1,
|
---|
194 | 'Items' => array(
|
---|
195 | 'TimeCreate' => array('Type' => 'DateTime', 'Caption' => 'Čas vytvoření', 'Default' => ''),
|
---|
196 | 'Title' => array('Type' => 'String', 'Caption' => 'Akce', 'Default' => ''),
|
---|
197 | 'State' => array('Type' => 'TaskState', 'Caption' => 'Stav', 'Default' => ''),
|
---|
198 | 'Duration' => array('Type' => 'String', 'Caption' => 'Trvání', 'Default' => ''),
|
---|
199 | ),
|
---|
200 | ),
|
---|
201 | 'News' => array(
|
---|
202 | 'Title' => 'Aktualita',
|
---|
203 | 'Table' => 'News',
|
---|
204 | 'Items' => array(
|
---|
205 | 'Title' => array('Type' => 'String', 'Caption' => 'Titulek', 'Default' => ''),
|
---|
206 | 'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''),
|
---|
207 | ),
|
---|
208 | ),
|
---|
209 | 'ServerSettingDetailed' => array(
|
---|
210 | 'Title' => 'Podrobné nastavení serveru',
|
---|
211 | 'Table' => '',
|
---|
212 | 'Items' => array(
|
---|
213 | 'ServerId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0),
|
---|
214 | 'SkipCinematics' => array('Type' => 'SkipCinematics', 'Caption' => 'Zobrazovat úvodní video', 'Default' => ''),
|
---|
215 | 'StartPlayerLevel' => array('Type' => 'Integer', 'Caption' => 'Počáteční úroveň hráčů', 'Default' => 1),
|
---|
216 | 'MaxPlayerLevel' => array('Type' => 'Integer', 'Caption' => 'Max. úroveň hráčů', 'Default' => 80),
|
---|
217 | 'StartHeroicPlayerLevel' => array('Type' => 'Integer', 'Caption' => 'Počáteční úroveň hrdinských postav', 'Default' => 55),
|
---|
218 | 'StartPlayerMoney' => array('Type' => 'Integer', 'Caption' => 'Počáteční množství peněz', 'Default' => 0),
|
---|
219 | 'StartHonorPoints' => array('Type' => 'Integer', 'Caption' => 'Počáteční počet bodů cti', 'Default' => 0),
|
---|
220 | 'MaxHonorPoints' => array('Type' => 'Integer', 'Caption' => 'Max. počet bodů cti', 'Default' => 75000),
|
---|
221 | 'StartArenaPoints' => array('Type' => 'Integer', 'Caption' => 'Počáteční počet bodů arén', 'Default' => 0),
|
---|
222 | 'MaxArenaPoints' => array('Type' => 'Integer', 'Caption' => 'Max. počet bodů arén', 'Default' => 5000),
|
---|
223 | 'MaxArenaPoints' => array('Type' => 'Integer', 'Caption' => 'Max. počet bodů arén', 'Default' => 5000),
|
---|
224 | 'InstantLogout' => array('Type' => 'SecurityLevel', 'Caption' => 'Povolit okamžitého odhlášení', 'Default' => 1),
|
---|
225 | 'DisableWaterBreath' => array('Type' => 'SecurityLevel', 'Caption' => 'Zakázat dýchání pod vodou', 'Default' => 1),
|
---|
226 | 'AllFlightPaths' => array('Type' => 'Boolean', 'Caption' => 'Povoleny všechny létací cesty', 'Default' => 0),
|
---|
227 | 'AlwaysMaxSkillForLevel' => array('Type' => 'Boolean', 'Caption' => 'Vždy max. dovednost na úroveň', 'Default' => 0),
|
---|
228 | 'ActivateWeather' => array('Type' => 'Boolean', 'Caption' => 'Aktivní počasí', 'Default' => 1),
|
---|
229 | 'CastUnstuck' => array('Type' => 'Boolean', 'Caption' => 'Povolit odblokovací kouzlo pomocí .start', 'Default' => 1),
|
---|
230 | 'MinPetitionSigns' => array('Type' => 'Integer', 'Caption' => 'Min. počet podpisů k zápisu spolku', 'Default' => 9),
|
---|
231 | 'MaxGroupXPDistance' => array('Type' => 'Integer', 'Caption' => 'Max. rozdíl XP ve skupině', 'Default' => 74),
|
---|
232 | 'MailDeliveryDelay' => array('Type' => 'Integer', 'Caption' => 'Zpoždění doručení pošty', 'Default' => 3600),
|
---|
233 | 'Event.Announce' => array('Type' => 'Boolean', 'Caption' => 'Ohlašování událostí', 'Default' => 0),
|
---|
234 | 'AllowTwoSide.Accounts' => array('Type' => 'Boolean', 'Caption' => 'Povolit účty s postavami obou stran', 'Default' => 0),
|
---|
235 | 'AllowTwoSide.Interaction.Chat' => array('Type' => 'Boolean', 'Caption' => 'Povolit komunikaci mezi stranami', 'Default' => 0),
|
---|
236 | 'AllowTwoSide.Interaction.Channel' => array('Type' => 'Boolean', 'Caption' => 'Povolit kanály mezi stranami', 'Default' => 0),
|
---|
237 | 'AllowTwoSide.WhoList' => array('Type' => 'Boolean', 'Caption' => 'Povolit obě strany v seznamu přítomných', 'Default' => 0),
|
---|
238 | ),
|
---|
239 | ),
|
---|
240 | );
|
---|
241 |
|
---|
242 | RegisterType('YesNo', 'Enumeration', array('Ano', 'Ne'));
|
---|
243 | RegisterType('NoYes', 'Enumeration', array('Ne', 'Ano'));
|
---|
244 | RegisterType('SecurityLevel', 'Enumeration', array('Hráči', 'Moderátoři', 'GM', 'Administrátoři', 'Nikdo'));
|
---|
245 | RegisterType('SkipCinematics', 'Enumeration', array('Ukázat vždy', 'Ukázat pouze pro první postavu rasy', 'Neukazovat vůbec'));
|
---|
246 | RegisterType('TaskState', 'Enumeration', array('Čekající', 'Běžící', 'Dokončeno'));
|
---|
247 | RegisterType('ServerExpansion', 'Enumeration', array('Classic', 'The Burning Crusade', 'Wrath of The Lich King'));
|
---|
248 | RegisterType('ServerType', 'Enumeration', array('Normální', 'PvP', 'RP', 'RPPvP'));
|
---|
249 | RegisterType('OnlineState', 'Enumeration', array('Neaktivní', 'Aktivní'));
|
---|
250 | RegisterType('Database', 'PointerOneToOne', array('Table' => 'Database', 'Id' => 'Id', 'Name' => 'CONCAT(Name, " ", Version, " r", Revision)'));
|
---|
251 | RegisterType('Client', 'PointerOneToOne', array('Table' => 'Client', 'Id' => 'Id', 'Name' => 'Version'));
|
---|
252 |
|
---|
253 | ?>
|
---|