completed the transition away from features and toward "services" - the old

database-based configuration has been replaced with the new XML-based one.
This paves the way for further modularization of the code.
This commit is contained in:
Eric J. Bowersox
2001-11-22 04:53:17 +00:00
parent 85518ca0d5
commit f5a5009932
29 changed files with 813 additions and 544 deletions

View File

@@ -198,22 +198,6 @@ CREATE TABLE refcategory (
UNIQUE INDEX display (parent, name)
);
# A reference to feature codes and what they mean.
CREATE TABLE refsigftr (
ftr_code SMALLINT NOT NULL PRIMARY KEY,
is_default TINYINT DEFAULT 0,
is_locked TINYINT DEFAULT 0,
is_hidden TINYINT DEFAULT 0,
require_read TINYINT DEFAULT 1,
sequence SMALLINT NOT NULL,
min_level SMALLINT UNSIGNED DEFAULT 0,
symbol CHAR(4) NOT NULL,
name VARCHAR(64) NOT NULL,
applet VARCHAR(64) NOT NULL,
UNIQUE INDEX name_x (name),
UNIQUE index sequence_x (sequence)
);
# The table mapping SIGs and their associated features.
CREATE TABLE sigftrs (
sigid INT NOT NULL,
@@ -472,18 +456,18 @@ INSERT INTO refaudit (type, descr) VALUES
(111, 'Admin Change User Account'),
(112, 'Admin Set Account Security'),
(113, 'Admin Lock/Unlock Account'),
(201, 'Create New SIG'),
(202, 'Set SIG Membership'),
(203, 'Set SIG Contact Info'),
(204, 'Set SIG Feature Set'),
(205, 'Set SIG Name'),
(206, 'Set SIG Alias'),
(207, 'Set SIG Category'),
(208, 'Set SIG Hiding Information'),
(209, 'Set SIG Members-Only Flag'),
(210, 'Set SIG Join Key'),
(211, 'Set SIG Security Levels'),
(212, 'Delete SIG'),
(201, 'Create New Community'),
(202, 'Set Community Membership'),
(203, 'Set Community Contact Info'),
(204, 'Set Community Services'),
(205, 'Set Community Name'),
(206, 'Set Community Alias'),
(207, 'Set Community Category'),
(208, 'Set Community Hiding Information'),
(209, 'Set Community Members-Only Flag'),
(210, 'Set Community Join Key'),
(211, 'Set Community Security Levels'),
(212, 'Delete Community'),
(301, 'Create New Conference'),
(302, 'Set Conference Security Levels'),
(303, 'Set Conference Name'),
@@ -874,15 +858,6 @@ INSERT INTO refcategory (catid, parent, symlink, name) VALUES
# Make sure the special "System" category is hidden.
UPDATE refcategory SET hide_dir = 1, hide_search = 1 WHERE catid = 15;
# Populate the Features reference table.
INSERT INTO refsigftr (ftr_code, is_default, is_locked, is_hidden, require_read, sequence, min_level,
symbol, name, applet) VALUES
(0, 1, 1, 1, 0, 4900, 0, 'PROF', 'Profile', 'sigprofile'),
(1, 1, 1, 1, 0, 5000, 57000, 'ADMN', 'Administration', 'sigadmin'),
(2, 0, 1, 1, 0, 10000, 63000, 'SYSA', 'System Administration', 'sysadmin'),
(3, 1, 0, 0, 1, 500, 0, 'CONF', 'Conferences', 'confops'),
(4, 1, 1, 0, 1, 4800, 0, 'MEMB', 'Members', 'members');
# Create the initial advertisements (quotes).
INSERT INTO adverts (imagepath) VALUES
('images/ads/Brown.gif'),