SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -------------------------------------------------------- DROP TABLE IF EXISTS `access`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `access` ( `module` mediumint(5) NOT NULL default '0', `view` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'Y', `comment` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'Y', `moderatecomment` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'Y', `add` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'N', `modify` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'N', `admin` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'N', `accesslevel` mediumint(5) NOT NULL default '0', KEY `module` (`module`,`accesslevel`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- INSERT INTO `access` (`module`, `view`, `comment`, `moderatecomment`, `add`, `modify`, `admin`, `accesslevel`) VALUES (0, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (7, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (12, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (4, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (18, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (20, 'Y', 'N', 'Y', 'N', 'N', 'N', 1), (6, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (21, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (8, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (15, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (11, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (5, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (10, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (17, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (2, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (1, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (1, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (2, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (3, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (4, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (5, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (6, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (7, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (8, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (9, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (11, 'Y', 'N', 'N', 'N', 'N', 'N', 2), (10, 'Y', 'N', 'N', 'N', 'N', 'N', 2), (12, 'Y', 'N', 'N', 'N', 'N', 'N', 2), (13, 'Y', 'N', 'N', 'N', 'N', 'Y', 2), (14, 'Y', 'N', 'N', 'N', 'N', 'N', 2), (15, 'Y', 'N', 'N', 'N', 'N', 'N', 2), (16, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (1, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (17, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (14, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (18, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (7, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (12, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (4, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (18, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (20, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (6, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (21, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (8, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (15, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (11, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (5, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (24, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (10, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (17, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (2, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (1, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (3, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (19, 'N', 'N', 'N', 'N', 'N', 'N', 2), (16, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (13, 'Y', 'N', 'N', 'N', 'N', 'Y', 1), (20, 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 2), (23, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (9, 'Y', 'N', 'N', 'N', 'N', 'N', 1), (21, 'Y', 'Y', 'N', 'N', 'N', 'N', 2), (14, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (3, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (1, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (2, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (3, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (4, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (5, 'N', 'Y', 'N', 'N', 'N', 'N', 0), (6, 'N', 'N', 'Y', 'N', 'N', 'N', 0), (7, 'N', 'N', 'N', 'N', 'N', 'Y', 0), (8, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (9, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (10, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (11, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (12, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (13, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (14, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (15, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (16, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (17, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (18, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (19, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (20, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (21, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (22, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (23, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (24, 'Y', 'N', 'N', 'N', 'N', 'N', 0), (4, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (18, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (20, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (28, 'N', 'N', 'N', 'N', 'N', 'Y', 5), (27, 'N', 'N', 'Y', 'N', 'N', 'N', 5), (26, 'N', 'Y', 'N', 'N', 'N', 'N', 5), (25, 'Y', 'N', 'N', 'N', 'N', 'N', 5), (21, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (8, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (15, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (11, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (5, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (24, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (10, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (17, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (2, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (1, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (16, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (23, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (14, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (3, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (13, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (9, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (19, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (13, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (9, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (19, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (22, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 3), (7, 'Y', 'N', 'N', 'N', 'N', 'N', 4), (12, 'N', 'Y', 'N', 'N', 'N', 'N', 4), (4, 'Y', 'N', 'N', 'N', 'N', 'N', 4), (18, 'Y', 'N', 'N', 'N', 'N', 'N', 4), (20, 'N', 'N', 'Y', 'N', 'N', 'Y', 4), (6, 'N', 'N', 'Y', 'N', 'N', 'N', 4), (21, 'Y', 'N', 'N', 'N', 'N', 'N', 4), (8, 'N', 'Y', 'N', 'N', 'N', 'N', 4), (15, 'Y', 'N', 'N', 'N', 'N', 'N', 4), (11, 'Y', 'N', 'N', 'N', 'N', 'N', 4), (5, 'N', 'Y', 'N', 'N', 'N', 'N', 4), (24, 'N', 'N', 'N', 'N', 'N', 'Y', 4), (10, 'N', 'N', 'N', 'N', 'N', 'Y', 4), (17, 'N', 'N', 'Y', 'N', 'N', 'N', 4), (2, 'N', 'N', 'Y', 'N', 'N', 'N', 4), (1, 'N', 'Y', 'N', 'N', 'N', 'N', 4), (16, 'N', 'Y', 'N', 'N', 'N', 'N', 4), (23, 'N', 'N', 'Y', 'N', 'N', 'N', 4), (7, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (12, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 5), (7, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (12, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (4, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (18, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (20, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (6, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (21, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (8, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (15, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (11, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (5, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (24, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (10, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (17, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (2, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (1, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (16, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (23, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (14, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (3, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (13, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (9, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (19, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (22, 'Y', 'Y', 'Y', 'N', 'N', 'Y', 6), (14, 'N', 'N', 'N', 'N', 'N', 'Y', 4), (3, 'N', 'N', 'N', 'N', 'N', 'Y', 4), (13, 'N', 'N', 'Y', 'N', 'N', 'N', 4), (9, 'N', 'N', 'Y', 'N', 'N', 'N', 4), (19, 'N', 'Y', 'N', 'N', 'N', 'N', 4), (22, 'N', 'Y', 'N', 'N', 'N', 'N', 4); -- -------------------------------------------------------- DROP TABLE IF EXISTS `accesslevels`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `accesslevels` ( `id` mediumint(5) NOT NULL auto_increment, `superadmin` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'N', `name` varchar(100) collate utf8_unicode_ci NOT NULL default '', `description` varchar(255) collate utf8_unicode_ci NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -------------------------------------------------------- INSERT INTO `accesslevels` (`id`, `superadmin`, `name`, `description`) VALUES (1, 'N', 'Guest profile', 'This level is assigned to a surfer that is not signed in.'), (2, 'N', 'Site member', 'This level is assigned to someone that is registered on the website but is not a part of the clan.'), (3, 'N', 'Clan recruit', ''), (4, 'N', 'Match Manager', ''), (5, 'N', 'Clan Co-Leader', ''), (6, 'Y', 'Clan Leader', ''); -- -------------------------------------------------------- DROP TABLE IF EXISTS `banned`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `banned` ( `id` mediumint(5) NOT NULL auto_increment, `ip` varchar(15) collate utf8_unicode_ci NOT NULL default '', `reason` varchar(255) collate utf8_unicode_ci NOT NULL default '', `date` int(12) NOT NULL default '0', PRIMARY KEY (`id`), KEY `ip` (`ip`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -------------------------------------------------------- DROP TABLE IF EXISTS `blockpositions`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `blockpositions` ( `block` smallint(5) unsigned NOT NULL, `template` smallint(5) unsigned NOT NULL, `order` smallint(5) unsigned NOT NULL, `column` smallint(5) unsigned NOT NULL, `id` int(10) unsigned NOT NULL auto_increment, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=182 ; -- -------------------------------------------------------- INSERT INTO `blockpositions` (`block`, `template`, `order`, `column`, `id`) VALUES (7, 1, 4, 2, 181), (13, 1, 3, 2, 180), (6, 1, 2, 2, 179), (5, 1, 1, 2, 178), (9, 1, 0, 2, 177), (2, 1, 3, 1, 176), (4, 1, 2, 1, 175), (8, 1, 1, 1, 174), (1, 1, 0, 1, 173); -- -------------------------------------------------------- DROP TABLE IF EXISTS `blocks`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `blocks` ( `id` mediumint(5) NOT NULL auto_increment, `name` varchar(75) collate utf8_unicode_ci default NULL, `description` varchar(250) collate utf8_unicode_ci default NULL, `identifier` varchar(50) collate utf8_unicode_ci NOT NULL default '', `variables` text collate utf8_unicode_ci NOT NULL, `active` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'Y', `author` varchar(255) collate utf8_unicode_ci NOT NULL, `authorweb` varchar(255) collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `active` (`active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ; -- -------------------------------------------------------- INSERT INTO `blocks` (`id`, `name`, `description`, `identifier`, `variables`, `active`, `author`, `authorweb`) VALUES (1, 'Main menu', 'Displays the main menu', 'menu', 'type=main', 'Y', '', ''), (2, 'Shoutbox', 'Display a shoutbox where people can add their message', 'shoutbox', 'items=7\r\ndateformat=d/m/y H:i', 'Y', '', ''), (4, 'Headlines', 'Display the latest headlines', 'news', 'items=5\r\ndateformat=d-m-Y', 'Y', '', ''), (5, 'Upcoming matches', 'Displays the upcoming matches', 'matches', 'dateformat=d/m/Y\r\nitems=5\r\ntype=upcoming', 'Y', '', ''), (6, 'Matches', 'Displays recently played matches', 'matches', 'dateformat=d/m/Y\r\nitems=5', 'Y', '', ''), (7, 'Statistics', 'Displays brief website statistics', 'statistics', '', 'Y', '', ''), (8, 'Sub menu', 'Displays the sub menu', 'menu', 'type=submenu', 'Y', '', ''), (9, 'Log in', 'Displays a log in / user control panel', 'login', '', 'Y', '', ''), (13, 'Squads', 'Displays squad photos', 'squads', '', 'Y', '', ''), (12, 'Member blogs', 'Display the latest member blogs', 'blogs', '', 'N', '', ''); -- -------------------------------------------------------- DROP TABLE IF EXISTS `categories`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `categories` ( `id` bigint(15) NOT NULL auto_increment, `type` enum('ccc','download','link','gallery','shop','avatar') collate utf8_unicode_ci NOT NULL default 'ccc', `name` varchar(255) collate utf8_unicode_ci NOT NULL default '', `description` text collate utf8_unicode_ci NOT NULL, `parent` bigint(20) NOT NULL default '0', PRIMARY KEY (`id`), KEY `parent` (`parent`), KEY `site` (`type`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=567 ; -- -------------------------------------------------------- DROP TABLE IF EXISTS `categoryitems`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `categoryitems` ( `id` bigint(15) NOT NULL auto_increment, `category` bigint(15) NOT NULL default '0', `order` mediumint(9) NOT NULL default '1', `status` enum('published','banned','pending') collate utf8_unicode_ci NOT NULL default 'published', `author` varchar(255) collate utf8_unicode_ci NOT NULL default '', `author_email` varchar(255) collate utf8_unicode_ci NOT NULL default '', `valid` enum('Y','N') collate utf8_unicode_ci NOT NULL default 'Y', `validcode` varchar(32) collate utf8_unicode_ci NOT NULL default '', `file` text collate utf8_unicode_ci NOT NULL, `date` bigint(15) NOT NULL default '0', `type` enum('sponsor','avatar','shop','gallery','download','link') collate utf8_unicode_ci NOT NULL default 'link', `name` varchar(255) collate utf8_unicode_ci NOT NULL default '', `description` text collate utf8_unicode_ci NOT NULL, `rating` mediumint(2) NOT NULL default '5', `url` text collate utf8_unicode_ci NOT NULL, `displayurl` text collate utf8_unicode_ci NOT NULL, `backlink` text collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `category` (`category`), KEY `status` (`status`,`author_email`,`validcode`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=644 ; -- -------------------------------------------------------- DROP TABLE IF EXISTS `form`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `form` ( `id` mediumint(3) NOT NULL auto_increment, `name` varchar(50) collate utf8_unicode_ci NOT NULL default '', `ident` varchar(10) collate utf8_unicode_ci NOT NULL default '', `description` varchar(255) collate utf8_unicode_ci NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -------------------------------------------------------- INSERT INTO `form` (`id`, `name`, `ident`, `description`) VALUES (1, 'My profile', 'myprofile', ''); -- -------------------------------------------------------- DROP TABLE IF EXISTS `formfield`; -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS `formfield` ( `id` int(8) NOT NULL auto_increment, `formid` mediumint(3) NOT NULL default '0', `order` mediumint(2) NOT NULL default '1', `name` varchar(50) collate utf8_unicode_ci NOT NULL default '', `text` varchar(50) collate utf8_unicode_ci NOT NULL default '', `description` varchar(150) collate utf8_unicode_ci NOT NULL default '', `type` enum('spacer','text','password','textarea','select','radio','checkbox','date') collate utf8_unicode_ci NOT NULL default 'text', `values` text collate utf8_unicode_ci NOT NULL, `maxlength` mediumint(3) NOT NULL default '255', `minlength` mediumint(3) NOT NULL default '0', `limitchars` enum('any','alpha','numeric','alphanumeric') collate utf8_unicode_ci NOT NULL default 'any', PRIMARY KEY (`id`), KEY `formid` (`formid`), KEY `order` (`order`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=39 ; -- -------------------------------------------------------- INSERT INTO `formfield` (`id`, `formid`, `order`, `name`, `text`, `description`, `type`, `values`, `maxlength`, `minlength`, `limitchars`) VALUES (1, 1, 1, 'email', 'E-mail', 'Your e-mail address', 'text', '', 255, 6, 'any'), (2, 1, 3, 'newpassword', 'New password', 'If you wish to change your password, type your new password in this field', 'password', '', 30, 0, 'any'), (3, 1, 4, 'newpasswordconfirmation', 'New password confirmation', 'Please confirm your new password by typing it in again', 'password', '', 30, 0, 'any'), (4, 1, 5, 'password', 'Current password', 'If you wish to change your password, type in your current password', 'password', '', 255, 0, 'any'), (5, 1, 2, '', 'Password', '', 'spacer', '', 255, 0, 'any'), (6, 1, 6, 'name', 'Name', '', 'text', '', 255, 0, 'any'), (7, 1, 6, 'Gender', 'Gender', '', 'select', 'MFO