1 | <?php
|
---|
2 |
|
---|
3 | include('../registrace/reg_config.php');
|
---|
4 | /*
|
---|
5 | * Project Name: MiniManager for Mangos Server
|
---|
6 | * Date: 17.10.2006 inital version (0.0.1a)
|
---|
7 | * Author: Q.SA
|
---|
8 | * Copyright: Q.SA
|
---|
9 | * Email: *****
|
---|
10 | * License: GNU General Public License v2(GPL)
|
---|
11 | *
|
---|
12 | * Updated by Shnappie to work with 3 databases
|
---|
13 | * instead of 2 supported by version of Q.SA
|
---|
14 | */
|
---|
15 |
|
---|
16 | $version = "0.1.5b";
|
---|
17 |
|
---|
18 | //---- SQL Configuration ----
|
---|
19 |
|
---|
20 | /* SQL server type :
|
---|
21 | * "MySQL" - Mysql
|
---|
22 | * "PgSQL" - PostgreSQL
|
---|
23 | * "MySQLi" - MySQLi
|
---|
24 | * "SQLLite" - SQLLite
|
---|
25 | */
|
---|
26 | $db_type = "MySQL";
|
---|
27 |
|
---|
28 | $realm_db = Array(
|
---|
29 | 'addr' => "127.0.0.1:3306", //SQL server IP:port this realmd located on
|
---|
30 | 'user' => "mangos", //SQL server login this realmd located on
|
---|
31 | 'pass' => "mangos", //SQL server pass this realmd located on
|
---|
32 | 'name' => "realmd", //realmd DB name
|
---|
33 | 'encoding' => "utf8" //SQL connection encoding
|
---|
34 | );
|
---|
35 | $mangos_db = Array(
|
---|
36 | 1 => array( //position in array must represent realmd ID
|
---|
37 | 'id' => 1, //Realm ID
|
---|
38 | 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on
|
---|
39 | 'user' => "mangos", //SQL server login this DB located on
|
---|
40 | 'pass' => "mangos", //SQL server pass this DB located on
|
---|
41 | 'name' => "mangos", //World Database name
|
---|
42 | 'encoding' => "utf8", //SQL connection encoding
|
---|
43 | 'db_rev' => "UDB rev.0.8.2 rc 327" //db rev. used
|
---|
44 | ),
|
---|
45 | );
|
---|
46 |
|
---|
47 | $characters_db = Array(
|
---|
48 | 1 => array( //position in array must represent realmd ID
|
---|
49 | 'id' => 1, //Realm ID
|
---|
50 | 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on
|
---|
51 | 'user' => "mangos", //SQL server login this DB located on
|
---|
52 | 'pass' => "mangos", //SQL server pass this DB located on
|
---|
53 | 'name' => "characters", //Character Database name
|
---|
54 | 'encoding' => "utf8", //SQL connection encoding
|
---|
55 | ), //NOTE: THIS USER MUST HAVE AT LEAST READ ACCESS ON THE WORLD DATABASE
|
---|
56 | );
|
---|
57 |
|
---|
58 | //---- Game Server Configuration ----
|
---|
59 | $server = Array( //if more than one realm used, even if they are on same system new subarray MUST be added.
|
---|
60 | 1 => array( //position in array must represent realmd ID, same as in $mangos_db
|
---|
61 | 'addr' => "wow.zdechov.net", //Game Server IP - Must be external address
|
---|
62 | 'game_port' => 8085, //Game Server port
|
---|
63 | 'term_type' => "SSH", //Terminal type - ("SSH"/"Telnet")
|
---|
64 | 'term_port' => 22, //Terminal port
|
---|
65 | 'rev' => "rev.4752 SD166", //Mangos rev. used
|
---|
66 | 'both_factions' => true //Allow to see opponent faction characters. Affects only players.
|
---|
67 | ),
|
---|
68 | );
|
---|
69 | $sql_search_limit = 100; //limit number of maximum search results
|
---|
70 |
|
---|
71 | //---- Mail configuration ----
|
---|
72 | $admin_mail = "wow@zdechov.net"; //mail used for bug reports and other user contact
|
---|
73 |
|
---|
74 | $mailer_type = "smtp"; // type of mailer to be used("mail", "sendmail", "smtp")
|
---|
75 | $from_mail = "wow@zdechov.net"; //all emails will be sent from this email
|
---|
76 | //smtp server config
|
---|
77 | $smtp_cfg = array(
|
---|
78 | 'host' => "smtp.mail.com", //smtp server
|
---|
79 | 'port' => 25, //port
|
---|
80 | 'user' => "", //username - use only if auth. required
|
---|
81 | 'pass' => "" //pass
|
---|
82 | );
|
---|
83 |
|
---|
84 | //---- New account creation Options ----
|
---|
85 | if($AllowedRegistrationCountPerDay == 0) $disable_acc_creation = true; //true = Do not allow new accounts to be created
|
---|
86 | else $disable_acc_creation = false;
|
---|
87 | $send_mail_on_creation = false; //true = send mail at account creation.
|
---|
88 | $create_acc_locked = 0; //if set to '1' newly created accounts will be made locked to 0.0.0.0 IP disallowing user to login.
|
---|
89 | $validate_mail_host = false; //actualy make sure the mail host provided in email is valid/accessible host.
|
---|
90 | $limit_acc_per_ip = false; //true = limit to one account per IP
|
---|
91 | /* this option will limit account creation to users from selected net range(s).
|
---|
92 | * allow all => empty array
|
---|
93 | * e.g: "120-122.55.255-0.255-0", */
|
---|
94 | $valid_ip_mask = array(
|
---|
95 | //"255-0.255-0.255-0.255-0",
|
---|
96 | );
|
---|
97 |
|
---|
98 | //---- Layout configuration ----
|
---|
99 | $title = "WoW server Heroes of Fantasy";
|
---|
100 | $itemperpage = 25;
|
---|
101 |
|
---|
102 | $css_template = "Sulfur"; //file/folder name of css tamplate to use from templates directory by default
|
---|
103 | $language = "csCZ"; //default site language
|
---|
104 | $site_encoding = "iso-8859-2"; //default encoding
|
---|
105 |
|
---|
106 | //---- IRC Options ------
|
---|
107 | $irc_cfg = array(
|
---|
108 | 'server' => "irc.quakenet.org", //irc server
|
---|
109 | 'port' => 6667, //port
|
---|
110 | 'channel' => "#test" //channel
|
---|
111 | );
|
---|
112 |
|
---|
113 | //---- External Links ----
|
---|
114 | $item_datasite = "http://www.wowhead.com/?item=";
|
---|
115 | $quest_datasite = "http://www.wowhead.com/?quest=";
|
---|
116 | $creature_datasite = "http://www.wowhead.com/?npc=";
|
---|
117 | $spell_datasite = "http://www.wowhead.com/?spell=";
|
---|
118 | $skill_datasite = "http://www.wowhead.com/?spells=";
|
---|
119 | $go_datasite = "http://www.wowhead.com/?object=";
|
---|
120 | $get_icons_from_web = false; //wherever to get icons from the web in case they are missing in /img/INV dir.
|
---|
121 |
|
---|
122 | //---- Backup configuration ----
|
---|
123 | $backup_dir = "./backup"; //make sure webserver have the permission to write/read it!
|
---|
124 |
|
---|
125 | //---- HTTP Proxy Configuration ----
|
---|
126 | $proxy_cfg = Array(
|
---|
127 | 'addr' => "", //configure only if requierd
|
---|
128 | 'port' => 8080,
|
---|
129 | 'user' => "",
|
---|
130 | 'pass' => ""
|
---|
131 | );
|
---|
132 |
|
---|
133 | //menu content by user level
|
---|
134 | $menu_array = Array(
|
---|
135 | 4 => array("SAdmin" ,array(
|
---|
136 | array("index.php", 'main', array()),
|
---|
137 | array("user.php", 'users', array(
|
---|
138 | array("user.php", 'accounts'),
|
---|
139 | array("char_list.php", 'characters'),
|
---|
140 | array("guild.php", 'guilds'),
|
---|
141 | array("arenateam.php", 'arena_teams'),
|
---|
142 | array("honor.php", 'honor'),
|
---|
143 | array("banned.php", 'banned_list'),
|
---|
144 | array("cleanup.php", 'cleanup'),
|
---|
145 | array("stat.php", 'statistics'),
|
---|
146 | array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'),
|
---|
147 | ),
|
---|
148 | ),
|
---|
149 | array("#", 'tools', array(
|
---|
150 | array("ssh.php", 'ssh_line'),
|
---|
151 | array("run_patch.php", 'run_sql_patch'),
|
---|
152 | array("ticket.php", 'tickets'),
|
---|
153 | array("ahstats.php", 'auctionhouse'),
|
---|
154 | array("realm.php", 'realm'),
|
---|
155 | array("motd.php", 'add_motd'),
|
---|
156 | array("mail.php", 'mail'),
|
---|
157 | array("irc.php", 'irc'),
|
---|
158 | array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'),
|
---|
159 | ),
|
---|
160 | ),
|
---|
161 | array("#", 'db', array(
|
---|
162 | array("item.php", 'items'),
|
---|
163 | array("creature.php", 'creatures'),
|
---|
164 | array("game_object.php", 'game_object'),
|
---|
165 | array("tele.php", 'teleports'),
|
---|
166 | array("command.php", 'command'),
|
---|
167 | array("backup.php", 'backup'),
|
---|
168 | array("repair.php", 'repair'),
|
---|
169 | ),
|
---|
170 | ),
|
---|
171 | )
|
---|
172 | ),
|
---|
173 | 3 => array("Admin" ,array(
|
---|
174 | array("index.php", 'main', array()),
|
---|
175 | array("user.php", 'users', array(
|
---|
176 | array("user.php", 'accounts'),
|
---|
177 | array("char_list.php", 'characters'),
|
---|
178 | array("guild.php", 'guilds'),
|
---|
179 | array("arenateam.php", 'arena_teams'),
|
---|
180 | array("honor.php", 'honor'),
|
---|
181 | array("banned.php", 'banned_list'),
|
---|
182 | array("cleanup.php", 'cleanup'),
|
---|
183 | array("stat.php", 'statistics'),
|
---|
184 | array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'),
|
---|
185 | ),
|
---|
186 | ),
|
---|
187 | array("#", 'tools', array(
|
---|
188 | array("ssh.php", 'ssh_line'),
|
---|
189 | array("run_patch.php", 'run_sql_patch'),
|
---|
190 | array("ticket.php", 'tickets'),
|
---|
191 | array("ahstats.php", 'auctionhouse'),
|
---|
192 | array("realm.php", 'realm'),
|
---|
193 | array("motd.php", 'add_motd'),
|
---|
194 | array("mail.php", 'mail'),
|
---|
195 | array("irc.php", 'irc'),
|
---|
196 | array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'),
|
---|
197 | ),
|
---|
198 | ),
|
---|
199 | array("#", 'db', array(
|
---|
200 | array("item.php", 'items'),
|
---|
201 | array("creature.php", 'creatures'),
|
---|
202 | array("game_object.php", 'game_object'),
|
---|
203 | array("tele.php", 'teleports'),
|
---|
204 | array("command.php", 'command'),
|
---|
205 | array("backup.php", 'backup'),
|
---|
206 | array("repair.php", 'repair'),
|
---|
207 | ),
|
---|
208 | ),
|
---|
209 | )
|
---|
210 | ),
|
---|
211 | 2 => array("GameMaster" ,array(
|
---|
212 | array("index.php", 'main', array()),
|
---|
213 | array("user.php", 'users', array(
|
---|
214 | array("user.php", 'accounts'),
|
---|
215 | array("char_list.php", 'characters'),
|
---|
216 | array("guild.php", 'guilds'),
|
---|
217 | array("arenateam.php", 'arena_teams'),
|
---|
218 | array("honor.php", 'honor'),
|
---|
219 | array("banned.php", 'banned_list'),
|
---|
220 | array("stat.php", 'statistics'),
|
---|
221 | array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'),
|
---|
222 | ),
|
---|
223 | ),
|
---|
224 | array("#", 'tools', array(
|
---|
225 | array("ticket.php", 'tickets'),
|
---|
226 | array("ahstats.php", 'auctionhouse'),
|
---|
227 | array("motd.php", 'add_motd'),
|
---|
228 | array("mail.php", 'mail'),
|
---|
229 | array("irc.php", 'irc'),
|
---|
230 | array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'),
|
---|
231 | ),
|
---|
232 | ),
|
---|
233 | array("#", 'db', array(
|
---|
234 | array("item.php", 'items'),
|
---|
235 | array("creature.php", 'creatures'),
|
---|
236 | array("game_object.php", 'game_object'),
|
---|
237 | array("tele.php", 'teleports'),
|
---|
238 | array("command.php", 'command'),
|
---|
239 | ),
|
---|
240 | ),
|
---|
241 | )
|
---|
242 | ),
|
---|
243 | 1 => array("Moderator" ,array(
|
---|
244 | array("index.php", 'main', array()),
|
---|
245 | array("user.php", 'users', array(
|
---|
246 | array("user.php", 'accounts'),
|
---|
247 | array("char_list.php", 'characters'),
|
---|
248 | array("guild.php", 'guilds'),
|
---|
249 | array("arenateam.php", 'arena_teams'),
|
---|
250 | array("honor.php", 'honor'),
|
---|
251 | array("banned.php", 'banned_list'),
|
---|
252 | array("stat.php", 'statistics'),
|
---|
253 | array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'),
|
---|
254 | ),
|
---|
255 | ),
|
---|
256 | array("#", 'tools', array(
|
---|
257 | array("ticket.php", 'tickets'),
|
---|
258 | array("ahstats.php", 'auctionhouse'),
|
---|
259 | array("motd.php", 'add_motd'),
|
---|
260 | // array("mail.php", 'mail'),
|
---|
261 | array("irc.php", 'irc'),
|
---|
262 | array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'),
|
---|
263 | ),
|
---|
264 | ),
|
---|
265 | array("#", 'db', array(
|
---|
266 | array("item.php", 'items'),
|
---|
267 | array("creature.php", 'creatures'),
|
---|
268 | array("game_object.php", 'game_object'),
|
---|
269 | array("tele.php", 'teleports'),
|
---|
270 | array("command.php", 'command'),
|
---|
271 | ),
|
---|
272 | ),
|
---|
273 | )
|
---|
274 | ),
|
---|
275 | 0 => array("Player" ,array(
|
---|
276 | array("index.php", 'main', array()),
|
---|
277 | array("user.php", 'users', array(
|
---|
278 | array("arenateam.php", 'arena_teams'),
|
---|
279 | array("honor.php", 'honor'),
|
---|
280 | array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'),
|
---|
281 | array("ahstats.php", 'auctionhouse'),
|
---|
282 | ),
|
---|
283 | ),
|
---|
284 | array("#", 'tools', array(
|
---|
285 | array("irc.php", 'irc'),
|
---|
286 | array("command.php", 'command'),
|
---|
287 | array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'),
|
---|
288 | ),
|
---|
289 | ),
|
---|
290 | )
|
---|
291 | ),
|
---|
292 |
|
---|
293 | );
|
---|
294 |
|
---|
295 | $debug = false; //set to true if full php debugging requierd.
|
---|
296 | ?>
|
---|