root/dev/mods/apoc_fitting/settings.php @ 491

Revision 376, 6.8 KB (checked in by kovell, 11 years ago)

MyISAM can be selected again on install
duplicate item descriptions removed from install
alliance/corp/pilot optional installs now have external id and correct structure
alliance/corp/pilot/kill details can be selected by external id
corp/alliance/kill now have get and set methods for external ids
killlist has method to select only kills with an external id set
monthly views mod now shows clock and combined kills if selected
optimisations and fixes to killlists and toplists

Line 
1<?php
2require_once("common/admin/admin_menu.php");
3
4$colours=array("apoc", "apoc_ammo", "apoc_notext");
5
6if ($_POST['submit']) {
7    if($_POST['sammo']) {
8        config::set('apocfitting_showammo','1');
9    } else {
10        config::set('apocfitting_showammo','0');
11    }
12
13    if($_POST['sbox']) {
14        config::set('apocfitting_showbox','1');
15    } else {
16        config::set('apocfitting_showbox','0');
17    }
18
19    if($_POST['siskd']) {
20        config::set('apocfitting_showiskd','1');
21    } else {
22        config::set('apocfitting_showiskd','0');
23    }
24
25    if($_POST['sext']) {
26        config::set('apocfitting_showext','1');
27    } else {
28        config::set('apocfitting_showext','0');
29    }
30
31    if($_POST['seft']) {
32        config::set('apocfitting_showeft','1');
33    } else {
34        config::set('apocfitting_showeft','0');
35    }
36
37    if($_POST['seft2e']) {
38        config::set('apocfitting_showeft2eve','1');
39    } else {
40        config::set('apocfitting_showeft2eve','0');
41    }
42
43    if($_POST['mapmod']) {
44        config::set('apocfitting_mapmod','1');
45    } else {
46        config::set('apocfitting_mapmod','0');
47    }
48
49    if($_POST['sidemap']) {
50        config::set('apocfitting_sidemap','1');
51    } else {
52        config::set('apocfitting_sidemap','0');
53    }
54
55        config::set('apocfitting_colour',$_POST['panel_colour']);
56        config::set('apocfitting_themedir','panel');
57
58        if($_POST['lgreen']) {
59                config::set('apocfitting_dropped_colour','#006000');
60        } else {
61                config::set('apocfitting_dropped_colour','#004000');
62        }
63
64        $html .= "<b>Settings Saved</b><br /><br />";
65}
66
67$page = new Page("Settings - Apoc Fitting v2.0");
68$apocfitting_db = config::get('apocfitting_db');
69$showammo = config::get('apocfitting_showammo');
70$showbox = config::get('apocfitting_showbox');
71$showiskd = config::get('apocfitting_showiskd');
72$showext = config::get('apocfitting_showext');
73$showeft = config::get('apocfitting_showeft');
74$showeft2e = config::get('apocfitting_showeft2eve');
75$mapmod = config::get('apocfitting_mapmod');
76$sidemap = config::get('apocfitting_sidemap');
77$colour = config::get('apocfitting_colour');
78$d_colour = config::get('apocfitting_dropped_colour');
79
80// Apoc Fitting Options
81/*
82if (!$apocfitting_db) {
83    include_once './mods/apoc_fitting/sql.php';
84    if ($_GET['r'] == "createdb" && !$apocfitting_db) {
85        $apocfitting_db_rdy = createtable();
86        if ($apocfitting_db_rdy) {
87            config::set('apocfitting_db', '1');
88            $html .= "Table is created, you can enable the mod now.<br />";
89        } else {
90            $html .= "Table not created.<br />";
91        }
92    } else {
93            $html .= "Database changes for Apoc Fitting not processed, <b><a href=\"?a=settings_apoc_fitting&amp;r=createdb\">Setup Database</a></b>.<br />Already processed MySQL changes manually? <a href=\"?a=settings_apoc_fitting&amp;r=dbdone\">Hide Message</a>.<br /><br />";
94    }
95}
96
97if ($_GET['r'] == "dbdone") {
98    config::set('apocfitting_db', '1');
99}
100*/
101$html .= "<div>For further display options, configure the <a href='./?a=admin&amp;field=Appearance&amp;sub=Kill Details'>Kill Details</a> page.</div>";
102$html .= "<div class=block-header2>Apoc Fitting Options</div>";
103$html .= "<form id=options name=options method=post action=''>";
104$html .= "<table class=kb-table width=\"360\" border=\"0\" cellspacing=\"1\">";
105
106$html .= "<tr><td width=300><b>Panel Style:</b></td><td>";
107$html.='<select name="panel_colour">';
108
109foreach($colours as $select) {
110        $html .='<option value="'.$select.'"';
111        if($select == $colour) {
112            $html .= ' selected="selected"';
113        }
114        $html .='>'.$select.'</option>';
115}
116
117$html .="</select></td></tr>";
118
119$html .= "<tr><td><b>Show Ammo, charges, etc:</b></td><td><input type=checkbox name=sammo id=sammo";
120
121if ($showammo == '1') {
122    $html .= " checked=\"checked\"";
123}
124
125//$html .= "></td></tr></table><br>";
126$html .= "></td></tr>";
127
128$html .= "<tr><td><b>Show Total ISK Loss, Damage at top:</b></td><td><input type=checkbox name=siskd id=siskd";
129
130if ($showiskd == '1') {
131    $html .= " checked=\"checked\"";
132}
133
134$html .= "></td></tr>";
135
136$html .= "<tr><td><b>Show Top Damage Dealer/Final Blow Boxes:</b></td><td><input type=checkbox name=sbox id=sbox";
137
138if ($showbox == '1') {
139    $html .= " checked=\"checked\"";
140}
141
142$html .= "></td></tr>";
143
144$html .= "<tr><td><b>Show EXtended Fitting involved parties:</b></td><td><input type=checkbox name=sext id=sext";
145
146if ($showext == '1') {
147    $html .= " checked=\"checked\"";
148}
149
150$html .= "></td></tr>";
151
152$html .= "<tr><td><b>Show EFT Fitting (Menu Option):</b></td><td><input type=checkbox name=seft id=seft";
153
154if ($showeft == '1') {
155    $html .= " checked=\"checked\"";
156}
157
158$html .= "></td></tr>";
159
160$html .= "<tr><td><b>Use Lighter Green for Dropped Items:</b></td><td><input type=checkbox name=lgreen id=lgreen";
161
162if ($d_colour == '#006000') {
163    $html .= " checked=\"checked\"";
164}
165
166$html .= "></td></tr>";
167
168$html .="</table>";
169
170// Third Party Mod Compatibility Options
171
172$html .= "<div class=block-header2>Third-Party Mod Options</div>";
173//$html .= "<form id=options name=options method=post action=>";
174$html .= "<table class=kb-table width=\"360\" border=\"0\" cellspacing=\"1\">";
175
176$html .= "<tr><td><b>Show <a href='http://eve-id.net/forum/viewtopic.php?f=505&amp;t=14334' target='_blank'>EFT to EVE</a> (Menu Option):</b></td><td><input type=checkbox name=seft2e id=seft2e";
177
178if ($showeft2e == '1') {
179    $html .= " checked=\"checked\"";
180}
181
182$html .= "></td></tr>";
183
184$html .= "<tr><td><b><a href='http://eve-id.net/forum/viewtopic.php?f=505&amp;t=12920' target='_blank'>Map Mod</a> - Enable support:</b></td><td><input type=checkbox name=mapmod id=mapmod";
185
186if ($mapmod == '1') {
187    $html .= " checked=\"checked\"";
188}
189
190$html .= "></td></tr>";
191
192$html .= "<tr><td><b><a href='http://eve-id.net/forum/viewtopic.php?f=505&amp;t=12920' target='_blank'>Map Mod</a> - Remove Side Maps:</b></td><td><input type=checkbox name=sidemap id=sidemap";
193
194if ($sidemap == '1') {
195    $html .= " checked=\"checked\"";
196}
197
198$html .= "></td></tr>";
199
200$html .="</table>";
201$html .= "<table class=kb-subtable><tr><td width=120></td><td colspan=3 ><input type=submit name=submit value=\"Save\"></td></tr>";
202
203$html .= "</table><br/>";
204$html .= "</form>";
205
206$html.='<hr><div style="font-size: 10px;"><b><a href="http://eve-id.net/forum/viewtopic.php?f=505&amp;t=14696" style="color: lightgreen;" target="_blank">Apoc Fitting v2.0</a> (2009 - <a href="http://www.btcentral.org.uk/" style="color: lightgreen;" target="_blank">Ben Thomas</a>)</b><br />Modified by Hon Kovell for EDK 2.0.0.<br /><br />Special Thanks:<br /><br />Anne Sapyx (EXtended Fitting MOD v. 0.96)<br />Tribalize (MOD Apoch Fitting Screen v1.2)<br /><br />Without you, this would never have been made :)</div>';
207
208// Build Page
209
210$page->setContent($html);
211$page->addContext($menubox->generate());
212$page->generate();
213
214?>
Note: See TracBrowser for help on using the browser.