--
-- Host: localhost    Database: norristo_dev
-- ------------------------------------------------------


--
-- Current Database: `norristo_dev`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `norristo_dev` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `norristo_dev`;

--
-- Table structure for table `norristown_auth_access`
--

CREATE TABLE `norristown_auth_access` (
  `group_id` mediumint(8) NOT NULL DEFAULT '0',
  `forum_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `auth_view` tinyint(1) NOT NULL DEFAULT '0',
  `auth_read` tinyint(1) NOT NULL DEFAULT '0',
  `auth_post` tinyint(1) NOT NULL DEFAULT '0',
  `auth_reply` tinyint(1) NOT NULL DEFAULT '0',
  `auth_edit` tinyint(1) NOT NULL DEFAULT '0',
  `auth_delete` tinyint(1) NOT NULL DEFAULT '0',
  `auth_sticky` tinyint(1) NOT NULL DEFAULT '0',
  `auth_announce` tinyint(1) NOT NULL DEFAULT '0',
  `auth_vote` tinyint(1) NOT NULL DEFAULT '0',
  `auth_pollcreate` tinyint(1) NOT NULL DEFAULT '0',
  `auth_attachments` tinyint(1) NOT NULL DEFAULT '0',
  `auth_mod` tinyint(1) NOT NULL DEFAULT '0',
  KEY `group_id` (`group_id`),
  KEY `forum_id` (`forum_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_auth_access`
--


--
-- Table structure for table `norristown_banlist`
--

CREATE TABLE `norristown_banlist` (
  `ban_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `ban_userid` mediumint(8) NOT NULL DEFAULT '0',
  `ban_ip` varchar(8) NOT NULL DEFAULT '',
  `ban_email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`ban_id`),
  KEY `ban_ip_user_id` (`ban_ip`,`ban_userid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_banlist`
--


--
-- Table structure for table `norristown_categories`
--

CREATE TABLE `norristown_categories` (
  `cat_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `cat_title` varchar(100) DEFAULT NULL,
  `cat_order` mediumint(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`cat_id`),
  KEY `cat_order` (`cat_order`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_categories`
--

INSERT INTO `norristown_categories` VALUES (1,'Test category 1',10);

--
-- Table structure for table `norristown_config`
--

CREATE TABLE `norristown_config` (
  `config_name` varchar(255) NOT NULL DEFAULT '',
  `config_value` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`config_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_config`
--

INSERT INTO `norristown_config` VALUES ('config_id','1'),('board_disable','0'),('sitename','yourdomain.com'),('site_desc','A _little_ text to describe your forum'),('cookie_name','phpbb2mysql'),('cookie_path','/'),('cookie_domain',''),('cookie_secure','0'),('session_length','3600'),('allow_html','0'),('allow_html_tags','b,i,u,pre'),('allow_bbcode','1'),('allow_smilies','1'),('allow_sig','1'),('allow_namechange','0'),('allow_theme_create','0'),('allow_avatar_local','0'),('allow_avatar_remote','0'),('allow_avatar_upload','0'),('enable_confirm','0'),('override_user_style','0'),('posts_per_page','15'),('topics_per_page','50'),('hot_threshold','25'),('max_poll_options','10'),('max_sig_chars','255'),('max_inbox_privmsgs','50'),('max_sentbox_privmsgs','25'),('max_savebox_privmsgs','50'),('board_email_sig','Thanks, The Management'),('board_email','jwulf@wavepro.com'),('smtp_delivery','0'),('smtp_host',''),('smtp_username',''),('smtp_password',''),('sendmail_fix','0'),('require_activation','0'),('flood_interval','15'),('board_email_form','0'),('avatar_filesize','6144'),('avatar_max_width','80'),('avatar_max_height','80'),('avatar_path','images/avatars'),('avatar_gallery_path','images/avatars/gallery'),('smilies_path','images/smiles'),('default_style','1'),('default_dateformat','D M d, Y g:i a'),('board_timezone','0'),('prune_enable','1'),('privmsg_disable','0'),('gzip_compress','0'),('coppa_fax',''),('coppa_mail',''),('record_online_users','1'),('record_online_date','1124311845'),('server_name','panda.liquidweb.com'),('server_port','80'),('script_path','/~norristo/dev/forum/'),('version','.0.17'),('board_startdate','1124311759'),('default_lang','english');

--
-- Table structure for table `norristown_disallow`
--

CREATE TABLE `norristown_disallow` (
  `disallow_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `disallow_username` varchar(25) NOT NULL DEFAULT '',
  PRIMARY KEY (`disallow_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_disallow`
--


--
-- Table structure for table `norristown_forum_prune`
--

CREATE TABLE `norristown_forum_prune` (
  `prune_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `forum_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `prune_days` smallint(5) unsigned NOT NULL DEFAULT '0',
  `prune_freq` smallint(5) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`prune_id`),
  KEY `forum_id` (`forum_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_forum_prune`
--


--
-- Table structure for table `norristown_forums`
--

CREATE TABLE `norristown_forums` (
  `forum_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `cat_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `forum_name` varchar(150) DEFAULT NULL,
  `forum_desc` text,
  `forum_status` tinyint(4) NOT NULL DEFAULT '0',
  `forum_order` mediumint(8) unsigned NOT NULL DEFAULT '1',
  `forum_posts` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `forum_topics` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `forum_last_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `prune_next` int(11) DEFAULT NULL,
  `prune_enable` tinyint(1) NOT NULL DEFAULT '0',
  `auth_view` tinyint(2) NOT NULL DEFAULT '0',
  `auth_read` tinyint(2) NOT NULL DEFAULT '0',
  `auth_post` tinyint(2) NOT NULL DEFAULT '0',
  `auth_reply` tinyint(2) NOT NULL DEFAULT '0',
  `auth_edit` tinyint(2) NOT NULL DEFAULT '0',
  `auth_delete` tinyint(2) NOT NULL DEFAULT '0',
  `auth_sticky` tinyint(2) NOT NULL DEFAULT '0',
  `auth_announce` tinyint(2) NOT NULL DEFAULT '0',
  `auth_vote` tinyint(2) NOT NULL DEFAULT '0',
  `auth_pollcreate` tinyint(2) NOT NULL DEFAULT '0',
  `auth_attachments` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`forum_id`),
  KEY `forums_order` (`forum_order`),
  KEY `cat_id` (`cat_id`),
  KEY `forum_last_post_id` (`forum_last_post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_forums`
--

INSERT INTO `norristown_forums` VALUES (1,1,'Test Forum 1','This is just a test forum.',0,10,1,1,1,NULL,0,0,0,0,0,1,1,3,3,1,1,3);

--
-- Table structure for table `norristown_groups`
--

CREATE TABLE `norristown_groups` (
  `group_id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `group_type` tinyint(4) NOT NULL DEFAULT '1',
  `group_name` varchar(40) NOT NULL DEFAULT '',
  `group_description` varchar(255) NOT NULL DEFAULT '',
  `group_moderator` mediumint(8) NOT NULL DEFAULT '0',
  `group_single_user` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`group_id`),
  KEY `group_single_user` (`group_single_user`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_groups`
--

INSERT INTO `norristown_groups` VALUES (1,1,'Anonymous','Personal User',0,1),(2,1,'Admin','Personal User',0,1);

--
-- Table structure for table `norristown_posts`
--

CREATE TABLE `norristown_posts` (
  `post_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `topic_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `forum_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `poster_id` mediumint(8) NOT NULL DEFAULT '0',
  `post_time` int(11) NOT NULL DEFAULT '0',
  `poster_ip` varchar(8) NOT NULL DEFAULT '',
  `post_username` varchar(25) DEFAULT NULL,
  `enable_bbcode` tinyint(1) NOT NULL DEFAULT '1',
  `enable_html` tinyint(1) NOT NULL DEFAULT '0',
  `enable_smilies` tinyint(1) NOT NULL DEFAULT '1',
  `enable_sig` tinyint(1) NOT NULL DEFAULT '1',
  `post_edit_time` int(11) DEFAULT NULL,
  `post_edit_count` smallint(5) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`post_id`),
  KEY `forum_id` (`forum_id`),
  KEY `topic_id` (`topic_id`),
  KEY `poster_id` (`poster_id`),
  KEY `post_time` (`post_time`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_posts`
--

INSERT INTO `norristown_posts` VALUES (1,1,1,2,972086460,'7F000001',NULL,1,0,1,1,NULL,0);

--
-- Table structure for table `norristown_posts_text`
--

CREATE TABLE `norristown_posts_text` (
  `post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `bbcode_uid` varchar(10) NOT NULL DEFAULT '',
  `post_subject` varchar(60) DEFAULT NULL,
  `post_text` text,
  PRIMARY KEY (`post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_posts_text`
--

INSERT INTO `norristown_posts_text` VALUES (1,'',NULL,'This is an example post in your phpBB 2 installation. You may delete this post, this topic and even this forum if you like since everything seems to be working!');

--
-- Table structure for table `norristown_privmsgs`
--

CREATE TABLE `norristown_privmsgs` (
  `privmsgs_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `privmsgs_type` tinyint(4) NOT NULL DEFAULT '0',
  `privmsgs_subject` varchar(255) NOT NULL DEFAULT '0',
  `privmsgs_from_userid` mediumint(8) NOT NULL DEFAULT '0',
  `privmsgs_to_userid` mediumint(8) NOT NULL DEFAULT '0',
  `privmsgs_date` int(11) NOT NULL DEFAULT '0',
  `privmsgs_ip` varchar(8) NOT NULL DEFAULT '',
  `privmsgs_enable_bbcode` tinyint(1) NOT NULL DEFAULT '1',
  `privmsgs_enable_html` tinyint(1) NOT NULL DEFAULT '0',
  `privmsgs_enable_smilies` tinyint(1) NOT NULL DEFAULT '1',
  `privmsgs_attach_sig` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`privmsgs_id`),
  KEY `privmsgs_from_userid` (`privmsgs_from_userid`),
  KEY `privmsgs_to_userid` (`privmsgs_to_userid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_privmsgs`
--


--
-- Table structure for table `norristown_privmsgs_text`
--

CREATE TABLE `norristown_privmsgs_text` (
  `privmsgs_text_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `privmsgs_bbcode_uid` varchar(10) NOT NULL DEFAULT '0',
  `privmsgs_text` text,
  PRIMARY KEY (`privmsgs_text_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_privmsgs_text`
--


--
-- Table structure for table `norristown_ranks`
--

CREATE TABLE `norristown_ranks` (
  `rank_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `rank_title` varchar(50) NOT NULL DEFAULT '',
  `rank_min` mediumint(8) NOT NULL DEFAULT '0',
  `rank_special` tinyint(1) DEFAULT '0',
  `rank_image` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rank_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_ranks`
--

INSERT INTO `norristown_ranks` VALUES (1,'Site Admin',-1,1,NULL);

--
-- Table structure for table `norristown_search_wordlist`
--

CREATE TABLE `norristown_search_wordlist` (
  `word_text` varchar(50) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
  `word_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `word_common` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`word_text`),
  KEY `word_id` (`word_id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_search_wordlist`
--

INSERT INTO `norristown_search_wordlist` VALUES ('example',1,0),('post',2,0),('phpbb',3,0),('installation',4,0),('delete',5,0),('topic',6,0),('forum',7,0),('since',8,0),('everything',9,0),('seems',10,0),('working',11,0),('welcome',12,0);

--
-- Table structure for table `norristown_search_wordmatch`
--

CREATE TABLE `norristown_search_wordmatch` (
  `post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `word_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `title_match` tinyint(1) NOT NULL DEFAULT '0',
  KEY `post_id` (`post_id`),
  KEY `word_id` (`word_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_search_wordmatch`
--

INSERT INTO `norristown_search_wordmatch` VALUES (1,1,0),(1,2,0),(1,3,0),(1,4,0),(1,5,0),(1,6,0),(1,7,0),(1,8,0),(1,9,0),(1,10,0),(1,11,0),(1,12,1),(1,3,1);

--
-- Table structure for table `norristown_smilies`
--

CREATE TABLE `norristown_smilies` (
  `smilies_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(50) DEFAULT NULL,
  `smile_url` varchar(100) DEFAULT NULL,
  `emoticon` varchar(75) DEFAULT NULL,
  PRIMARY KEY (`smilies_id`)
) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_smilies`
--

INSERT INTO `norristown_smilies` VALUES (1,':D','icon_biggrin.gif','Very Happy'),(2,':-D','icon_biggrin.gif','Very Happy'),(3,':grin:','icon_biggrin.gif','Very Happy'),(4,':)','icon_smile.gif','Smile'),(5,':-)','icon_smile.gif','Smile'),(6,':smile:','icon_smile.gif','Smile'),(7,':(','icon_sad.gif','Sad'),(8,':-(','icon_sad.gif','Sad'),(9,':sad:','icon_sad.gif','Sad'),(10,':o','icon_surprised.gif','Surprised'),(11,':-o','icon_surprised.gif','Surprised'),(12,':eek:','icon_surprised.gif','Surprised'),(13,':shock:','icon_eek.gif','Shocked'),(14,':?','icon_confused.gif','Confused'),(15,':-?','icon_confused.gif','Confused'),(16,':???:','icon_confused.gif','Confused'),(17,'8)','icon_cool.gif','Cool'),(18,'8-)','icon_cool.gif','Cool'),(19,':cool:','icon_cool.gif','Cool'),(20,':lol:','icon_lol.gif','Laughing'),(21,':x','icon_mad.gif','Mad'),(22,':-x','icon_mad.gif','Mad'),(23,':mad:','icon_mad.gif','Mad'),(24,':P','icon_razz.gif','Razz'),(25,':-P','icon_razz.gif','Razz'),(26,':razz:','icon_razz.gif','Razz'),(27,':oops:','icon_redface.gif','Embarassed'),(28,':cry:','icon_cry.gif','Crying or Very sad'),(29,':evil:','icon_evil.gif','Evil or Very Mad'),(30,':twisted:','icon_twisted.gif','Twisted Evil'),(31,':roll:','icon_rolleyes.gif','Rolling Eyes'),(32,':wink:','icon_wink.gif','Wink'),(33,';)','icon_wink.gif','Wink'),(34,';-)','icon_wink.gif','Wink'),(35,':!:','icon_exclaim.gif','Exclamation'),(36,':?:','icon_question.gif','Question'),(37,':idea:','icon_idea.gif','Idea'),(38,':arrow:','icon_arrow.gif','Arrow'),(39,':|','icon_neutral.gif','Neutral'),(40,':-|','icon_neutral.gif','Neutral'),(41,':neutral:','icon_neutral.gif','Neutral'),(42,':mrgreen:','icon_mrgreen.gif','Mr. Green');

--
-- Table structure for table `norristown_themes`
--

CREATE TABLE `norristown_themes` (
  `themes_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `template_name` varchar(30) NOT NULL DEFAULT '',
  `style_name` varchar(30) NOT NULL DEFAULT '',
  `head_stylesheet` varchar(100) DEFAULT NULL,
  `body_background` varchar(100) DEFAULT NULL,
  `body_bgcolor` varchar(6) DEFAULT NULL,
  `body_text` varchar(6) DEFAULT NULL,
  `body_link` varchar(6) DEFAULT NULL,
  `body_vlink` varchar(6) DEFAULT NULL,
  `body_alink` varchar(6) DEFAULT NULL,
  `body_hlink` varchar(6) DEFAULT NULL,
  `tr_color1` varchar(6) DEFAULT NULL,
  `tr_color2` varchar(6) DEFAULT NULL,
  `tr_color3` varchar(6) DEFAULT NULL,
  `tr_class1` varchar(25) DEFAULT NULL,
  `tr_class2` varchar(25) DEFAULT NULL,
  `tr_class3` varchar(25) DEFAULT NULL,
  `th_color1` varchar(6) DEFAULT NULL,
  `th_color2` varchar(6) DEFAULT NULL,
  `th_color3` varchar(6) DEFAULT NULL,
  `th_class1` varchar(25) DEFAULT NULL,
  `th_class2` varchar(25) DEFAULT NULL,
  `th_class3` varchar(25) DEFAULT NULL,
  `td_color1` varchar(6) DEFAULT NULL,
  `td_color2` varchar(6) DEFAULT NULL,
  `td_color3` varchar(6) DEFAULT NULL,
  `td_class1` varchar(25) DEFAULT NULL,
  `td_class2` varchar(25) DEFAULT NULL,
  `td_class3` varchar(25) DEFAULT NULL,
  `fontface1` varchar(50) DEFAULT NULL,
  `fontface2` varchar(50) DEFAULT NULL,
  `fontface3` varchar(50) DEFAULT NULL,
  `fontsize1` tinyint(4) DEFAULT NULL,
  `fontsize2` tinyint(4) DEFAULT NULL,
  `fontsize3` tinyint(4) DEFAULT NULL,
  `fontcolor1` varchar(6) DEFAULT NULL,
  `fontcolor2` varchar(6) DEFAULT NULL,
  `fontcolor3` varchar(6) DEFAULT NULL,
  `span_class1` varchar(25) DEFAULT NULL,
  `span_class2` varchar(25) DEFAULT NULL,
  `span_class3` varchar(25) DEFAULT NULL,
  `img_size_poll` smallint(5) unsigned DEFAULT NULL,
  `img_size_privmsg` smallint(5) unsigned DEFAULT NULL,
  PRIMARY KEY (`themes_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_themes`
--

INSERT INTO `norristown_themes` VALUES (1,'norristown','norristown','norristown.css','','E5E5E5','000000','006699','5493B4','','DD6900','EFEFEF','DEE3E7','D1D7DC','','','','98AAB1','006699','FFFFFF','cellpic1.gif','cellpic3.gif','cellpic2.jpg','FAFAFA','FFFFFF','','row1','row2','','Verdana, Arial, Helvetica, sans-serif','Trebuchet MS','Courier, \'Courier New\', sans-serif',10,11,12,'444444','006600','FFA34F','','','',NULL,NULL);

--
-- Table structure for table `norristown_themes_name`
--

CREATE TABLE `norristown_themes_name` (
  `themes_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `tr_color1_name` char(50) DEFAULT NULL,
  `tr_color2_name` char(50) DEFAULT NULL,
  `tr_color3_name` char(50) DEFAULT NULL,
  `tr_class1_name` char(50) DEFAULT NULL,
  `tr_class2_name` char(50) DEFAULT NULL,
  `tr_class3_name` char(50) DEFAULT NULL,
  `th_color1_name` char(50) DEFAULT NULL,
  `th_color2_name` char(50) DEFAULT NULL,
  `th_color3_name` char(50) DEFAULT NULL,
  `th_class1_name` char(50) DEFAULT NULL,
  `th_class2_name` char(50) DEFAULT NULL,
  `th_class3_name` char(50) DEFAULT NULL,
  `td_color1_name` char(50) DEFAULT NULL,
  `td_color2_name` char(50) DEFAULT NULL,
  `td_color3_name` char(50) DEFAULT NULL,
  `td_class1_name` char(50) DEFAULT NULL,
  `td_class2_name` char(50) DEFAULT NULL,
  `td_class3_name` char(50) DEFAULT NULL,
  `fontface1_name` char(50) DEFAULT NULL,
  `fontface2_name` char(50) DEFAULT NULL,
  `fontface3_name` char(50) DEFAULT NULL,
  `fontsize1_name` char(50) DEFAULT NULL,
  `fontsize2_name` char(50) DEFAULT NULL,
  `fontsize3_name` char(50) DEFAULT NULL,
  `fontcolor1_name` char(50) DEFAULT NULL,
  `fontcolor2_name` char(50) DEFAULT NULL,
  `fontcolor3_name` char(50) DEFAULT NULL,
  `span_class1_name` char(50) DEFAULT NULL,
  `span_class2_name` char(50) DEFAULT NULL,
  `span_class3_name` char(50) DEFAULT NULL,
  PRIMARY KEY (`themes_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_themes_name`
--

INSERT INTO `norristown_themes_name` VALUES (1,'The lightest row colour','The medium row color','The darkest row colour','','','','Border round the whole page','Outer table border','Inner table border','Silver gradient picture','Blue gradient picture','Fade-out gradient on index','Background for quote boxes','All white areas','','Background for topic posts','2nd background for topic posts','','Main fonts','Additional topic title font','Form fonts','Smallest font size','Medium font size','Normal font size (post body etc)','Quote & copyright text','Code text colour','Main table header text colour','','','');

--
-- Table structure for table `norristown_topics`
--

CREATE TABLE `norristown_topics` (
  `topic_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `forum_id` smallint(8) unsigned NOT NULL DEFAULT '0',
  `topic_title` char(60) NOT NULL DEFAULT '',
  `topic_poster` mediumint(8) NOT NULL DEFAULT '0',
  `topic_time` int(11) NOT NULL DEFAULT '0',
  `topic_views` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `topic_replies` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `topic_status` tinyint(3) NOT NULL DEFAULT '0',
  `topic_vote` tinyint(1) NOT NULL DEFAULT '0',
  `topic_type` tinyint(3) NOT NULL DEFAULT '0',
  `topic_first_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `topic_last_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `topic_moved_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`topic_id`),
  KEY `forum_id` (`forum_id`),
  KEY `topic_moved_id` (`topic_moved_id`),
  KEY `topic_status` (`topic_status`),
  KEY `topic_type` (`topic_type`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_topics`
--

INSERT INTO `norristown_topics` VALUES (1,1,'Welcome to phpBB 2',2,972086460,0,0,0,0,0,1,1,0);

--
-- Table structure for table `norristown_topics_watch`
--

CREATE TABLE `norristown_topics_watch` (
  `topic_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `user_id` mediumint(8) NOT NULL DEFAULT '0',
  `notify_status` tinyint(1) NOT NULL DEFAULT '0',
  KEY `topic_id` (`topic_id`),
  KEY `user_id` (`user_id`),
  KEY `notify_status` (`notify_status`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_topics_watch`
--


--
-- Table structure for table `norristown_user_group`
--

CREATE TABLE `norristown_user_group` (
  `group_id` mediumint(8) NOT NULL DEFAULT '0',
  `user_id` mediumint(8) NOT NULL DEFAULT '0',
  `user_pending` tinyint(1) DEFAULT NULL,
  KEY `group_id` (`group_id`),
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_user_group`
--

INSERT INTO `norristown_user_group` VALUES (1,-1,0),(2,2,0);

--
-- Table structure for table `norristown_vote_desc`
--

CREATE TABLE `norristown_vote_desc` (
  `vote_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `topic_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `vote_text` text NOT NULL,
  `vote_start` int(11) NOT NULL DEFAULT '0',
  `vote_length` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`vote_id`),
  KEY `topic_id` (`topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_vote_desc`
--


--
-- Table structure for table `norristown_vote_results`
--

CREATE TABLE `norristown_vote_results` (
  `vote_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `vote_option_id` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `vote_option_text` varchar(255) NOT NULL DEFAULT '',
  `vote_result` int(11) NOT NULL DEFAULT '0',
  KEY `vote_option_id` (`vote_option_id`),
  KEY `vote_id` (`vote_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_vote_results`
--


--
-- Table structure for table `norristown_vote_voters`
--

CREATE TABLE `norristown_vote_voters` (
  `vote_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `vote_user_id` mediumint(8) NOT NULL DEFAULT '0',
  `vote_user_ip` char(8) NOT NULL DEFAULT '',
  KEY `vote_id` (`vote_id`),
  KEY `vote_user_id` (`vote_user_id`),
  KEY `vote_user_ip` (`vote_user_ip`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_vote_voters`
--


--
-- Table structure for table `norristown_words`
--

CREATE TABLE `norristown_words` (
  `word_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `word` char(100) NOT NULL DEFAULT '',
  `replacement` char(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`word_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `norristown_words`
--


--
-- Table structure for table `portal_block`
--

CREATE TABLE `portal_block` (
  `block_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `block_title` varchar(150) DEFAULT NULL,
  `block_desc` text,
  `function_id` smallint(5) unsigned DEFAULT NULL,
  `auth_view` tinyint(2) NOT NULL DEFAULT '0',
  `auth_edit` tinyint(2) DEFAULT '0',
  `auth_delete` tinyint(2) DEFAULT '0',
  `auth_view_group` smallint(5) NOT NULL DEFAULT '0',
  `auth_edit_group` smallint(5) NOT NULL DEFAULT '0',
  `auth_delete_group` smallint(5) NOT NULL DEFAULT '0',
  PRIMARY KEY (`block_id`)
) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_block`
--

INSERT INTO `portal_block` VALUES (1,'Welcome','',20,0,5,0,0,0,0),(2,'Multiple Horizontal Blocks','',19,0,0,0,0,0,0),(3,'Demo Textblock Multi','',22,0,5,0,0,0,0),(4,'Demo Textblock BBcode','',20,0,5,0,0,0,0),(5,'Demo Textblock Html','',21,0,5,0,0,0,0),(6,'Poll','',12,0,5,0,0,0,0),(7,'Language Select','',13,99,5,0,0,0,0),(8,'Navigation Menu','',11,0,5,0,0,0,0),(24,'Forum','',10,0,0,0,0,0,0),(13,'Login',NULL,14,99,5,0,0,0,0),(14,'Theme Select','',15,0,5,0,0,0,0),(21,'Google','',16,0,0,0,0,0,0),(18,'Announcements',NULL,17,0,0,0,0,0,0),(19,'Online','',18,0,0,0,0,0,0),(16,'Last Message Post',NULL,30,0,0,0,0,0,0),(32,'Statistics','',40,0,0,0,0,0,0),(33,'Business','Doing business with Norristown',20,0,0,0,0,0,0);

--
-- Table structure for table `portal_block_system_parameter`
--

CREATE TABLE `portal_block_system_parameter` (
  `block_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `parameter_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `parameter_value` text,
  `bbcode_uid` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`block_id`,`parameter_id`),
  KEY `block_id` (`block_id`),
  KEY `parameter_id` (`parameter_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_block_system_parameter`
--

INSERT INTO `portal_block_system_parameter` VALUES (1,15,'Welcome to the Mx-system Portal!\r\n\r\nPlease visit www.mx-system.com for further information.\r\n\r\nThe Mx-Portal version is announced and documented [url=http://www.mx-system.com/forum/viewforum.php?f=11] here[/url].','10bec5b560'),(2,60,'3,4,5',''),(2,61,'33%,*,33%',''),(2,62,'4',''),(3,50,'This is a demo multi textblock!\r\n\r\n - featuring bbcode, html, style parameters (click the EDIT button and try them out) and permissions (view and edit permissions for users and PRIVATE groups).','10bec5b560'),(3,51,'none',''),(3,52,'TRUE',''),(3,53,'TRUE',''),(3,54,'TRUE',''),(4,15,'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode, html and permissions (view and edit permissions for users and PRIVATE groups).','10bec5b560'),(5,16,'This is a demo html textblock!\r\n\r\n- featuring html and permissions (view and edit permissions for users and PRIVATE groups).','10bec5b560'),(6,36,'',NULL),(6,13,'0',NULL),(16,17,'5',NULL),(16,18,'TRUE',NULL),(16,19,'30',NULL),(16,20,'_self',NULL),(16,21,'left',NULL),(16,22,'TRUE',NULL),(16,37,'',NULL),(16,38,'FALSE',NULL),(16,39,'FALSE',NULL),(16,40,'TRUE',NULL),(18,1,'1',NULL),(18,2,'999',NULL),(18,3,'TRUE',NULL),(18,4,'FALSE',NULL),(18,5,'FALSE',NULL),(18,7,'thumb_news.gif',NULL),(18,8,'thumb_globe.gif',NULL),(18,9,'thumb_globe.gif',NULL),(18,6,'TRUE',NULL),(18,10,'thumb_globe.gif ',NULL),(18,11,'',NULL),(33,15,'Insert your text here',NULL);

--
-- Table structure for table `portal_column`
--

CREATE TABLE `portal_column` (
  `column_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `column_title` varchar(100) DEFAULT NULL,
  `column_order` smallint(5) unsigned NOT NULL DEFAULT '0',
  `bbcode_uid` varchar(10) DEFAULT NULL,
  `column_size` varchar(5) DEFAULT '100%',
  `page_id` smallint(5) NOT NULL DEFAULT '0',
  PRIMARY KEY (`column_id`),
  KEY `cat_order` (`column_order`)
) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_column`
--

INSERT INTO `portal_column` VALUES (1,'Column 1',10,NULL,'220',1),(2,'Column 2',20,NULL,'100%',1),(20,'Menu',10,NULL,'200',2),(21,'Forum',20,NULL,'100%',2),(22,'DOING BUSINESS WITH NORRISTOWN',30,NULL,'100%',3);

--
-- Table structure for table `portal_column_block`
--

CREATE TABLE `portal_column_block` (
  `column_id` smallint(5) NOT NULL DEFAULT '0',
  `block_id` smallint(5) NOT NULL DEFAULT '0',
  `block_order` smallint(5) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_column_block`
--

INSERT INTO `portal_column_block` VALUES (1,8,10),(1,16,20),(1,6,30),(1,13,40),(1,7,50),(1,14,60),(2,1,10),(2,2,10),(2,18,20),(2,19,10),(20,8,10),(20,16,20),(21,24,20),(21,19,10),(22,8,10),(22,4,20);

--
-- Table structure for table `portal_function`
--

CREATE TABLE `portal_function` (
  `function_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `module_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `function_name` varchar(150) DEFAULT NULL,
  `function_desc` text,
  `function_file` varchar(255) DEFAULT NULL,
  `function_admin` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`function_id`),
  KEY `module_id` (`module_id`)
) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_function`
--

INSERT INTO `portal_function` VALUES (10,10,'Forum phpBB','Forum phpBB','mx_forum.php',NULL),(11,10,'Navigation Menu','Menu Navigation','mx_menu_nav.php','admin/admin_mx_menu.php'),(12,10,'Polls','Polls','mx_poll.php',NULL),(13,10,'Language Select','Language Select','mx_language.php',NULL),(14,10,'Login','Login','mx_login.php',NULL),(15,10,'Theme Select','Theme Select','mx_theme.php',NULL),(16,10,'Google','Google','mx_google.php',NULL),(17,10,'Announcements','Announcements','mx_announce.php',NULL),(18,10,'Who is Online','Who is Online','mx_online.php',NULL),(19,10,'Multiple Horizontal Blocks','Block that can arrange other blocks in a horizontal line.','mx_multiple_blocks.php',''),(20,20,'TextBlock_BBcode','TextBlock_BBcode','mx_textblock_bbcode.php','modules/mx_textblocks/admin/admin_edit.php'),(21,20,'TextBlock_Html','TextBlock_Html','mx_textblock_html.php','modules/mx_textblocks/admin/admin_edit.php'),(22,20,'TextBlock_Multi','Textblock for bbcode and html with parameters','mx_textblock_multi.php','modules/mx_textblocks/admin/admin_edit.php'),(30,30,'Post Last Message','Post Last Message','mx_last_msg.php',NULL),(40,40,'Statistics MX','Statistics MX','mx_statistics.php',NULL);

--
-- Table structure for table `portal_menu_categories`
--

CREATE TABLE `portal_menu_categories` (
  `block_id` smallint(5) unsigned NOT NULL DEFAULT '1',
  `cat_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `cat_title` varchar(100) DEFAULT NULL,
  `cat_order` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `bbcode_uid` varchar(10) DEFAULT NULL,
  `cat_desc` text,
  `cat_show` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`cat_id`),
  KEY `cat_order` (`cat_order`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_menu_categories`
--

INSERT INTO `portal_menu_categories` VALUES (8,1,'Main Menu',20,NULL,NULL,1);

--
-- Table structure for table `portal_menu_nav`
--

CREATE TABLE `portal_menu_nav` (
  `menu_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `menu_name` varchar(150) DEFAULT NULL,
  `menu_desc` text,
  `menu_links` varchar(255) DEFAULT NULL,
  `auth_view` tinyint(2) NOT NULL DEFAULT '0',
  `menu_order` smallint(5) unsigned DEFAULT '0',
  `bbcode_uid` varchar(10) DEFAULT NULL,
  `menu_icon` varchar(255) DEFAULT NULL,
  `function_id` smallint(5) unsigned DEFAULT '0',
  `block_id` smallint(8) NOT NULL DEFAULT '0',
  `page_id` smallint(5) unsigned DEFAULT '0',
  `auth_view_group` smallint(5) NOT NULL DEFAULT '0',
  `link_target` tinyint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`menu_id`),
  KEY `cat_id` (`cat_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_menu_nav`
--

INSERT INTO `portal_menu_nav` VALUES (1,1,'Home','Home Page','index.php',0,10,'bc5d5e65eb','icon_home.gif',0,0,0,0,0),(2,1,'Forum','phpBB Forum','index.php',0,20,'1a7e19f246','icon_forum.gif',0,0,2,0,0),(3,1,'Statistics','Statistics Module','',0,30,'e16b0fbb51','icon_stat.gif',40,0,0,0,0);

--
-- Table structure for table `portal_module`
--

CREATE TABLE `portal_module` (
  `module_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `module_name` varchar(150) DEFAULT NULL,
  `module_path` varchar(255) DEFAULT NULL,
  `module_desc` text,
  `module_include_admin` char(1) DEFAULT '0',
  PRIMARY KEY (`module_id`)
) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_module`
--

INSERT INTO `portal_module` VALUES (10,'Core Blocks','./','Core blocks',''),(20,'Text Blocks','modules/mx_textblocks/','Textblocks module',''),(30,'Post Last Message','modules/mx_last_msg/','Last Message Module','0'),(40,'Statistics MX','modules/mx_statistics/','Statistics Modules','0');

--
-- Table structure for table `portal_page`
--

CREATE TABLE `portal_page` (
  `page_id` smallint(5) NOT NULL AUTO_INCREMENT,
  `page_name` varchar(255) DEFAULT NULL,
  `page_icon` varchar(255) DEFAULT NULL,
  `auth_view` tinyint(2) NOT NULL DEFAULT '0',
  `auth_view_group` smallint(5) NOT NULL DEFAULT '0',
  `page_header` varchar(255) DEFAULT 'overall_header.tpl',
  PRIMARY KEY (`page_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_page`
--

INSERT INTO `portal_page` VALUES (1,'Home','icon_home.gif',0,0,'overall_header.tpl'),(2,'Forum','icon_forum.gif',0,0,'overall_header.tpl'),(3,'Business','icon_home.gif',0,0,'overall_header.tpl');

--
-- Table structure for table `portal_parameter`
--

CREATE TABLE `portal_parameter` (
  `parameter_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `function_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `parameter_name` varchar(150) DEFAULT NULL,
  `parameter_type` varchar(30) DEFAULT NULL,
  `parameter_default` varchar(150) DEFAULT NULL,
  `parameter_function` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`parameter_id`)
) ENGINE=MyISAM AUTO_INCREMENT=63 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_parameter`
--

INSERT INTO `portal_parameter` VALUES (1,17,'announce_nbr_display','Number','1',NULL),(2,17,'announce_nbr_days','Number','14',NULL),(3,17,'announce_display','Boolean','TRUE',NULL),(4,17,'announce_display_sticky','Boolean','TRUE',NULL),(5,17,'announce_display_normal','Boolean','FALSE',NULL),(7,17,'announce_img','Text','thumb_globe.gif',NULL),(8,17,'announce_img_sticky','Text','thumb_globe.gif',NULL),(9,17,'announce_img_normal','Text','thumb_globe.gif',NULL),(6,17,'announce_display_global','Boolean','TRUE',NULL),(10,17,'announce_img_global','Text','thumb_globe.gif',NULL),(11,17,'announce_forum','Function',NULL,'get_list_multiple(\"{parameter_id}[]\", FORUMS_TABLE, \'forum_id\', \'forum_name\', \"{parameter_value}\", TRUE)'),(13,12,'Poll_Display','Function','0','poll_select( {parameter_value}, \"{parameter_id}\" )'),(36,12,'poll_forum','Function','','get_list_multiple(\"{parameter_id}[]\", FORUMS_TABLE, \'forum_id\', \'forum_name\', \"{parameter_value}\", TRUE)'),(15,20,'Text','BBText','Insert your text here',NULL),(16,21,'Html','Html','Entre your Html code here',NULL),(17,30,'Last_Msg_Number_Title','Number','15',NULL),(18,30,'Last_Msg_Display_Date','Boolean','TRUE',NULL),(19,30,'Last_Msg_Title_Length','Number','30',NULL),(20,30,'Last_Msg_Target','Values','_blank',NULL),(21,30,'Last_Msg_Align','Values','left',NULL),(22,30,'Last_Msg_Display_Forum','Boolean','TRUE',NULL),(37,30,'Last_Msg_forum','Function','','get_list_multiple(\"{parameter_id}[]\", FORUMS_TABLE, \'forum_id\', \'forum_name\', \"{parameter_value}\", TRUE)'),(38,30,'Last_Msg_Display_Last_Author','Boolean','TRUE',''),(39,30,'Last_Msg_Display_Author','Boolean','FALSE',''),(40,30,'Last_Msg_Display_Icon_View','Boolean','TRUE',''),(50,22,'Text','BBText','Enter your block text here',''),(51,22,'text_style','Values','none',''),(52,22,'block_style','Boolean','TRUE',''),(53,22,'title_style','Boolean','TRUE',''),(54,22,'show_title','Boolean','TRUE',''),(60,19,'block_ids','Function','1,2,3','get_list_multiple( \"{parameter_id}[]\", BLOCK_TABLE, \'block_id\', \'block_title\', \"{parameter_value}\", TRUE)'),(61,19,'block_sizes','Text','20%,30%,*',''),(62,19,'space_between','Number','4','');

--
-- Table structure for table `portal_parameter_option`
--

CREATE TABLE `portal_parameter_option` (
  `option_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `parameter_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `option_code` varchar(150) DEFAULT NULL,
  `option_desc` text,
  PRIMARY KEY (`option_id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_parameter_option`
--

INSERT INTO `portal_parameter_option` VALUES (3,21,'left','left '),(4,21,'right','right'),(5,21,'center','center'),(6,20,'_blank','New Window'),(7,20,'_self','Current Window');

--
-- Table structure for table `portal_portal`
--

CREATE TABLE `portal_portal` (
  `portal_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `portal_name` varchar(150) DEFAULT NULL,
  `portal_phpbb_url` varchar(255) DEFAULT 'http://www.phpbb.com/phpBB/',
  `portal_url` varchar(255) DEFAULT NULL,
  `portal_version` varchar(255) DEFAULT NULL,
  `top_phpbb_links` smallint(5) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`portal_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portal_portal`
--

INSERT INTO `portal_portal` VALUES (1,'Norristown Municipality','http://panda.liquidweb.com/~norristo/dev/forum/','http://panda.liquidweb.com/~norristo/dev/','2.7.6',1);


