mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00

* New admin panel Pages: Options + Config [WIP] * Forgot the plugin example of options * Rename to settings.php * Add Settings Class * New myaac_settings table * Add $limit parameter to $db->select method * Add $member var annotation * Remove useless title_separator from config * Move $menus to menus.php Also fix active link when menu item has subpage * Settings [WIP] New Settings class New Plugins::load() method Move config.php to settings.php MyAAC Settings will have plugin_name = 'core' Add compat_config.php * Change options.php to settings.php * Change name to settings * Add Settings menu * Add Sections + Add setting($key) function Reorganisation * Add email + password fields as type * Update 33.php * add settings migration * php 8 compatibility * add missing hook * Add categories in tabs, move more settings, revert back getPluginSettings Categories and sections are now not numbered Remove example settings plugin * fix typo * Update .gitignore * Add 36th migration for settings table * Execute migrations just after db connect * Update plugins.php * [WIP] Some work on settings Add hidden settings New method: parse, to parse settings from array Move base html to twig template Remove vocation loading from .xml, instead use predefined voc names * Rename * Fix path * [WIP] More work on settings Move more config to settings (mainly mail_* + some other) Remove mail_admin, wasnt used anywhere Add return type to some functions Add Twig settings(key) function Possibility to save setting to db * Add min, max, step to number field option * Re-enable plugin if disabled and already installed * Add Settings menu, including all plugins with settings One change included in previous commit, due to missclick * Nothing important * Better boolean detection * More detailed error message in settings * Lets call it settings.name instead * Add new function: only_if, to hide fields when they are not enabled [WIP] Not fully finished yet * guild_management: show_if * Hide section title on show_if * Fix: check on page load if radio button is checked * Add: show_if - account_mail_verify * nothing important * Rename team_* variables + add to deprecated * Change variable name * Extract Settings:save function * Add settings.callbacks.get * Move forum config to settings * Move status config to settings * Remove whitespaces * More config to settings: account_types, genders, highscores, admin * Move signature config to settings * Move news config to settings * Rename variable * Save config.php in Settings Egg and hen problem solved :) * Test database connection on save settings -> prevents from making website unusable if connection is wrong * Test server_path -> same There is no config.php anymore, just config.local.php, which can be edited manually and also from admin panel * Remove configs from previous commit * Fix create account, if account_create_character_create is enabled * Add more deprecated configs * Add more info into comment * Update 5-database.php * Fix menu highlighting & opening * Update template.php * Enable script option * Reword email settings + move two new settings * add last_kills_limit + move shop * google_analytics_id * add mail_lost_account_interval * Create character blocked words (by @gpedro), just moved to settings * Fix google_analytics * create character name config moved to settings * Fix for install warning - min/max length * New create character checks configurable: block monsters & spells names * fixes * Improve character npc name check * New setting: donate_column + move donate config to settings * Add super fancy No Refresh saving with a toast * Add new possibility: to deny saving setting if condition is not met * Move database settings to separate category * Fix default value displaying * Add database_hash setting * add last_kills_limit to compat config * Move create character blocked names down * Every setting needs to have default * Move rest of config to settings Remove config.php completely Add new settings category: Game Fix account_login_by_email Min textarea size = 2 + adjusted automatically
356 lines
18 KiB
SQL
356 lines
18 KiB
SQL
SET @myaac_database_version = 36;
|
|
|
|
CREATE TABLE `myaac_account_actions`
|
|
(
|
|
`account_id` INT(11) NOT NULL,
|
|
`ip` INT(10) UNSIGNED NOT NULL DEFAULT 0,
|
|
`ipv6` BINARY(16) NOT NULL DEFAULT 0,
|
|
`date` INT(11) NOT NULL DEFAULT 0,
|
|
`action` VARCHAR(255) NOT NULL DEFAULT '',
|
|
KEY (`account_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_admin_menu`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`page` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
`flags` INT(11) NOT NULL DEFAULT 0,
|
|
`enabled` INT(1) NOT NULL DEFAULT 1,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_bugtracker`
|
|
(
|
|
`account` VARCHAR(255) NOT NULL,
|
|
`type` INT(11) NOT NULL DEFAULT 0,
|
|
`status` INT(11) NOT NULL DEFAULT 0,
|
|
`text` text NOT NULL,
|
|
`id` INT(11) NOT NULL DEFAULT 0,
|
|
`subject` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`reply` INT(11) NOT NULL DEFAULT 0,
|
|
`who` INT(11) NOT NULL DEFAULT 0,
|
|
`uid` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`tag` INT(11) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`uid`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_changelog`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`body` VARCHAR(500) NOT NULL DEFAULT '',
|
|
`type` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 - added, 2 - removed, 3 - changed, 4 - fixed',
|
|
`where` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 - server, 2 - site',
|
|
`date` INT(11) NOT NULL DEFAULT 0,
|
|
`player_id` INT(11) NOT NULL DEFAULT 0,
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
INSERT INTO `myaac_changelog` (`id`, `type`, `where`, `date`, `body`, `hidden`) VALUES (1, 3, 2, UNIX_TIMESTAMP(), 'MyAAC installed. (:', 0);
|
|
|
|
CREATE TABLE `myaac_config`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(30) NOT NULL,
|
|
`value` VARCHAR(1000) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
INSERT INTO `myaac_config` (`name`, `value`) VALUES ('database_version', @myaac_database_version);
|
|
|
|
CREATE TABLE `myaac_faq`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`question` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`answer` VARCHAR(1020) NOT NULL DEFAULT '',
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_forum_boards`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(32) NOT NULL,
|
|
`description` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
`guild` INT(11) NOT NULL DEFAULT 0,
|
|
`access` INT(11) NOT NULL DEFAULT 0,
|
|
`closed` TINYINT(1) NOT NULL DEFAULT 0,
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
INSERT INTO `myaac_forum_boards` (`id`, `name`, `description`, `ordering`, `closed`) VALUES (NULL, 'News', 'News commenting', 0, 1);
|
|
INSERT INTO `myaac_forum_boards` (`id`, `name`, `description`, `ordering`) VALUES (NULL, 'Trade', 'Trade offers.', 1);
|
|
INSERT INTO `myaac_forum_boards` (`id`, `name`, `description`, `ordering`) VALUES (NULL, 'Quests', 'Quest making.', 2);
|
|
INSERT INTO `myaac_forum_boards` (`id`, `name`, `description`, `ordering`) VALUES (NULL, 'Pictures', 'Your pictures.', 3);
|
|
INSERT INTO `myaac_forum_boards` (`id`, `name`, `description`, `ordering`) VALUES (NULL, 'Bug Report', 'Report bugs there.', 4);
|
|
|
|
CREATE TABLE `myaac_forum`
|
|
(
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`first_post` int(11) NOT NULL default '0',
|
|
`last_post` int(11) NOT NULL default '0',
|
|
`section` int(3) NOT NULL default '0',
|
|
`replies` int(20) NOT NULL default '0',
|
|
`views` int(20) NOT NULL default '0',
|
|
`author_aid` int(20) NOT NULL default '0',
|
|
`author_guid` int(20) NOT NULL default '0',
|
|
`post_text` text NOT NULL,
|
|
`post_topic` varchar(255) NOT NULL DEFAULT '',
|
|
`post_smile` tinyint(1) NOT NULL default '0',
|
|
`post_html` tinyint(1) NOT NULL default '0',
|
|
`post_date` int(20) NOT NULL default '0',
|
|
`last_edit_aid` int(20) NOT NULL default '0',
|
|
`edit_date` int(20) NOT NULL default '0',
|
|
`post_ip` varchar(32) NOT NULL default '0.0.0.0',
|
|
`sticked` tinyint(1) NOT NULL DEFAULT '0',
|
|
`closed` tinyint(1) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `section` (`section`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_menu`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`template` VARCHAR(255) NOT NULL,
|
|
`name` VARCHAR(255) NOT NULL,
|
|
`link` VARCHAR(255) NOT NULL,
|
|
`blank` TINYINT(1) NOT NULL DEFAULT 0,
|
|
`color` VARCHAR(6) NOT NULL DEFAULT '',
|
|
`category` INT(11) NOT NULL DEFAULT 1,
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
`enabled` INT(1) NOT NULL DEFAULT 1,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
/* MENU_CATEGORY_NEWS kathrine */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Latest News', 'news', 1, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'News Archive', 'news/archive', 1, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Changelog', 'changelog', 1, 2);
|
|
/* MENU_CATEGORY_ACCOUNT kathrine */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Account Management', 'account/manage', 2, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Create Account', 'account/create', 2, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Lost Account?', 'account/lost', 2, 2);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Server Rules', 'rules', 2, 3);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Downloads', 'downloads', 5, 4);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Report Bug', 'bugtracker', 2, 5);
|
|
/* MENU_CATEGORY_COMMUNITY kathrine */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Who is Online?', 'online', 3, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Characters', 'characters', 3, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Guilds', 'guilds', 3, 2);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Highscores', 'highscores', 3, 3);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Last Deaths', 'lastkills', 3, 4);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Houses', 'houses', 3, 5);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Bans', 'bans', 3, 6);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Forum', 'forum', 3, 7);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Team', 'team', 3, 8);
|
|
/* MENU_CATEGORY_LIBRARY kathrine */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Monsters', 'creatures', 5, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Spells', 'spells', 5, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Server Info', 'serverInfo', 5, 2);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Commands', 'commands', 5, 3);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Gallery', 'gallery', 5, 4);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Experience Table', 'experienceTable', 5, 5);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'FAQ', 'faq', 5, 6);
|
|
/* MENU_CATEGORY_SHOP kathrine */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Buy Points', 'points', 6, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Shop Offer', 'gifts', 6, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Shop History', 'gifts/history', 6, 2);
|
|
/* MENU_CATEGORY_NEWS tibiacom */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Latest News', 'news', 1, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'News Archive', 'news/archive', 1, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Changelog', 'changelog', 1, 2);
|
|
/* MENU_CATEGORY_ACCOUNT tibiacom */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Account Management', 'account/manage', 2, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Create Account', 'account/create', 2, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Lost Account?', 'account/lost', 2, 2);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Server Rules', 'rules', 2, 3);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Downloads', 'downloads', 2, 4);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Report Bug', 'bugtracker', 2, 5);
|
|
/* MENU_CATEGORY_COMMUNITY tibiacom */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Characters', 'characters', 3, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Who Is Online?', 'online', 3, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Highscores', 'highscores', 3, 2);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Last Kills', 'lastkills', 3, 3);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Houses', 'houses', 3, 4);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Guilds', 'guilds', 3, 5);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Polls', 'polls', 3, 6);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Bans', 'bans', 3, 7);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Support List', 'team', 3, 8);
|
|
/* MENU_CATEGORY_FORUM tibiacom */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Forum', 'forum', 4, 0);
|
|
/* MENU_CATEGORY_LIBRARY tibiacom */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Creatures', 'creatures', 5, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Spells', 'spells', 5, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Commands', 'commands', 5, 2);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Exp Stages', 'experienceStages', 5, 3);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Gallery', 'gallery', 5, 4);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Server Info', 'serverInfo', 5, 5);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Experience Table', 'experienceTable', 5, 6);
|
|
/* MENU_CATEGORY_SHOP tibiacom */
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Buy Points', 'points', 6, 0);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Shop Offer', 'gifts', 6, 1);
|
|
INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('tibiacom', 'Shop History', 'gifts/history', 6, 2);
|
|
|
|
CREATE TABLE `myaac_monsters` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`hidden` tinyint(1) NOT NULL default 0,
|
|
`name` varchar(255) NOT NULL,
|
|
`mana` int(11) NOT NULL DEFAULT 0,
|
|
`exp` int(11) NOT NULL,
|
|
`health` int(11) NOT NULL,
|
|
`look` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`speed_lvl` int(11) NOT NULL default 1,
|
|
`use_haste` tinyint(1) NOT NULL,
|
|
`voices` text NOT NULL,
|
|
`immunities` varchar(255) NOT NULL,
|
|
`elements` TEXT NOT NULL,
|
|
`summonable` tinyint(1) NOT NULL,
|
|
`convinceable` tinyint(1) NOT NULL,
|
|
`pushable` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`canpushitems` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`canwalkonenergy` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`canwalkonpoison` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`canwalkonfire` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`runonhealth` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`hostile` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`attackable` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`rewardboss` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`defense` INT(11) NOT NULL DEFAULT '0',
|
|
`armor` INT(11) NOT NULL DEFAULT '0',
|
|
`canpushcreatures` TINYINT(1) NOT NULL DEFAULT '0',
|
|
`race` varchar(255) NOT NULL,
|
|
`loot` text NOT NULL,
|
|
`summons` TEXT NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_news`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`title` VARCHAR(100) NOT NULL,
|
|
`body` TEXT NOT NULL,
|
|
`type` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 - news, 2 - ticker, 3 - article',
|
|
`date` INT(11) NOT NULL DEFAULT 0,
|
|
`category` TINYINT(1) NOT NULL DEFAULT 0,
|
|
`player_id` INT(11) NOT NULL DEFAULT 0,
|
|
`last_modified_by` INT(11) NOT NULL DEFAULT 0,
|
|
`last_modified_date` INT(11) NOT NULL DEFAULT 0,
|
|
`comments` VARCHAR(50) NOT NULL DEFAULT '',
|
|
`article_text` VARCHAR(300) NOT NULL DEFAULT '',
|
|
`article_image` VARCHAR(100) NOT NULL DEFAULT '',
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_news_categories`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(50) NOT NULL DEFAULT "",
|
|
`description` VARCHAR(50) NOT NULL DEFAULT "",
|
|
`icon_id` INT(2) NOT NULL DEFAULT 0,
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
INSERT INTO `myaac_news_categories` (`id`, `icon_id`) VALUES (NULL, 0);
|
|
INSERT INTO `myaac_news_categories` (`id`, `icon_id`) VALUES (NULL, 1);
|
|
INSERT INTO `myaac_news_categories` (`id`, `icon_id`) VALUES (NULL, 2);
|
|
INSERT INTO `myaac_news_categories` (`id`, `icon_id`) VALUES (NULL, 3);
|
|
INSERT INTO `myaac_news_categories` (`id`, `icon_id`) VALUES (NULL, 4);
|
|
|
|
CREATE TABLE `myaac_notepad`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`account_id` INT(11) NOT NULL,
|
|
/*`name` VARCHAR(30) NOT NULL,*/
|
|
`content` TEXT NOT NULL,
|
|
/*`public` TINYINT(1) NOT NULL DEFAULT 0*/
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_pages`
|
|
(
|
|
`id` INT NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(30) NOT NULL,
|
|
`title` VARCHAR(30) NOT NULL,
|
|
`body` TEXT NOT NULL,
|
|
`date` INT(11) NOT NULL DEFAULT 0,
|
|
`player_id` INT(11) NOT NULL DEFAULT 0,
|
|
`php` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '0 - plain html, 1 - php',
|
|
`enable_tinymce` TINYINT(1) NOT NULL DEFAULT 1 COMMENT '1 - enabled, 0 - disabled',
|
|
`access` TINYINT(2) NOT NULL DEFAULT 0,
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_gallery`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`comment` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`image` VARCHAR(255) NOT NULL,
|
|
`thumb` VARCHAR(255) NOT NULL,
|
|
`author` VARCHAR(50) NOT NULL DEFAULT '',
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
INSERT INTO `myaac_gallery` (`id`, `ordering`, `comment`, `image`, `thumb`, `author`) VALUES (NULL, 1, 'Demon', 'images/gallery/demon.jpg', 'images/gallery/demon_thumb.gif', 'MyAAC');
|
|
|
|
CREATE TABLE `myaac_settings`
|
|
(
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`key` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`value` TEXT NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `key` (`key`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_spells`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`spell` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`name` VARCHAR(255) NOT NULL,
|
|
`words` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`category` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 - attack, 2 - healing, 3 - summon, 4 - supply, 5 - support',
|
|
`type` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 - instant, 2 - conjure, 3 - rune',
|
|
`level` INT(11) NOT NULL DEFAULT 0,
|
|
`maglevel` INT(11) NOT NULL DEFAULT 0,
|
|
`mana` INT(11) NOT NULL DEFAULT 0,
|
|
`soul` TINYINT(3) NOT NULL DEFAULT 0,
|
|
`conjure_id` INT(11) NOT NULL DEFAULT 0,
|
|
`conjure_count` TINYINT(3) NOT NULL DEFAULT 0,
|
|
`reagent` INT(11) NOT NULL DEFAULT 0,
|
|
`item_id` INT(11) NOT NULL DEFAULT 0,
|
|
`premium` TINYINT(1) NOT NULL DEFAULT 0,
|
|
`vocations` VARCHAR(100) NOT NULL DEFAULT '',
|
|
`hidden` TINYINT(1) NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_visitors`
|
|
(
|
|
`ip` VARCHAR(45) NOT NULL,
|
|
`lastvisit` INT(11) NOT NULL DEFAULT 0,
|
|
`page` VARCHAR(2048) NOT NULL,
|
|
`user_agent` VARCHAR(255) NOT NULL DEFAULT '',
|
|
UNIQUE (`ip`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|
|
|
|
CREATE TABLE `myaac_weapons`
|
|
(
|
|
`id` INT(11) NOT NULL,
|
|
`level` INT(11) NOT NULL DEFAULT 0,
|
|
`maglevel` INT(11) NOT NULL DEFAULT 0,
|
|
`vocations` VARCHAR(100) NOT NULL DEFAULT '',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;
|