-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfull.sql
More file actions
538 lines (464 loc) · 19.1 KB
/
Copy pathfull.sql
File metadata and controls
538 lines (464 loc) · 19.1 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
-- SWIFT Panel Database
-- Version 1.6.1
-- 8/17/2009d
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
DROP TABLE IF EXISTS `admin`;
CREATE TABLE IF NOT EXISTS `admin` (
`adminid` int(10) unsigned NOT NULL auto_increment,
`username` text NOT NULL,
`password` text NOT NULL,
`firstname` text NOT NULL,
`lastname` text NOT NULL,
`email` text NOT NULL,
`access` text NOT NULL,
`notes` text NOT NULL,
`status` text NOT NULL,
`lastlogin` text NOT NULL,
`lastip` text NOT NULL,
`lasthost` text NOT NULL,
`totp` varchar(64) NOT NULL default '',
`totp_recovery` text NOT NULL,
PRIMARY KEY (`adminid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`adminid`, `username`, `password`, `firstname`, `lastname`, `email`, `access`, `notes`, `status`, `lastlogin`, `lastip`, `lasthost`) VALUES
(1, 'admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 'Admin', 'Account', 'user@example.com', 'Super', 'Check out the forums at www.SwiftPanel.com!\r\nRead manuals on how to setup remote boxes & install game servers in the forums.\r\nDon''t forget to setup the Cron Job. Go to Cron Settings under Configuration.', 'Active', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `box`
--
DROP TABLE IF EXISTS `box`;
CREATE TABLE IF NOT EXISTS `box` (
`boxid` int(10) unsigned NOT NULL auto_increment,
`name` text NOT NULL,
`location` text NOT NULL,
`ip` text NOT NULL,
`login` text NOT NULL,
`password` text NOT NULL,
`ftpport` text NOT NULL,
`sshport` text NOT NULL,
`ostype` text NOT NULL,
`cost` text NOT NULL,
`passive` text NOT NULL,
`notes` text NOT NULL,
`ftp` text NOT NULL,
`ssh` text NOT NULL,
`load` text NOT NULL,
`idle` text NOT NULL,
PRIMARY KEY (`boxid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `box`
--
-- --------------------------------------------------------
--
-- Table structure for table `client`
--
DROP TABLE IF EXISTS `client`;
CREATE TABLE IF NOT EXISTS `client` (
`clientid` int(10) unsigned NOT NULL auto_increment,
`email` text NOT NULL,
`password` text NOT NULL,
`firstname` text NOT NULL,
`lastname` text NOT NULL,
`company` text NOT NULL,
`address1` text NOT NULL,
`address2` text NOT NULL,
`city` text NOT NULL,
`state` text NOT NULL,
`postcode` text NOT NULL,
`country` text NOT NULL,
`phone` text NOT NULL,
`notes` text NOT NULL,
`status` text NOT NULL,
`lastlogin` datetime NOT NULL,
`lastip` text NOT NULL,
`lasthost` text NOT NULL,
`totp` varchar(64) NOT NULL default '',
`totp_recovery` text NOT NULL,
`created` date NOT NULL,
PRIMARY KEY (`clientid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `client`
--
-- --------------------------------------------------------
--
-- Table structure for table `config`
--
DROP TABLE IF EXISTS `config`;
CREATE TABLE IF NOT EXISTS `config` (
`setting` varchar(255) NOT NULL,
`value` text NOT NULL,
KEY `setting` (`setting`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `clientdatabase`
--
CREATE TABLE IF NOT EXISTS `clientdatabase` (
`dbid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`dbname` varchar(64) NOT NULL,
`dbuser` varchar(32) NOT NULL,
`dbpass` text NOT NULL,
`dbhost` varchar(64) NOT NULL default '%',
`maxsize` int(10) unsigned NOT NULL default '0',
`disksize` decimal(12,2) NOT NULL default '0.00',
`created` datetime default NULL,
PRIMARY KEY (`dbid`),
UNIQUE KEY `dbname` (`dbname`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `announcement`
--
CREATE TABLE IF NOT EXISTS `announcement` (
`annid` int(10) unsigned NOT NULL auto_increment,
`title` text NOT NULL,
`body` text NOT NULL,
`active` text NOT NULL,
`adminname` text NOT NULL,
`created` datetime default NULL,
PRIMARY KEY (`annid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `schedule`
--
CREATE TABLE IF NOT EXISTS `schedule` (
`schedid` int(10) unsigned NOT NULL auto_increment,
`serverid` int(10) unsigned NOT NULL,
`clientid` int(10) unsigned NOT NULL,
`label` text NOT NULL,
`action` varchar(16) NOT NULL,
`command` text NOT NULL,
`freq` varchar(10) NOT NULL,
`at_minute` tinyint(3) unsigned NOT NULL default '0',
`at_hour` tinyint(3) unsigned NOT NULL default '0',
`dow` tinyint(3) unsigned NOT NULL default '0',
`enabled` char(1) NOT NULL default '1',
`lastrun` datetime default NULL,
`nextrun` datetime default NULL,
PRIMARY KEY (`schedid`),
KEY `due` (`enabled`,`nextrun`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `backup`
--
CREATE TABLE IF NOT EXISTS `backup` (
`backupid` int(10) unsigned NOT NULL auto_increment,
`serverid` int(10) unsigned NOT NULL,
`clientid` int(10) unsigned NOT NULL,
`name` text NOT NULL,
`filename` varchar(128) NOT NULL,
`sizebytes` bigint(20) unsigned NOT NULL default '0',
`status` varchar(12) NOT NULL default 'done',
`created` datetime default NULL,
PRIMARY KEY (`backupid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for tables `ticket` / `ticketpost`
--
CREATE TABLE IF NOT EXISTS `ticket` (
`ticketid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`subject` text NOT NULL,
`status` varchar(10) NOT NULL default 'open',
`priority` varchar(8) NOT NULL default 'normal',
`created` datetime default NULL,
`updated` datetime default NULL,
PRIMARY KEY (`ticketid`),
KEY `clientid` (`clientid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `ticketpost` (
`postid` int(10) unsigned NOT NULL auto_increment,
`ticketid` int(10) unsigned NOT NULL,
`author` varchar(8) NOT NULL default 'client',
`name` text NOT NULL,
`body` text NOT NULL,
`created` datetime default NULL,
PRIMARY KEY (`postid`),
KEY `ticketid` (`ticketid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `serverstat` (player-count history for sparklines)
--
CREATE TABLE IF NOT EXISTS `serverstat` (
`statid` int(10) unsigned NOT NULL auto_increment,
`serverid` int(10) unsigned NOT NULL,
`ts` datetime NOT NULL,
`players` smallint(5) unsigned NOT NULL default '0',
`maxplayers` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`statid`),
KEY `srv_ts` (`serverid`,`ts`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `apikey`
--
CREATE TABLE IF NOT EXISTS `apikey` (
`keyid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`label` text NOT NULL,
`tokenhash` char(64) NOT NULL,
`prefix` varchar(12) NOT NULL,
`readonly` char(1) NOT NULL default '1',
`lastused` datetime default NULL,
`created` datetime default NULL,
PRIMARY KEY (`keyid`),
KEY `tokenhash` (`tokenhash`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `subuser` (server sharing)
--
CREATE TABLE IF NOT EXISTS `subuser` (
`subid` int(10) unsigned NOT NULL auto_increment,
`serverid` int(10) unsigned NOT NULL,
`ownerid` int(10) unsigned NOT NULL,
`subclientid` int(10) unsigned NOT NULL default '0',
`subemail` text NOT NULL,
`created` datetime default NULL,
PRIMARY KEY (`subid`),
KEY `serverid` (`serverid`),
KEY `subclientid` (`subclientid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `loginlog`
--
CREATE TABLE IF NOT EXISTS `loginlog` (
`logid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`ip` varchar(45) NOT NULL,
`agent` varchar(255) NOT NULL,
`method` varchar(10) NOT NULL default 'password',
`ts` datetime NOT NULL,
PRIMARY KEY (`logid`),
KEY `clientid` (`clientid`,`ts`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `notification`
--
CREATE TABLE IF NOT EXISTS `notification` (
`notifid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`kind` varchar(12) NOT NULL default 'system',
`title` text NOT NULL,
`body` text NOT NULL,
`url` varchar(255) NOT NULL default '',
`seen` char(1) NOT NULL default '0',
`created` datetime default NULL,
PRIMARY KEY (`notifid`),
KEY `client_seen` (`clientid`,`seen`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `config`
--
INSERT INTO `config` (`setting`, `value`) VALUES
('lastcronrun', 'Never'),
('panelname', 'Swift Panel'),
('systemurl', 'http://www.example.com/'),
('key', ''),
('panelversion', '1.6.1'),
('template', 'bootstrap'),
('country', 'US'),
('clientdb_enabled', '0'),
('clientdb_max', '2'),
('clientdb_maxsize', '200'),
('clientdb_host', '%'),
('clientdb_pma', '');
-- --------------------------------------------------------
--
-- Table structure for table `emailtemp`
--
DROP TABLE IF EXISTS `emailtemp`;
CREATE TABLE IF NOT EXISTS `emailtemp` (
`emailtempid` int(10) NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL,
`bcc` text NOT NULL,
`subject` text NOT NULL,
`template` text NOT NULL,
PRIMARY KEY (`emailtempid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `emailtemp`
--
INSERT INTO `emailtemp` (`emailtempid`, `name`, `email`, `bcc`, `subject`, `template`) VALUES
(1, 'Your Company', 'user@example.com', '', 'Game Panel Account Information', 'Dear {firstname} {lastname},\r\n\r\nHere is your account login details:\r\n\r\nEmail Address: {email}\r\nPassword: {password}\r\n\r\nGame Panel Link: {clientarealink}\r\n\r\nYour Company\r\nwww.changeme.com');
-- --------------------------------------------------------
--
-- Table structure for table `game`
--
DROP TABLE IF EXISTS `game`;
CREATE TABLE IF NOT EXISTS `game` (
`gameid` int(10) unsigned NOT NULL auto_increment,
`name` text NOT NULL,
`game` text NOT NULL,
`query` text NOT NULL,
`priority` text NOT NULL,
`slots` text NOT NULL,
`type` text NOT NULL,
`cfg1name` text NOT NULL,
`cfg1` text NOT NULL,
`cfg1edit` text NOT NULL,
`cfg2name` text NOT NULL,
`cfg2` text NOT NULL,
`cfg2edit` text NOT NULL,
`cfg3name` text NOT NULL,
`cfg3` text NOT NULL,
`cfg3edit` text NOT NULL,
`cfg4name` text NOT NULL,
`cfg4` text NOT NULL,
`cfg4edit` text NOT NULL,
`cfg5name` text NOT NULL,
`cfg5` text NOT NULL,
`cfg5edit` text NOT NULL,
`cfg6name` text NOT NULL,
`cfg6` text NOT NULL,
`cfg6edit` text NOT NULL,
`cfg7name` text NOT NULL,
`cfg7` text NOT NULL,
`cfg7edit` text NOT NULL,
`cfg8name` text NOT NULL,
`cfg8` text NOT NULL,
`cfg8edit` text NOT NULL,
`startline` text NOT NULL,
`gamedir` text NOT NULL,
`port` text NOT NULL,
`status` text NOT NULL,
`qryport` text NOT NULL,
PRIMARY KEY (`gameid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `game`
--
INSERT INTO `game` (`gameid`, `name`, `game`, `query`, `priority`, `slots`, `type`, `cfg1name`, `cfg1`, `cfg1edit`, `cfg2name`, `cfg2`, `cfg2edit`, `cfg3name`, `cfg3`, `cfg3edit`, `cfg4name`, `cfg4`, `cfg4edit`, `cfg5name`, `cfg5`, `cfg5edit`, `cfg6name`, `cfg6`, `cfg6edit`, `cfg7name`, `cfg7`, `cfg7edit`, `cfg8name`, `cfg8`, `cfg8edit`, `startline`, `gamedir`, `port`, `status`) VALUES
(1, 'CSS Server', 'Counter-Strike: Source', 'valve', 'None', '16', 'Public', 'Tick Rate', '66', '', 'FPS Max', '300', '', 'Map', 'de_dust2', '', 'Server Config', 'server.cfg', '', 'TV Enable', '1', '', 'TV Max Clients', '15', '', 'TV Port', '27020', '', '', '', '', './srcds_run -game cstrike -ip {ip} -port {port} -maxplayers {slots} -tickrate {cfg1} +fps_max {cfg2} +map {cfg3} +servercfgfile {cfg4} +tv_enable {cfg5} +tv_maxclients {cfg6} +tv_port {cfg7} -autoupdate', '/home/gamefiles/css', '27015', 'Active'),
(2, 'CS Server', 'Counter-Strike 1.6', 'valve', 'None', '16', 'Public', 'FPS Max', '300', '', 'Ping Boost', '0', '', 'Map', 'de_dust2', '', 'Server Config', 'server.cfg', '', '', '', '', '', '', '', '', '', '', '', '', '', './hlds_run -game cstrike +ip {ip} +port {port} +maxplayers {slots} +sys_ticrate {cfg1} -pingboost {cfg2} +map {cfg3} +servercfgfile {cfg4} -autoupdate', '/home/gamefiles/cs', '27015', 'Active'),
(3, 'DODS Server', 'Day of Defeat: Source', 'valve', 'None', '16', 'Public', 'Tick Rate', '66', '', 'FPS Max', '300', '', 'Map', 'dod_anzio', '', 'Server Config', 'server.cfg', '', '', '', '', '', '', '', '', '', '', '', '', '', 'cd orangebox && {nice} ./srcds_run -game dod -ip {ip} -port {port} -maxplayers {slots} -tickrate {cfg1} +fps_max {cfg2} +map {cfg3} +servercfgfile {cfg4} -autoupdate', '/home/gamefiles/dods', '27015', 'Active'),
(4, 'TF2 Server', 'Team Fortress 2', 'valve', 'None', '16', 'Public', 'Tick Rate', '66', '', 'FPS Max', '300', '', 'Map', 'ctf_well', '', 'Server Config', 'server.cfg', '', '', '', '', '', '', '', '', '', '', '', '', '', 'cd orangebox && {nice} ./srcds_run -game tf -ip {ip} -port {port} -maxplayers {slots} -tickrate {cfg1} +fps_max {cfg2} +map {cfg3} +servercfgfile {cfg4} -autoupdate', '/home/gamefiles/tf2', '27015', 'Active'),
(5, 'CZ Server', 'Counter-Strike: Condition Zero', 'valve', 'None', '16', 'Public', 'FPS Max', '300', '', 'Ping Boost', '0', '', 'Map', 'de_dust', '', 'Server Config', 'server.cfg', '', '', '', '', '', '', '', '', '', '', '', '', '', './hlds_run -game czero +ip {ip} +port {port} +maxplayers {slots} +sys_ticrate {cfg1} -pingboost {cfg2} +map {cfg3} +servercfgfile {cfg4} -autoupdate', '/home/gamefiles/czero', '27015', 'Active'),
(6, 'DOD Server', 'Day of Defeat', 'valve', 'None', '16', 'Public', 'FPS Max', '300', '', 'Ping Boost', '0', '', 'Map', 'dod_anzio', '', 'Server Config', 'server.cfg', '', '', '', '', '', '', '', '', '', '', '', '', '', './hlds_run -game dod +ip {ip} +port {port} +maxplayers {slots} +sys_ticrate {cfg1} -pingboost {cfg2} +map {cfg3} +servercfgfile {cfg4} -autoupdate', '/home/gamefiles/dod', '27015', 'Active'),
(7, 'HLTV', 'Half Life TV', 'valve', 'None', '50', 'Public', 'FPS Max', '100', '', 'Server Config', 'hltv.cfg', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', './hltv -ip {ip} -port {port} +maxclients {slots} -maxfps {cfg1} +exec {cfg2} -autoupdate', '/home/gamefiles/hltv', '27020', 'Active'),
(8, 'COD4 Server', 'Call of Duty 4', 'quake3', 'None', '24', 'Public', 'Server Config', 'server.cfg', '', 'Map', 'mp_carentan', '', 'Punkbuster', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', './cod4_lnxded +set dedicated 2 +set net_ip {ip} +set net_port {port} +set sv_maxclients {slots} +exec {cfg1} +map {cfg2} +set sv_punkbuster {cfg3}', '/home/gamefiles/cod4', '28960', 'Active');
-- --------------------------------------------------------
--
-- Table structure for table `ip`
--
DROP TABLE IF EXISTS `ip`;
CREATE TABLE IF NOT EXISTS `ip` (
`ipid` int(10) unsigned NOT NULL auto_increment,
`boxid` int(10) unsigned NOT NULL,
`ip` text NOT NULL,
`usage` text NOT NULL,
PRIMARY KEY (`ipid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `ip`
--
-- --------------------------------------------------------
--
-- Table structure for table `log`
--
DROP TABLE IF EXISTS `log`;
CREATE TABLE IF NOT EXISTS `log` (
`logid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`serverid` int(10) unsigned NOT NULL,
`boxid` int(10) unsigned NOT NULL,
`message` text NOT NULL,
`name` text NOT NULL,
`ip` text NOT NULL,
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`logid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `log`
--
-- --------------------------------------------------------
--
-- Table structure for table `server`
--
DROP TABLE IF EXISTS `server`;
CREATE TABLE IF NOT EXISTS `server` (
`serverid` int(10) unsigned NOT NULL auto_increment,
`clientid` int(10) unsigned NOT NULL,
`boxid` int(10) unsigned NOT NULL,
`ipid` int(10) unsigned NOT NULL,
`name` text NOT NULL,
`game` text NOT NULL,
`status` text NOT NULL,
`query` text NOT NULL,
`priority` text NOT NULL,
`slots` text NOT NULL,
`type` text NOT NULL,
`cfg1name` text NOT NULL,
`cfg1` text NOT NULL,
`cfg1edit` text NOT NULL,
`cfg2name` text NOT NULL,
`cfg2` text NOT NULL,
`cfg2edit` text NOT NULL,
`cfg3name` text NOT NULL,
`cfg3` text NOT NULL,
`cfg3edit` text NOT NULL,
`cfg4name` text NOT NULL,
`cfg4` text NOT NULL,
`cfg4edit` text NOT NULL,
`cfg5name` text NOT NULL,
`cfg5` text NOT NULL,
`cfg5edit` text NOT NULL,
`cfg6name` text NOT NULL,
`cfg6` text NOT NULL,
`cfg6edit` text NOT NULL,
`cfg7name` text NOT NULL,
`cfg7` text NOT NULL,
`cfg7edit` text NOT NULL,
`cfg8name` text NOT NULL,
`cfg8` text NOT NULL,
`cfg8edit` text NOT NULL,
`startline` text NOT NULL,
`showftp` text NOT NULL,
`webftp` text NOT NULL,
`user` text NOT NULL,
`password` text NOT NULL,
`homedir` text NOT NULL,
`installdir` text NOT NULL,
`configdir` text NOT NULL,
`port` text NOT NULL,
`online` text NOT NULL,
`qryport` text NOT NULL,
`fastdl` text NOT NULL,
`disksize` bigint(20) unsigned NOT NULL default '0',
`disktime` datetime default NULL,
`downcount` tinyint(3) unsigned NOT NULL default '0',
`downalert` datetime default NULL,
PRIMARY KEY (`serverid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `server`
--
-- --------------------------------------------------------
--
-- Repair activity-log rows written by an older build that HTML-escaped the
-- whole console-log message (the "#N" link showed as raw text). No-op on a
-- fresh database. Safe to re-run.
--
UPDATE `log` SET `message` =
REPLACE(REPLACE(REPLACE(REPLACE(`message`,
'<a href=', '<a href='),
'">#', '">#'),
'</a>', '</a>'),
'#', '#')
WHERE `message` LIKE '%onsole %<a href=%';