INSERT INTO `qb_module` (`id`, `type`, `name`, `pre`, `dirname`, `domain`, `admindir`, `config`, `list`, `admingroup`, `adminmember`, `ifclose`) VALUES (22, 2, '站内流量统计', 'count_', 'count', '', '', '', 0, '', '', 0);


# --------------------------------------------------------

#
# 表的结构 `qb_count_config`
#

DROP TABLE IF EXISTS `qb_count_config`;
CREATE TABLE `qb_count_config` (
  `c_key` varchar(50) NOT NULL default '',
  `c_value` text NOT NULL,
  `c_descrip` text NOT NULL,
  PRIMARY KEY  (`c_key`)
) TYPE=MyISAM;

#
# 导出表中的数据 `qb_count_config`
#

INSERT INTO `qb_count_config` VALUES ('module_id', '22', '');
INSERT INTO `qb_count_config` VALUES ('module_pre', 'count_', '');

# --------------------------------------------------------

#
# 表的结构 `qb_count_site`
#

DROP TABLE IF EXISTS `qb_count_site`;
CREATE TABLE `qb_count_site` (
  `fid` mediumint(7) NOT NULL auto_increment,
  `fup` mediumint(7) NOT NULL default '0',
  `name` varchar(100) NOT NULL default '',
  `list` mediumint(5) NOT NULL default '0',
  `ifclose` tinyint(1) NOT NULL default '0',
  `count_num` mediumint(7) NOT NULL default '0',
  PRIMARY KEY  (`fid`)
) TYPE=MyISAM AUTO_INCREMENT=3 ;

#
# 导出表中的数据 `qb_count_site`
#

INSERT INTO `qb_count_site` VALUES (1, 0, '整站', 0, 0, 0);
INSERT INTO `qb_count_site` VALUES (2, 0, '论坛', 0, 0, 0);

# --------------------------------------------------------

#
# 表的结构 `qb_count_stat`
#

DROP TABLE IF EXISTS `qb_count_stat`;
CREATE TABLE `qb_count_stat` (
  `id` int(10) NOT NULL auto_increment,
  `fid` mediumint(7) NOT NULL default '0',
  `year` mediumint(4) NOT NULL default '0',
  `month` tinyint(2) NOT NULL default '0',
  `week` tinyint(2) NOT NULL default '0',
  `day` smallint(3) NOT NULL default '0',
  `hour` tinyint(2) NOT NULL default '0',
  `pv` mediumint(7) NOT NULL default '0',
  `uv` mediumint(7) NOT NULL default '0',
  `ip` mediumint(7) NOT NULL default '0',
  `windows_type` text NOT NULL,
  `ie_type` text NOT NULL,
  `windows_lang` text NOT NULL,
  `screen_size` text NOT NULL,
  `from_domain` text NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `fid` (`fid`)
) TYPE=MyISAM AUTO_INCREMENT=102922 ;

#
# 导出表中的数据 `qb_count_stat`
#

INSERT INTO `qb_count_stat` VALUES (102491, 1, 2010, 9, 36, 7, 0, 56, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102481, 1, 2010, 9, 36, 6, 0, 51, 4, 4, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102501, 1, 2010, 9, 36, 8, 0, 35, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102511, 1, 2010, 9, 36, 9, 0, 22, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102551, 1, 2010, 9, 37, 13, 0, 25, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102561, 1, 2010, 9, 37, 14, 0, 265, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102571, 1, 2010, 9, 37, 15, 0, 160, 2, 2, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102581, 1, 2010, 9, 37, 16, 0, 135, 2, 2, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102591, 1, 2010, 9, 37, 17, 0, 286, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102601, 1, 2010, 9, 37, 18, 0, 123, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102621, 1, 2010, 9, 38, 20, 0, 23, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102631, 1, 2010, 9, 38, 21, 0, 22, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102671, 1, 2010, 9, 38, 25, 0, 36, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102681, 1, 2010, 9, 38, 26, 0, 21, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102721, 1, 2010, 9, 39, 30, 0, 2, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102811, 1, 2010, 10, 40, 9, 0, 1, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102831, 1, 2010, 10, 41, 11, 0, 5, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102881, 1, 2010, 10, 41, 16, 0, 1, 1, 1, '', '', '', '', '');
INSERT INTO `qb_count_stat` VALUES (102921, 1, 2010, 10, 42, 20, 0, 2, 1, 1, '', '', '', '', '');

# --------------------------------------------------------

#
# 表的结构 `qb_count_user`
#

DROP TABLE IF EXISTS `qb_count_user`;
CREATE TABLE `qb_count_user` (
  `id` int(10) NOT NULL auto_increment,
  `fid` mediumint(7) NOT NULL default '0',
  `time_day` tinyint(2) NOT NULL default '0',
  `username` varchar(32) NOT NULL default '',
  `lasttime` int(10) NOT NULL default '0',
  `ip` varchar(15) NOT NULL default '',
  `ip_address` varchar(50) NOT NULL default '',
  `fromurl` varchar(255) NOT NULL default '',
  `weburl` varchar(150) NOT NULL default '',
  `lasturl` varchar(150) NOT NULL default '',
  `windows_type` varchar(30) NOT NULL default '',
  `ie_type` varchar(30) NOT NULL default '',
  `windows_lang` varchar(30) NOT NULL default '',
  `screen_size` varchar(30) NOT NULL default '',
  `hits` mediumint(7) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `username` (`username`),
  KEY `time_day` (`time_day`,`ip`),
  KEY `fid` (`fid`)
) TYPE=MyISAM AUTO_INCREMENT=10 ;

#
# 导出表中的数据 `qb_count_user`
#

INSERT INTO `qb_count_user` VALUES (9, 1, 20, 'admin', 1287550447, '127.0.0.1', '', '', 'http://v7.com/do/', 'http://v7.com/sell/', 'Windows XP', 'IE 6.0', 'zh-cn', '1440*900', 2);
