-- WJCMS网站管理系统
-- WEBSITE:http://www.wjcms.cn
-- WJCMS Version 1.1;||||||||||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";||||||
DROP TABLE IF EXISTS `wjcms_ad`;||||||
CREATE TABLE `wjcms_ad` (
  `id` mediumint(9) NOT NULL auto_increment COMMENT 'ID',
  `title` varchar(50) NOT NULL,
  `code` text NOT NULL,
  `url` varchar(80) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_admin`;||||||
CREATE TABLE `wjcms_admin` (
  `id` mediumint(9) NOT NULL auto_increment,
  `adminname` varchar(20) NOT NULL,
  `adminpass` varchar(32) NOT NULL,
  `adminsize` varchar(5) NOT NULL,
  `endtime` int(10) NOT NULL,
  `lock` tinyint(4) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_cat`;||||||
CREATE TABLE `wjcms_cat` (
  `id` mediumint(9) NOT NULL auto_increment,
  `parentid` int(40) NOT NULL default '0',
  `mod` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `logo` varchar(70) NOT NULL,
  `meta_title` varchar(50) NOT NULL,
  `meta_description` varchar(255) NOT NULL,
  `meta_keywords` varchar(60) NOT NULL,
  `description` varchar(255) NOT NULL,
  `dir` varchar(20) NOT NULL,
  `xu` int(11) NOT NULL,
  `tem` varchar(30) NOT NULL,
  `num` mediumint(9) NOT NULL,
  `ismenu` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `parentid` (`parentid`,`mod`,`dir`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_comment`;||||||
CREATE TABLE `wjcms_comment` (
  `id` mediumint(9) NOT NULL auto_increment,
  `user` varchar(50) NOT NULL,
  `content` varchar(255) NOT NULL,
  `cid` int(11) NOT NULL,
  `catid` int(11) NOT NULL,
  `ip` char(15) NOT NULL,
  PRIMARY KEY  (`id`,`cid`,`catid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_erro`;||||||
CREATE TABLE `wjcms_erro` (
  `id` mediumint(9) NOT NULL auto_increment,
  `cid` int(11) NOT NULL,
  `catid` int(11) NOT NULL,
  PRIMARY KEY  (`id`,`cid`,`catid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_link`;||||||
CREATE TABLE `wjcms_link` (
  `id` mediumint(9) NOT NULL auto_increment,
  `name` varchar(40) NOT NULL,
  `type` tinyint(1) NOT NULL,
  `img` char(80) NOT NULL,
  `url` char(80) NOT NULL,
  `tj` tinyint(1) NOT NULL,
  `title` char(40) NOT NULL,
  PRIMARY KEY  (`id`,`type`,`tj`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=2 ;||||||
INSERT INTO `wjcms_link` (`id`, `name`, `type`, `img`, `url`, `tj`, `title`) VALUES
(1, 'WJCMS', 1, '', 'http://www.wjcms.cn', 1, 'WJCMS,优秀PHP开源网站管理系统'),
(2, 'WJCMS', 2, 'http://www.wjcms.cn/logo.gif', 'http://www.wjcms.cn/', 1, 'WJCMS,优秀PHP开源网站管理系统');||||||
DROP TABLE IF EXISTS `wjcms_menu`;||||||
CREATE TABLE `wjcms_menu` (
  `menuid` smallint(5) unsigned NOT NULL auto_increment,
  `parentid` smallint(5) unsigned NOT NULL default '0',
  `name` char(20) NOT NULL,
  `url` char(100) NOT NULL,
  `isfolder` tinyint(1) NOT NULL,
  PRIMARY KEY  (`menuid`),
  KEY `parentid` (`parentid`,`menuid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=57 ;||||||
INSERT INTO `wjcms_menu` (`menuid`, `parentid`, `name`, `url`, `isfolder`) VALUES
(2, 1, '我的面板', '', 1),
(3, 1, '栏目管理', '', 1),
(5, 1, '模板广告', '', 1),
(6, 2, '系统设置', '', 1),
(7, 6, '添加菜单', '?action=menu&amp;mot=add', 0),
(8, 6, '管理菜单', '?action=menu&amp;mot=edt', 0),
(9, 6, '系统设置', '?action=config', 0),
(10, 3, '栏目管理', '', 1),
(11, 10, '添加栏目', '?action=cat&amp;mot=add', 0),
(12, 10, '栏目管理', '?action=cat', 0),
(13, 1, '内容管理', '', 1),
(14, 1, '生成管理', '', 1),
(15, 14, '生成主页', '?action=html&amp;mot=index', 0),
(16, 5, '模板管理', '', 1),
(17, 16, '模板方案', '?action=templates&amp;mot=config', 0),
(18, 16, '模板管理', '?action=templates&amp;mot=set', 0),
(19, 5, '广告管理', '', 1),
(20, 19, '广告位管理', '?action=ad', 0),
(21, 19, '添加广告', '?action=ad&amp;mot=add', 0),
(24, 13, '评论管理', '', 1),
(25, 24, '查看评论', '?action=comment', 0),
(29, 2, '数据管理', '', 1),
(30, 29, '备份数据', '?action=sql&amp;mot=bf', 0),
(31, 29, '恢复数据', '?action=sql&amp;mot=hy', 0),
(32, 2, '模块管理', '', 1),
(33, 32, '模块查看', '?action=mod&mot=see', 0),
(34, 32, '模块添加', '?action=mod&mot=add', 0),
(35, 6, '水印设置', '?action=water', 0),
(36, 13, '采集管理', '', 1),
(37, 36, '采集项目', '?action=spider', 0),
(38, 36, '添加采集', '?action=spider&mot=add', 0),
(39, 36, '采集入库', '?action=spider&mot=connent', 0),
(40, 14, '生成栏目', '?action=html&mot=cat', 0),
(41, 14, '生成内容页', '?action=html&mot=show', 0),
(42, 29, '删除缓存', '?action=get&mot=del_cache', 0),
(43, 3, '专题管理', '', 1),
(44, 43, '专题添加', '?action=space&mot=add', 0),
(45, 43, '专题管理', '?action=space', 0),
(46, 43, '专题生成', '?action=html&mot=space', 0),
(47, 2, '友情连接', '', 1),
(48, 47, '友情连接', '?action=link', 0),
(49, 47, '连接添加', '?action=link&mot=add', 0),
(50, 14, '生成专题', '?action=html&mot=space', 0),
(51, 6, '帐户管理', '?action=admin', 0),
(52, 29, '附件管理', '?action=water&mot=imgs', 0),
(53, 6, '木马扫描', '?action=safe', 0),
(54, 13, '错误报告', '?action=comment&mot=erro', 0),
(55, 32, '制作模块', '?action=mod&mot=make_mod', 0),
(56, 32, '模块更新', '?action=mod', 0),
(57, 14, '生成sitemap', '?action=html&mot=sitemap', 0);||||||
DROP TABLE IF EXISTS `wjcms_mod`;||||||
CREATE TABLE `wjcms_mod` (
  `id` mediumint(9) NOT NULL auto_increment,
  `modname` varchar(50) NOT NULL,
  `modfile` varchar(20) NOT NULL,
  `info` varchar(255) NOT NULL,
  `sql` char(10) NOT NULL,
  `on` tinyint(1) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `modname` (`modname`,`modfile`,`info`,`sql`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_space`;||||||
CREATE TABLE `wjcms_space` (
  `id` mediumint(9) NOT NULL auto_increment,
  `name` varchar(36) NOT NULL,
  `mod` int(11) NOT NULL default '0',
  `num` int(11) NOT NULL,
  `img` varchar(40) NOT NULL,
  `keywords` varchar(36) NOT NULL,
  `description` varchar(255) NOT NULL,
  `hits` int(11) NOT NULL,
  `tjs` tinyint(1) NOT NULL,
  `intime` int(10) NOT NULL,
  `tem` varchar(25) NOT NULL,
  PRIMARY KEY  (`id`,`mod`,`num`),
  KEY `name` USING BTREE (`name`,`keywords`,`hits`,`tjs`,`intime`,`tem`,`mod`,`num`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;||||||
DROP TABLE IF EXISTS `wjcms_spider`;||||||
CREATE TABLE `wjcms_spider` (
  `id` mediumint(9) NOT NULL auto_increment,
  `catid` mediumint(9) NOT NULL,
  `name` varchar(40) NOT NULL,
  `webname` varchar(40) NOT NULL,
  `intime` int(10) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `catid` (`catid`,`name`,`webname`,`intime`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=7 ;||||||
INSERT INTO `wjcms_spider` (`id`, `catid`, `name`, `webname`, `intime`) VALUES
(6, 20, '720P', 'http://qvod.720p.cn/list.php?cat=dzp', 0);||||||
DROP TABLE IF EXISTS `wjcms_xq`;||||||
CREATE TABLE `wjcms_xq` (
  `id` mediumint(9) NOT NULL auto_increment,
  `catid` mediumint(9) NOT NULL,
  `showid` int(10) NOT NULL,
  `xq1` int(10) NOT NULL,
  `xq2` int(10) NOT NULL,
  `xq3` int(10) NOT NULL,
  `xq4` int(10) NOT NULL,
  `xq5` int(10) NOT NULL,
  `xq6` int(10) NOT NULL,
  `xq7` int(10) NOT NULL,
  `xq8` int(10) NOT NULL,
  `xq9` int(10) NOT NULL,
  `xq10` int(10) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `catid` (`catid`,`showid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=0 ;||||||