This repository has been archived by the owner on Jun 24, 2020. It is now read-only.
forked from TheNAF/naflm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
76 lines (58 loc) · 3.51 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**************************
* MySQL database settings
**************************/
$db_name = 'obblmdb';
$db_user = 'root';
$db_passwd = '';
$db_host = 'localhost';
/*************************
* Global settings
*************************/
/*
For help visit
- http://www.nicholasmr.dk/obblmwiki/index.php?title=Customization#Global_settings
- http://www.nicholasmr.dk/obblmwiki/index.php?title=Setup
For LOCAL settings, ie. per league settings, edit the localsettings/settings_<LEAGUE ID>.php files.
*/
$settings['site_name'] = 'My OBBLM portal'; // Site name.
$settings['default_visitor_league'] = 1; // ID of default league to show on front page when not logged in OR coach has not selected a home league.
$settings['default_leagues'] = array(); // When creating a coach the coach will automatically become a regular coach in leagues with these IDs.
$settings['hide_ES_extensions'] = false; // Default is false. Hides ES (Extra Stats) tables and ES references.
$settings['league_coordinator_email'] = '[email protected]'; // Sent "Request League" e-mails
$rules['bank_threshold'] = 0; // Default is 0 (banking rule disabled). Amount of team treasury in kilos (k) above which it will count towards the team value (TV). NOTE: 1) This feature is not yet available on a per-league basis, it works across all leagues! 2) When changing this value run "Re-install DB back-end procedures and functions" under "DB maintenance" from the "Admin -> Core panel" menu.
$rules['force_IR'] = false; // Default is false. Setting this to true will remove the ability of selecting 0-0 as 2D6 injury rolls (IR) in match reports (of all leagues).
/*
Game data - additional races
OBBLM uses LRB6 by default.
In addition you can include the custom races below. Simply change the keywords "false" to "true" (without apostrophes).
*/
$settings['custom_races'] = array(
'Bretonnia' => true,
'Daemons of khorne' => true,
'Apes of wrath' => true,
);
/*****************
* House ranking systems
*****************/
/*
Please visit
- http://www.nicholasmr.dk/obblmwiki/index.php?title=Customization#Global_settings
before you edit the below settings.
*/
// Rule #1
$hrs[1]['rule'] = array('-pts', '-td', '+smp'); // Sort teams against: most points, then most TDs and then least sportsmanship points.
$hrs[1]['points'] = '3*[won] + 2*[draw] + 1*[lost]'; // The definition of points.
// Rule #2
$hrs[2]['rule'] = array('-pts', '-ki', '-mvp'); // Sort teams against: most points, then most killed and then by most MVPs.
$hrs[2]['points'] = '2*[gf] - 1*[ga]'; // The definition of points.
// Rule #3
$hrs[3]['rule'] = array('-sdiff', '-smp'); // Sort teams against: largest score difference, then most sportsmanship points.
$hrs[3]['points'] = ''; // Points not used.
// Rule #4
$hrs[4]['rule'] = array('-pts', '-sdiff', '-tcdiff'); // Sort teams against: most points, then net TDs and then least sportsmanship points.
$hrs[4]['points'] = '6*[won] + 3*[draw] + 1*[lost]'; // The definition of points.
// Rule #4
$hrs[5]['rule'] = array('-pts', '-sdiff', '-tcdiff'); // Sort teams against: most points, then net TDs and then least sportsmanship points.
$hrs[5]['points'] = '3*[won] + 1*[draw] + 0*[lost]'; // The definition of points.
// Add you own rules here...