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 | 'NewServer' => 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' => 'String', 'Caption' => 'Webové stránky', 'Default' => ''),
|
---|
57 | 'Type' => array('Type' => 'TServerType', 'Caption' => 'Typ', 'Default' => 0),
|
---|
58 | 'Database' => array('Type' => 'TDatabase', 'Caption' => 'Databáze', 'Default' => 0),
|
---|
59 | 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'),
|
---|
60 | ),
|
---|
61 | ),
|
---|
62 | 'EditServer' => 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 | //'TimeCreation' => array('Type' => 'DateTime', 'Caption' => 'Datum založení', 'Default' => 'NOW()'),
|
---|
74 | ),
|
---|
75 | ),
|
---|
76 | 'ServerList' => array(
|
---|
77 | 'Title' => 'Server',
|
---|
78 | 'Table' => '(SELECT `ClientVersion`.`Version`, `Server`.`Name`, `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 `ClientVersion` ON `ClientVersion`.`Id` = `Emulator`.`ClientVersion`) AS T',
|
---|
79 | 'Items' => array(
|
---|
80 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
81 | 'UserName' => array('Type' => 'String', 'Caption' => 'Správce', 'Default' => ''),
|
---|
82 | 'NetworkPortRealmd' => array('Type' => 'Integer', 'Caption' => 'Realmd port', 'Default' => ''),
|
---|
83 | 'Version' => array('Type' => 'Integer', 'Caption' => 'Verze', 'Default' => 0),
|
---|
84 | 'Online' => array('Type' => 'OnlineState', 'Caption' => 'Stav', 'Default' => 0),
|
---|
85 | 'CharacterOnlineCount' => array('Type' => 'Integer', 'Caption' => 'Hráčů online', 'Default' => 0),
|
---|
86 | 'AccountCount' => array('Type' => 'Integer', 'Caption' => 'Účtů', 'Default' => 0),
|
---|
87 | 'CharacterCount' => array('Type' => 'Integer', 'Caption' => 'Postav', 0),
|
---|
88 | ),
|
---|
89 | ),
|
---|
90 | 'EmulatorList' => array(
|
---|
91 | 'Title' => 'Emulátor',
|
---|
92 | 'Table' => '(SELECT `Emulator`.`Name`, `Emulator`.`Id`, `ClientVersion`.`Version` AS `ClientVersion`, `Emulator`.`Revision`, `Emulator`.`ScriptDev2Revision`, `Emulator`.`ScriptDev2PatchFileName`, `Emulator`.`CommitHash` FROM `Emulator` JOIN `ClientVersion` ON `ClientVersion`.`Id` = `Emulator`.`ClientVersion`) AS T',
|
---|
93 | 'Items' => array(
|
---|
94 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
95 | 'Revision' => array('Type' => 'Integer', 'Caption' => 'Revize', 'Default' => 0),
|
---|
96 | 'ClientVersion' => array('Type' => 'Integer', 'Caption' => 'Verze klienta', 'Default' => 0),
|
---|
97 | 'ScriptDev2Revision' => array('Type' => 'Integer', 'Caption' => 'Verze SD2', 'Default' => 0),
|
---|
98 | 'ScriptDev2PatchFileName' => array('Type' => 'String', 'Caption' => 'SD2 záplata', 'Default' => ''),
|
---|
99 | 'CommitHash' => array('Type' => 'String', 'Caption' => 'Commit HASH', 'Default' => ''),
|
---|
100 | ),
|
---|
101 | ),
|
---|
102 | 'EmulatorItem' => array(
|
---|
103 | 'Title' => 'Emulátor',
|
---|
104 | 'Table' => 'Emulator',
|
---|
105 | 'Items' => array(
|
---|
106 | 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
107 | 'Revision' => array('Type' => 'Integer', 'Caption' => 'Revize', 'Default' => 0),
|
---|
108 | //'ClientVersion' => array('Type' => 'PointerOneToOne', 'Caption' => 'Verze klienta', 'Default' => 0),
|
---|
109 | 'ScriptDev2Revision' => array('Type' => 'Integer', 'Caption' => 'Verze SD2', 'Default' => 0),
|
---|
110 | 'ScriptDev2PatchFileName' => array('Type' => 'String', 'Caption' => 'SD2 záplata', 'Default' => ''),
|
---|
111 | 'CommitHash' => array('Type' => 'String', 'Caption' => 'Commit HASH', 'Default' => ''),
|
---|
112 | ),
|
---|
113 | ),
|
---|
114 | );
|
---|
115 |
|
---|
116 | RegisterType('ServerType', 'Enumeration', array('Normální', 'PvP', 'RP', 'RPPvP'));
|
---|
117 | RegisterType('OnlineState', 'Enumeration', array('Neaktivní', 'Aktivní'));
|
---|
118 |
|
---|
119 | //RegisterType('Database', 'PointerOneToOne', array('Table' => 'Database', 'Id' => 'Id', 'Name' => 'CONCAT(Name, " ", Version, " r", Revision)'));
|
---|
120 |
|
---|
121 | ?>
|
---|