SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]adcriterias`
CREATE TABLE `[[dbprefix]]adcriterias` (
`adCriterionId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`htmlContent` text NOT NULL,
PRIMARY KEY (`adCriterionId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]ads`
CREATE TABLE `[[dbprefix]]ads` (
`adId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`adCriterionId` mediumint(8) unsigned NOT NULL,
`page` varchar(64) NOT NULL,
`place` varchar(64) NOT NULL,
KEY `adCriterionId` (`adCriterionId`),
KEY `page` (`page`,`place`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]allopasscodes`
CREATE TABLE `[[dbprefix]]allopasscodes` (
`useDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]bannedemails`
CREATE TABLE `[[dbprefix]]bannedemails` (
`banId` mediumint(8) NOT NULL AUTO_INCREMENT,
`email` varchar(64) NOT NULL,
`dateBanned` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]bannedips`
CREATE TABLE `[[dbprefix]]bannedips` (
`banId` mediumint(8) NOT NULL AUTO_INCREMENT,
`remoteIp` varchar(15) NOT NULL,
`dateBanned` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]bannedsites`
CREATE TABLE `[[dbprefix]]bannedsites` (
`banId` mediumint(8) NOT NULL AUTO_INCREMENT,
`site` varchar(255) NOT NULL,
`dateBanned` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]bannedtags`
CREATE TABLE `[[dbprefix]]bannedtags` (
`banId` mediumint(8) NOT NULL AUTO_INCREMENT,
`tag` varchar(255) NOT NULL,
`dateBanned` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]cachegoogledetails`
CREATE TABLE `[[dbprefix]]cachegoogledetails` (
`cachePageRankID` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(64) NOT NULL,
`pageRank` tinyint(2) unsigned NOT NULL,
`backlinksCount` int(11) unsigned NOT NULL,
`indexedPagesCount` int(11) unsigned NOT NULL,
`generationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`cachePageRankID`),
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]captchacodes`
CREATE TABLE `[[dbprefix]]captchacodes` (
`publicCode` varchar(32) NOT NULL,
`privateCode` varchar(4) NOT NULL,
`generationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`publicCode`),
KEY `generationDate` (`generationDate`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]categories`
CREATE TABLE `[[dbprefix]]categories` (
`categoryId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`parentCategoryId` mediumint(8) NOT NULL,
`name` varchar(64) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text NOT NULL,
`imageSrc` varchar(255) DEFAULT NULL,
`possibleTender` enum('0','1') NOT NULL,
`validatedSitesCount` mediumint(8) unsigned NOT NULL DEFAULT '0',
`forbidden` enum('0','1') NOT NULL DEFAULT '0',
`urlName` varchar(128) NOT NULL,
`navigationName` varchar(128) NOT NULL,
`headerDescription` varchar(255) NOT NULL,
`metaDescription` text NOT NULL,
`position` smallint(5) unsigned NOT NULL DEFAULT '0',
`searchEngineSettings` text,
PRIMARY KEY (`categoryId`),
KEY `parentCategoryId` (`parentCategoryId`,`position`),
KEY `urlName` (`urlName`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]categoryparents`
CREATE TABLE `[[dbprefix]]categoryparents` (
`parentId` mediumint(8) unsigned NOT NULL,
`childId` mediumint(8) unsigned NOT NULL,
`depth` tinyint(2) unsigned NOT NULL,
KEY `childId` (`childId`,`depth`),
KEY `parentId` (`parentId`,`depth`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]comments`
CREATE TABLE `[[dbprefix]]comments` (
`commentId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`remoteIp` varchar(15) NOT NULL,
`siteId` mediumint(8) unsigned NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`pseudo` varchar(255) NOT NULL,
`validated` enum('0','1') NOT NULL DEFAULT '0',
`rating` tinyint(3) unsigned DEFAULT NULL,
PRIMARY KEY (`commentId`),
KEY `siteId` (`siteId`,`remoteIp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]custommessages`
CREATE TABLE `[[dbprefix]]custommessages` (
`messageId` varchar(20) NOT NULL,
`description` text NOT NULL,
`userText` text NOT NULL,
`userDefined` enum('0','1') NOT NULL DEFAULT '1',
`type` enum('email','custom') NOT NULL DEFAULT 'email',
PRIMARY KEY (`messageId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- Dumping data for table `[[dbprefix]]custommessages`
INSERT INTO `[[dbprefix]]custommessages` VALUES
('validateSite', 'Your site is validated', 'Your site [site name] is validated in the category [name of the category].<br /><br />\r\n\r\nYou can see your site at this address <a href="[url site details]">See your site</a>.<br /><br />\r\n\r\nThank you for subbmited your site in our directory <a href="[url of your directory]">[name of directory]</a>', 'When you validate a site', '0', 'email'),
('refuseSite', 'Your site is rejected', 'Your site [site name] is rejected in the category [name of the category].<br />\r\nIt does not correspond to the criteria for listing in our directory.<br /><br />\r\n\r\nAfter modifying your site, do not hesitate to come to resubmit in our directory <a href="[url of your directory]">[name of directory]</a>.', 'For mail received by the webmaster if the site is refused', '0', 'email'),
('banSite', 'Your site is banned ', 'Your site [site name] is banned in our directory.<br /><br />\r\n\r\nThank you for subbmited your site in our directory <a href="[url of your directory]">[name of directory]</a>', 'For mail received by the webmaster if the site is banned', '0', 'email'),
('submitSite', 'A new website has just been submitted ', 'Information to the new site:<br />\r\nName: [site name]<br />\r\nURL: [url site]<br />\r\nDescription: [description of the site]<br />\r\nCategory: [name of the category]\r\n\r\n', 'Received by administrator the directory when a site is submitted', '0', 'email'),
('directoryDescription', 'Title description 1 for a better ranking in search engines if you want', 'description 1 for a better ranking in search engines if you want.', '', '0', 'custom'),
('directoryCondition', '', 'Regulation and condition of submission of websites. <br />\r\n<br />\r\n<br />\r\ndddd\r\n<br />\r\n<br />', '', '0', 'custom'),
('webmasterSubmitSite', 'Your site has been successfully submitted ', 'Information on your site:<br />\r\nName: [site name]<br />\r\nURL: [url site]<br />\r\nDescription: [description of the site]<br />\r\nYour site has been submitted in the category [name of the category]<br /><br />\r\n\r\nThank you for submitting your site in our directory <a href="[url of your directory]">[name of directory]</a>\r\n', 'Email received by the webmaster when he submitt a site', '0', 'email'),
('newsletterEmailAdd', 'Confirm your newsletter registration', 'Confirm your registration by clicking on the link below.<br /><br />\r\n\r\n<a href="[confirm link]">Confirm</a><br /><br />\r\n\r\n<a href="[url of your directory]">[name of directory]</a>\r\n', 'Email received by the user who add his email to newsletter', '0', 'email'),
('newsletterEmailDel', 'Confirm your newsletter unsubscribe', 'Confirm your unsubscribe by clicking on the link below.<br /><br />\r\n\r\n<a href="[confirm link]">Confirm your unsubscribe</a><br /><br />\r\n\r\n\r\n<a href="[url of your directory]">[name of directory]</a>\r\n', 'Email received by the user who delete his email from newsletter', '0', 'email'),
('siteEmail', 'Confirm submission of your site', 'To confirm the submission of your site, thank you to click on the link below.<br /><br />\r\n\r\n\r\n<a href="[confirm link]">Confirm your site submission</a><br /><br />\r\n\r\n\r\n<a href="[url of your directory]">[name of directory]</a>', 'Email received by the user who submit site and confirm email is ON.', '0', 'email'),
('userEmail', 'Confirm your registration', 'To confirm your registration, thank you to click on the link below<br /><br />\r\n\r\n<a href="[confirm link]">Confirm your registration</a><br /><br />\r\n\r\n<a href="[url of your directory]">[name of directory]</a>', 'Email received by the user who register to confirm his email.', '0', 'email'),
('newsletterFooter', '', '<br /><br />\r\n<a href="[unsubscribe link]">\r\nClick here to unsubscribe me\r\n</a>', 'Newsletter footer', '0', 'email'),
('newComment', 'New commment was posted in your directory', 'New commment was posted in your directory.<br /><br />\r\n\r\n<a href="[url of your directory]">[url of your directory]</a>', 'Emails recived when new comment was posted', '0', 'email'),
('newSiteProblem', 'New site problem was posted in your directory', 'New site problem was posted in your directory.<br /><br />\r\n\r\n<a href="[url of your directory]">[url of your directory]</a>', 'Emails recived when new site problem was posted', '0', 'email'),
('webmasterContact', 'Webmaster contact', 'A user want contact you<br /><br />\r\n\r\nHis message : [message]<br /><br />\r\n\r\nHis email <b>[sender email]<b/><br /><br />\r\nThank you, <a href="[url of your directory]">[name of directory]</a>\r\n\r\n', 'Webmaster contact', '0', 'email');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]extrafieldcategories`
CREATE TABLE `[[dbprefix]]extrafieldcategories` (
`categoryId` mediumint(8) unsigned NOT NULL,
`fieldId` mediumint(8) unsigned NOT NULL,
KEY `categoryId` (`categoryId`),
KEY `fieldId` (`fieldId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]extrafieldoptions`
CREATE TABLE `[[dbprefix]]extrafieldoptions` (
`fieldId` mediumint(8) unsigned NOT NULL,
`value` smallint(5) unsigned NOT NULL,
`label` varchar(128) NOT NULL,
`position` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`fieldId`,`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]extrafields`
CREATE TABLE `[[dbprefix]]extrafields` (
`fieldId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`type` enum('text','textarea','select','radio','checkbox','range','url','file') NOT NULL,
`required` enum('0','1') NOT NULL,
`inSearchEngine` enum('0','1') NOT NULL DEFAULT '0',
`position` tinyint(3) unsigned NOT NULL DEFAULT '0',
`suffix` varchar(128) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]extrafieldvalues`
CREATE TABLE `[[dbprefix]]extrafieldvalues` (
`itemId` mediumint(8) unsigned NOT NULL,
`fieldId` mediumint(8) unsigned NOT NULL,
`value` smallint(5) unsigned DEFAULT NULL,
KEY `itemId` (`itemId`,`fieldId`),
FULLTEXT KEY `text` (`text`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]hits`
CREATE TABLE `[[dbprefix]]hits` (
`hitId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`remoteIp` char(15) NOT NULL,
`siteId` mediumint(8) unsigned NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
KEY `siteId` (`siteId`,`remoteIp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]keywords`
CREATE TABLE `[[dbprefix]]keywords` (
`keywordId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`keyword` varchar(64) NOT NULL,
`description` text NOT NULL,
PRIMARY KEY (`keywordId`),
KEY `keyword` (`keyword`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]keywordsofsites`
CREATE TABLE `[[dbprefix]]keywordsofsites` (
`keywordId` mediumint(8) unsigned NOT NULL,
`siteId` mediumint(8) unsigned NOT NULL,
KEY `keywordId` (`keywordId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]newsletteremails`
CREATE TABLE `[[dbprefix]]newsletteremails` (
`emailId` mediumint(9) NOT NULL AUTO_INCREMENT,
`email` varchar(128) NOT NULL,
`active` enum('0','1') NOT NULL DEFAULT '0',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]otherreferrersites`
CREATE TABLE `[[dbprefix]]otherreferrersites` (
`referrerSiteId` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(255) NOT NULL,
`referrerTimes` mediumint(8) NOT NULL,
PRIMARY KEY (`referrerSiteId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]packages`
CREATE TABLE `[[dbprefix]]packages` (
`packageId` mediumint(9) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`amount` float(10,2) NOT NULL,
`allopassId` varchar(32) DEFAULT NULL,
`allopassNumber` tinyint(4) DEFAULT NULL,
`priority` tinyint(4) NOT NULL,
`description` text NOT NULL,
`imageSrc` varchar(64) DEFAULT NULL,
`siteDescriptionMaxLength` int(11) NOT NULL DEFAULT '500',
`maxKeywordsCountPerSite` tinyint(4) NOT NULL DEFAULT '5',
`backLinkMandatory` enum('0','1') NOT NULL,
`siteDescriptionHtmlEnabled` enum('0','1') NOT NULL,
`siteDescriptionHtmlAllowedTags` text NOT NULL,
`siteDescriptionHtmlAllowedCssProperties` text NOT NULL,
`siteDescriptionMinLength` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`packageId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]paymentprocessors`
CREATE TABLE `[[dbprefix]]paymentprocessors` (
`processorId` varchar(32) NOT NULL,
`displayName` varchar(64) NOT NULL,
`active` enum('0','1') NOT NULL,
`currency` char(3) NOT NULL,
`testMode` enum('0','1') NOT NULL,
`email` varchar(64) DEFAULT NULL,
PRIMARY KEY (`processorId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- Dumping data for table `[[dbprefix]]paymentprocessors`
INSERT INTO `[[dbprefix]]paymentprocessors` VALUES
('Allopass', 'Allopass', '0', 'EUR', '1', ''),
('PayPal', 'PayPal', '0', 'EUR', '1', '');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]payments`
CREATE TABLE `[[dbprefix]]payments` (
`paymentId` int(11) NOT NULL AUTO_INCREMENT,
`processorId` varchar(64) NOT NULL,
`packageId` mediumint(9) NOT NULL,
`amount` float(10,2) NOT NULL,
`description` text NOT NULL,
`userId` mediumint(9) unsigned DEFAULT NULL,
`createDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` enum('unpaid','pending','paid','denied') NOT NULL DEFAULT 'unpaid',
`used` enum('0','1') NOT NULL DEFAULT '0',
`currency` char(3) NOT NULL,
`siteId` mediumint(8) unsigned DEFAULT NULL,
PRIMARY KEY (`paymentId`),
KEY `createDate` (`createDate`),
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]photos`
CREATE TABLE `[[dbprefix]]photos` (
`photoId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`itemId` mediumint(8) unsigned NOT NULL,
`src` varchar(32) NOT NULL,
`addDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`tempId` varchar(32) DEFAULT NULL,
`altText` varchar(255) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]refusals`
CREATE TABLE `[[dbprefix]]refusals` (
`moderatorId` mediumint(8) unsigned NOT NULL,
`refusedSitesCount` mediumint(8) unsigned NOT NULL DEFAULT '0',
KEY `moderatorId` (`moderatorId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- Dumping data for table `[[dbprefix]]refusals`
INSERT INTO `[[dbprefix]]refusals` VALUES
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]rewrites`
CREATE TABLE `[[dbprefix]]rewrites` (
`originalUrl` varchar(128) NOT NULL,
`rewrittedUrl` varchar(128) NOT NULL,
PRIMARY KEY (`originalUrl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]searchtags`
CREATE TABLE `[[dbprefix]]searchtags` (
`tagId` int(11) NOT NULL AUTO_INCREMENT,
`tag` varchar(128) NOT NULL,
`searchTimes` int(11) NOT NULL DEFAULT '1',