source: trunk/test_server/scripts/config.dist.php@ 649

Last change on this file since 649 was 649, checked in by barny, 15 years ago

*Přidán minimanager pro test server

File size: 20.2 KB
Line 
1<?php
2
3
4//#############################################################################
5//
6// configuration note.
7//
8// Do not edit, move or delete this file.
9//
10// Option 1 (recommended)
11// Copy config.user.php as config.php.
12// Copy only the settings you want to change into config.php
13// Make changes there.
14//
15// Option 2
16// Copy this file as config.php,
17// Make changes there.
18
19
20//#############################################################################
21//---- Version Information ----
22
23$show_version['show'] = '1'; // 0 - Don't Show, 1 - Show Version, 2 - Show Version and SVN Revision
24$show_version['version'] = '0.15';
25$show_version['version_lvl'] = '-1'; // Minimum account level to show Version to, -1 is guest account
26$show_version['svnrev'] = '0'; // SVN Revision will be read from .svn folder, values here hold no meaning or effect
27$show_version['svnrev_lvl'] = '5'; // Minimum account level to show SVN Revision to.
28
29
30//#############################################################################
31//---- SQL Configuration ----
32//
33// SQL server type :
34// 'MySQL' - Mysql
35// 'PgSQL' - PostgreSQL
36// 'MySQLi' - MySQLi
37// 'SQLLite' - SQLLite
38
39$db_type = 'MySQL';
40
41// only Creature, Item and Game Object uses this setting, the rest uses $itemperpage.
42// $itemperpage setting is lower down at Layout configuration.
43$sql_search_limit = 100; // limit number of maximum search results
44
45$mmfpm_db['addr'] = '127.0.0.1:3306'; // SQL server IP:port this DB located on
46$mmfpm_db['user'] = 'root'; // SQL server login this DB located on
47$mmfpm_db['pass'] = '1'; // SQL server pass this DB located on
48$mmfpm_db['name'] = 'mmfpm'; // MiniManager DB name
49$mmfpm_db['encoding'] = 'utf8'; // SQL connection encoding
50
51$realm_db['addr'] = '127.0.0.1:3306'; // SQL server IP:port this realmd located on
52$realm_db['user'] = 'root'; // SQL server login this realmd located on
53$realm_db['pass'] = '1'; // SQL server pass this realmd located on
54$realm_db['name'] = 'realmd'; // realmd DB name
55$realm_db['encoding'] = 'utf8'; // SQL connection encoding
56
57 // position in array must represent realmd ID
58$world_db[1]['addr'] = '127.0.0.1:3306'; // SQL server IP:port this DB located on
59$world_db[1]['user'] = 'root'; // SQL server login this DB located on
60$world_db[1]['pass'] = '1'; // SQL server pass this DB located on
61$world_db[1]['name'] = 'mangos'; // World Database name, by default "mangos" for MaNGOS, "world" for Trinity
62$world_db[1]['encoding'] = 'utf8'; // SQL connection encoding
63
64 // position in array must represent realmd ID
65$characters_db[1]['addr'] = '127.0.0.1:3306'; // SQL server IP:port this DB located on
66$characters_db[1]['user'] = 'root'; // SQL server login this DB located on
67$characters_db[1]['pass'] = '1'; // SQL server pass this DB located on
68$characters_db[1]['name'] = 'characters'; // Character Database name
69$characters_db[1]['encoding'] = 'utf8'; // SQL connection encoding
70
71/* Sample Second Realm config
72 // position in array must represent realmd ID
73$world_db[2]['addr'] = '127.0.0.1:3306'; // SQL server IP:port this DB located on
74$world_db[2]['user'] = 'root'; // SQL server login this DB located on
75$world_db[2]['pass'] = '1'; // SQL server pass this DB located on
76$world_db[2]['name'] = 'mangos'; // World Database name, by default "mangos" for MaNGOS, "world" for Trinity
77$world_db[2]['encoding'] = 'utf8'; // SQL connection encoding
78 // position in array must represent realmd ID
79$characters_db[2]['addr'] = '127.0.0.1:3306'; // SQL server IP:port this DB located on
80$characters_db[2]['user'] = 'root'; // SQL server login this DB located on
81$characters_db[2]['pass'] = '1'; // SQL server pass this DB located on
82$characters_db[2]['name'] = 'characters'; // Character Database name
83$characters_db[2]['encoding'] = 'utf8'; // SQL connection encoding
84*/
85
86
87//#############################################################################
88//---- Game Server Configuration ----
89
90$server_type = 0; // 0=MaNGOS, 1=Trinity
91
92 // position in array must represent realmd ID, same as in $world_db
93$server[1]['addr'] = '127.0.0.1'; // Game Server IP, as seen by MiniManager, from your webhost
94$server[1]['addr_wan'] = '127.0.0.1'; // Game Server IP, as seen by clients - Must be external address
95$server[1]['game_port'] = 8085; // Game Server port
96$server[1]['term_type'] = 'SSH'; // Terminal type - ("SSH"/"Telnet")
97$server[1]['term_port'] = 22; // Terminal port
98$server[1]['telnet_port'] = 3443; // Telnet port - Telnet settins are needed for sending InGame Mail.
99$server[1]['telnet_user'] = 'USER'; // Telnet username, must be all CAPS
100$server[1]['telnet_pass'] = 'pass'; // Telnet password
101$server[1]['rev'] = 'rev. '; // MaNGOS rev. used (Trinity does not need this)
102$server[1]['both_factions'] = true; // Allow to see opponent faction characters. Affects only players.
103$server[1]['talent_rate'] = 1; // Talent rate set for this server, needed for talent point calculation
104
105/* Sample Second Realm config
106 // position in array must represent realmd ID, same as in $world_db
107$server[2]['addr'] = '127.0.0.1'; // Game Server IP, as seen by MiniManager, from your webhost
108$server[2]['addr_wan'] = '127.0.0.1'; // Game Server IP, as seen by clients - Must be external address
109$server[2]['game_port'] = 8085; // Game Server port
110$server[2]['term_type'] = 'SSH'; // Terminal type - ("SSH"/"Telnet")
111$server[2]['term_port'] = 22; // Terminal port
112$server[2]['telnet_port'] = 3443; // Telnet port - Telnet settins are needed for sending InGame Mail.
113$server[2]['telnet_user'] = 'USER'; // Telnet username, must be all CAPS
114$server[2]['telnet_pass'] = 'pass'; // Telnet password
115$server[2]['rev'] = 'rev. '; // MaNGOS rev. used (Trinity does not need this)
116$server[2]['both_factions'] = true; // Allow to see opponent faction characters. Affects only players.
117$server[2]['talent_rate'] = 1; // Talent rate set for this server, needed for talent point calculation
118*/
119
120
121//#############################################################################
122//---- Mail configuration ----
123
124$admin_mail = 'mail@mail.com'; // mail used for bug reports and other user contact
125$mailer_type = 'smtp'; // type of mailer to be used("mail", "sendmail", "smtp")
126$from_mail = 'mail@mail.com'; // all emails will be sent from this email
127
128//smtp server config
129$smtp_cfg['host'] = 'smtp.mail.com'; // smtp server
130$smtp_cfg['port'] = 25; // port
131$smtp_cfg['user'] = ''; // username - use only if auth. required
132$smtp_cfg['pass'] = ''; // pass
133
134
135//#############################################################################
136//---- IRC Options ------
137
138$irc_cfg['server'] = 'mangos.cjb.net'; // irc server
139$irc_cfg['port'] = 6667; // port
140$irc_cfg['channel'] = 'minimanager'; // channel
141
142
143//#############################################################################
144//---- HTTP Proxy Configuration ----
145// configure only if requierd
146
147$proxy_cfg['addr'] = '';
148$proxy_cfg['port'] = 80;
149$proxy_cfg['user'] = '';
150$proxy_cfg['pass'] = '';
151
152
153//#############################################################################
154//---- External Links ----
155
156$tt_lang = 'www';// wowhead tooltip language. choices are 'fr', 'de', 'es', 'ru' (for 'en' use www)
157$item_datasite = 'http://'.$tt_lang.'.wowhead.com/?item=';
158$quest_datasite = 'http://'.$tt_lang.'.wowhead.com/?quest=';
159$creature_datasite = 'http://'.$tt_lang.'.wowhead.com/?npc=';
160$spell_datasite = 'http://'.$tt_lang.'.wowhead.com/?spell=';
161$skill_datasite = 'http://'.$tt_lang.'.wowhead.com/?spells=';
162$go_datasite = 'http://'.$tt_lang.'.wowhead.com/?object=';
163$achievement_datasite = 'http://'.$tt_lang.'.wowhead.com/?achievement=';
164$talent_calculator_datasite = 'http://www.wowarmory.com/talent-calc.xml?cid=';
165
166$get_icons_from_web = false; // wherever to get icons from the web.
167$item_icons = 'img/icons'; // and this is where it will save to and get from.
168
169
170//#############################################################################
171//---- New account creation Options ----
172
173$disable_acc_creation = false; // true = Do not allow new accounts to be created
174$expansion_select = true; // true = Shows option to select expansion or classic. (false = no option, WOTLK enabled by default)
175$defaultoption = 2; // if the above is false then set what the default option will be (2 = WOTLK, 1 = TBC, 0 = Classic)
176$enable_captcha = false; // false = no security image check (enable for protection against 'bot' registrations)
177 // captcha needs php GD & FreeType Library support
178$send_mail_on_creation = false; // true = send mail at account creation.
179$create_acc_locked = 0; // if set to '1' newly created accounts will be made locked to registered IP, disallowing user to login from other IPs.
180$validate_mail_host = false; // actualy make sure the mail host provided in email is valid/accessible host.
181$limit_acc_per_ip = false; // true = limit to one account per IP
182$simple_register = false; // Sets the registration to a simple form. Name, Password, Expansion and Email.
183
184// this option will limit account creation to users from selected net range(s).
185// allow all => empty array
186// e.g: "120-122.55.255-0.255-0"
187
188$valid_ip_mask = array();
189/* Sample config, you may have more then 1
190$valid_ip_mask[0] = '255-0.255-0.255-0.255-0';
191$valid_ip_mask[1] = '120-122.55.255-0.255-0';
192$valid_ip_mask[2] = '190.50.33-16.255-0';
193*/
194
195
196//#############################################################################
197//---- Login Options ----
198
199$remember_me_checked = false; // "Remember Me" cookie check box default, false = unchecked
200
201$allow_anony = true; // allow anonymouse login, aka guest account
202$anony_uname = 'Guest'; // guest account name, this is purely cosmetic
203$anony_realm_id = 1; // guest account default realm
204
205// permission level for guest access is -1
206// set it like how you set any page permission level in menu config below, using the value -1
207// the "Guest" account exists only in MiniManager, not in your realms or server or database
208
209
210//#############################################################################
211//---- Layout configuration ----
212
213$title = 'MiniManager for Mangos/Trinity Server';
214$itemperpage = 25;
215$showcountryflag = true;
216
217$theme = 'Sulfur'; // file/folder name of theme to use from themes directory by default
218$language = 'english'; // default site language
219$timezone = 'UTC'; // default timezone (use your local timezone code) http://www.php.net/manual/en/timezones.php
220$gm_online = '1'; // display GM Characters in the Online Character List and Player Map (1 = enable, 0 = disable)
221$gm_online_count = '1'; // include GM Characters in the Online User Count and Player Map (1 = enable, 0 = disable)
222$motd_display_poster = '1'; // display the poserter info in the MOTD (1 = enable, 0 = disable)
223
224
225//#############################################################################
226//---- Player Map configuration ----
227
228// GM online options
229$map_gm_show_online_only_gmoff = 0; // show GM point only if in '.gm off' [1/0]
230$map_gm_show_online_only_gmvisible = 0; // show GM point only if in '.gm visible on' [1/0]
231$map_gm_add_suffix = 1; // add '{GM}' to name [1/0]
232$map_status_gm_include_all = 1; // include 'all GMs in game'/'who on map' [1/0]
233
234// status window options:
235$map_show_status = 1; // show server status window [1/0]
236$map_show_time = 1; // Show autoupdate timer 1 - on, 0 - off
237$map_time = 24; // Map autoupdate time (seconds), 0 - not update.
238
239// all times set in msec (do not set time < 1500 for show), 0 to disable.
240$map_time_to_show_uptime = 3000; // time to show uptime string
241$map_time_to_show_maxonline = 3000; // time to show max online
242$map_time_to_show_gmonline = 3000; // time to show GM online
243
244
245//#############################################################################
246//---- Active Translations
247// 0 = English/Default; 1 = Korean; 2 = French; 4 = German; 8 = Chinese; 16 = Taiwanese; 32 = Spanish; 64 = Mexican; 128 = Russian
248// Prototype for search options
249// Show only on language search option active translations entries (locales_XXX)
250// Example (use flag values by adding the values) : Korean (1) + German (4) + Russian (64) = 69
251// NOTE : Righ now only for Creature.php
252
253$locales_search_option = 0; // No search option, don't use locales_XXX for search
254$site_encoding = 'utf-8'; // used charset
255
256
257//#############################################################################
258//---- Backup configuration ----
259
260$backup_dir = 'backup'; // make sure webserver have the permission to write/read it!
261
262
263//#############################################################################
264//---- Account Levels ----
265
266$gm_level_arr = array
267(
268 -1 => array(-1, 'Guest', '',''),
269 0 => array( 0, 'Player', '',''),
270 1 => array( 1, 'Moderator', 'Mod',''),
271 2 => array( 2, 'Gamemaster', 'GM',''), // change the name and alias as required
272 3 => array( 3, 'BugTracker', 'BT',''),
273 4 => array( 4, 'Admin', 'Admin',''),
274 5 => array( 5, 'SysOp', 'SysOp',''),
275 6 => array( 6, 'Unknown', 'UnK',''), // Add additional levels as required
276);
277
278
279//#############################################################################
280// ---- Module and Security settings ----
281// -- Meaning of the columns : TARGET, LANG_TEXT, ( READ/VIEW , INSERT , UPDATE , DELETE ) min Permission GM LEVEL
282// -- Files excluded for this : Login.php, Pomm.php
283// -- - Both files don't use header.php, so we can't include this method.. but its not a big deal
284//
285// -- - Updates will follow
286// --
287// -- Example: array("item.php", 'items',0,1,2,3),
288// -- level 0 can only view and search,
289// -- level 1 can add new items but cannot edit,
290// -- level 2 can add and edit but cannot delete,
291// -- level 3 has full access
292//
293// -- Example: array("item.php", 'items',1,0,3,2),
294// -- this is tricky,
295// -- level 0 would have no access
296// -- level 1 can only search and browse
297// -- level 2 can delete items, but cannot add or edit
298// -- level 3 can add and edit, but cannot delete
299
300$menu_array = array
301(
302 array
303 ( 'index.php', 'main', array
304 (
305 array( 'ahstats.php','auctionhouse', 0,5,5,5),
306 array( 'arenateam.php', 'arena_teams', 0,5,5,5), // has own level security, but has yet to honor the new security system.
307 array( 'guild.php', 'guilds', 0,5,5,5),
308 array( 'honor.php', 'honor', 0,5,5,5),
309 array( 'top100.php', 'top100', 0,5,5,5),
310 array( 'forum.php', 'forums', 0,5,5,5), // has own level security, but has yet to honor the new security system.
311 array( 'stat.php', 'statistics', 0,5,5,5),
312 array('javascript:void(0);" onclick="window.open
313 (\'map/\', \'map\', \'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=no, resizable=no, copyhistory=1, width=966, height=732\')',
314 'player_map', 0,5,5,5), // this page has yet to honor the new security system, but it is a read only page
315 ),
316 ),
317 array
318 ( '#', 'tools', array
319 (
320 array( 'user.php', 'accounts', 0,5,5,5),
321 array( 'char_list.php', 'characters', 0,5,5,5),
322 array( 'command.php', 'command', 0,5,5,5),
323 array( 'mail.php', 'mail', 0,5,5,5),
324 array( 'ticket.php', 'tickets', 0,5,5,5),
325 array( 'banned.php','banned_list', 0,5,5,5),
326 array( 'cleanup.php', 'cleanup', 5,5,5,5),
327 array( 'irc.php', 'irc', 0,5,5,5),
328 array( 'bugreport.php', 'bugreport', 5,5,5,5),
329 ),
330 ),
331 array
332 ( '#', 'db', array
333 (
334 array( 'events.php', 'events', 0,5,5,5),
335 array( 'instances.php', 'instances', 0,5,5,5),
336 array( 'item.php', 'items', 0,5,5,5),
337 array( 'creature.php', 'creatures', 5,5,5,5), // this page has yet to honor the new security system, please use with caution.
338 array('game_object.php','game_object', 5,5,5,5), // this page has yet to honor the new security system, please use with caution.
339 array( 'tele.php', 'teleports', 0,5,5,5),
340 array( 'backup.php', 'backup', 5,5,5,5), // this page has yet to honor the new security system, please use with caution.
341 array( 'run_patch.php', 'run_patch', 0,5,5,5),
342 array( 'repair.php', 'repair', 0,5,5,5),
343 ),
344 ),
345 array
346 ( '#', 'system', array
347 (
348 array( 'realm.php', 'realm', 0,5,5,5),
349 array( 'motd.php', 'add_motd', 0,5,5,5),
350 array( 'spelld.php', 'spelld', 0,5,5,5),
351 array( 'message.php', 'message', 0,5,5,5),
352 array( 'ssh.php', 'ssh_line', 0,5,5,5),
353 ),
354 ),
355 array
356 ( '#', 'invisible', array
357 (
358 array('javascript:void(0);" onclick="window.open(\'./forum.html\', \'forum\')', 'forums',0,0,0,0),
359 array( 'char.php', 'character', 0,5,5,5),
360 array( 'char_inv.php', 'character', 0,5,5,5),
361 array( 'char_quest.php', 'character', 0,5,5,5),
362 array('char_achieve.php', 'character', 0,5,5,5),
363 array( 'char_skill.php', 'character', 0,5,5,5),
364 array( 'char_talent.php', 'character', 0,5,5,5),
365 array( 'char_rep.php', 'character', 0,5,5,5),
366 array( 'char_pets.php', 'character', 0,5,5,5),
367 array('char_friends.php', 'character', 0,5,5,5),
368 array( 'char_edit.php', 'char_edit', 0,5,5,5),
369 array( 'edit.php', 'myaccount', 0,5,5,5),
370 array( 'index.php', 'startpage',-1,5,5,5),
371 array( 'guildbank.php', 'guildbank', 0,5,5,5), // under development
372 array( 'realm.php', 'realm', 0,5,5,5), // this last one is special, if this is not here, users are unable to switch realms
373 ), // if READ is set to level 3, only level 3 and above can switch realms.
374 ), // INSERT, UPDATE and DELETE should have no effect, but best to keep it at 5.
375);
376
377
378$debug = 0; // 0 - no debug, only fatal errors.
379 // 1 - show total queries, mem usage, and only fatal errors.
380 // 2 - show total queries, mem usage, and all errors.
381 // 3 - show total queries, mem usage, all errors, and list of all global vars.
382 // 4 - show total queries, mem usage, all errors, list of all global vars, and values of all global vars.
383
384
385//#############################################################################
386//---- Under Development ----
387//
388// These are either place holders for future stuff
389// or stuff that are currently under development
390// do not set or change any of these in here or in config.php
391// unless you know what you are doing or were being told to do so
392// no support are given to these 'features'
393
394$developer_test_mode = false;
395
396$multi_realm_mode = true;
397
398
399?>
Note: See TracBrowser for help on using the repository browser.