-- phpMyAdmin SQL Dump
-- version 4.0.10.10
-- http://www.phpmyadmin.net
--
-- Хост: 127.0.0.1:3306
-- Время создания: Фев 21 2016 г., 17:11
-- Версия сервера: 5.5.45
-- Версия PHP: 5.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- База данных: `wcms`
--
-- --------------------------------------------------------
--
-- Структура таблицы `board_ads`
--
CREATE TABLE IF NOT EXISTS `board_ads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cat_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`img` varchar(11) NOT NULL,
`name` varchar(50) NOT NULL,
`desc` text NOT NULL,
`end` int(11) NOT NULL,
`time` int(11) NOT NULL,
`views` int(11) NOT NULL,
`status` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Дамп данных таблицы `board_ads`
--
INSERT INTO `board_ads` (`id`, `cat_id`, `user_id`, `img`, `name`, `desc`, `end`, `time`, `views`, `status`) VALUES
(1, 2, 1, '1456028698', 'BB коды', 'Продаю скрипт для JohnCMS 6.2.0 проверка', 1456155522, 1455982722, 18, 1);
-- --------------------------------------------------------
--
-- Структура таблицы `board_categories`
--
CREATE TABLE IF NOT EXISTS `board_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cat_id` int(11) NOT NULL,
`name` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Дамп данных таблицы `board_categories`
--
INSERT INTO `board_categories` (`id`, `cat_id`, `name`) VALUES
(1, 0, 'Скрипты'),
(2, 1, 'Продаю'),
(3, 1, 'Куплю');
-- --------------------------------------------------------
--
-- Структура таблицы `board_settings`
--
CREATE TABLE IF NOT EXISTS `board_settings` (
`key` tinytext NOT NULL,
`val` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `board_settings`
--
INSERT INTO `board_settings` (`key`, `val`) VALUES
('moderation', '1'),
('price', '50'),
('free_days', '5'),
('pay', '0'),
('mail', '0');
-- --------------------------------------------------------
--
-- Структура таблицы `cms_ads`
--
CREATE TABLE IF NOT EXISTS `cms_ads` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(3) unsigned NOT NULL DEFAULT '0',
`view` tinyint(3) unsigned NOT NULL DEFAULT '0',
`layout` tinyint(3) unsigned NOT NULL DEFAULT '0',
`count` int(10) unsigned NOT NULL DEFAULT '0',
`count_link` int(10) unsigned NOT NULL DEFAULT '0',
`name` text NOT NULL,
`link` text NOT NULL,
`to` int(10) unsigned NOT NULL DEFAULT '0',
`color` varchar(10) NOT NULL DEFAULT '',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`day` int(10) unsigned NOT NULL DEFAULT '0',
`mesto` tinyint(3) unsigned NOT NULL DEFAULT '0',
`bold` tinyint(1) NOT NULL DEFAULT '0',
`italic` tinyint(1) NOT NULL DEFAULT '0',
`underline` tinyint(1) NOT NULL DEFAULT '0',
`show` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_album_cat`
--
CREATE TABLE IF NOT EXISTS `cms_album_cat` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`sort` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(40) NOT NULL DEFAULT '',
`description` text NOT NULL,
`password` varchar(20) NOT NULL DEFAULT '',
`access` tinyint(4) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `access` (`access`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_album_comments`
--
CREATE TABLE IF NOT EXISTS `cms_album_comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sub_id` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`text` text NOT NULL,
`reply` text NOT NULL,
`attributes` text NOT NULL,
PRIMARY KEY (`id`),
KEY `sub_id` (`sub_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_album_downloads`
--
CREATE TABLE IF NOT EXISTS `cms_album_downloads` (
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`file_id` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`,`file_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_album_files`
--
CREATE TABLE IF NOT EXISTS `cms_album_files` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`album_id` int(10) unsigned NOT NULL,
`description` text NOT NULL,
`img_name` varchar(100) NOT NULL DEFAULT '',
`tmb_name` varchar(100) NOT NULL DEFAULT '',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`comments` tinyint(1) NOT NULL DEFAULT '1',
`comm_count` int(10) unsigned NOT NULL DEFAULT '0',
`access` tinyint(4) unsigned NOT NULL DEFAULT '0',
`vote_plus` int(11) NOT NULL DEFAULT '0',
`vote_minus` int(11) NOT NULL DEFAULT '0',
`views` int(10) unsigned NOT NULL DEFAULT '0',
`downloads` int(10) unsigned NOT NULL DEFAULT '0',
`unread_comments` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `album_id` (`album_id`),
KEY `access` (`access`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_album_views`
--
CREATE TABLE IF NOT EXISTS `cms_album_views` (
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`file_id` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`,`file_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_album_votes`
--
CREATE TABLE IF NOT EXISTS `cms_album_votes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`file_id` int(10) unsigned NOT NULL DEFAULT '0',
`vote` tinyint(2) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `file_id` (`file_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_ban_ip`
--
CREATE TABLE IF NOT EXISTS `cms_ban_ip` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip1` bigint(11) NOT NULL DEFAULT '0',
`ip2` bigint(11) NOT NULL DEFAULT '0',
`ban_type` tinyint(4) NOT NULL DEFAULT '0',
`link` varchar(100) NOT NULL,
`who` varchar(25) NOT NULL,
`reason` text NOT NULL,
`date` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ip1` (`ip1`),
UNIQUE KEY `ip2` (`ip2`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_ban_users`
--
CREATE TABLE IF NOT EXISTS `cms_ban_users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`ban_time` int(11) NOT NULL DEFAULT '0',
`ban_while` int(11) NOT NULL DEFAULT '0',
`ban_type` tinyint(4) NOT NULL DEFAULT '1',
`ban_who` varchar(30) NOT NULL DEFAULT '',
`ban_ref` int(11) NOT NULL DEFAULT '0',
`ban_reason` text NOT NULL,
`ban_raz` varchar(30) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `ban_time` (`ban_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_contact`
--
CREATE TABLE IF NOT EXISTS `cms_contact` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`from_id` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`type` tinyint(1) unsigned NOT NULL DEFAULT '1',
`friends` tinyint(1) unsigned NOT NULL DEFAULT '0',
`ban` tinyint(1) unsigned NOT NULL DEFAULT '0',
`man` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id_user` (`user_id`,`from_id`),
KEY `time` (`time`),
KEY `ban` (`ban`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_counters`
--
CREATE TABLE IF NOT EXISTS `cms_counters` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sort` int(10) NOT NULL DEFAULT '1',
`name` varchar(30) NOT NULL,
`link1` text NOT NULL,
`link2` text NOT NULL,
`mode` tinyint(4) NOT NULL DEFAULT '1',
`switch` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Дамп данных таблицы `cms_counters`
--
INSERT INTO `cms_counters` (`id`, `sort`, `name`, `link1`, `link2`, `mode`, `switch`) VALUES
(1, 1, 'MobTop.Ru', '<a href="http://wap-script.ru"><img src="http://mobtop.ru/108854.gif" alt="WAP-Script.Ru"/></a>', '<a href="http://wap-script.ru"><img src="http://mobtop.ru/108854.gif" alt="WAP-Script.Ru"/></a>', 1, 1),
(2, 2, 'WAP-Script.Ru', '<a href="http://wap-script.ru"><img src="http://wupu.ru/2191" alt="WAP-Script.Ru"/></a>', '<a href="http://wap-script.ru"><img src="http://wupu.ru/2191" alt="WAP-Script.Ru"/></a>', 1, 1);
-- --------------------------------------------------------
--
-- Структура таблицы `cms_forum_files`
--
CREATE TABLE IF NOT EXISTS `cms_forum_files` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cat` int(10) unsigned NOT NULL DEFAULT '0',
`subcat` int(10) unsigned NOT NULL DEFAULT '0',
`topic` int(10) unsigned NOT NULL DEFAULT '0',
`post` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`filename` text NOT NULL,
`filetype` tinyint(3) unsigned NOT NULL DEFAULT '0',
`dlcount` int(10) unsigned NOT NULL DEFAULT '0',
`del` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `cat` (`cat`),
KEY `subcat` (`subcat`),
KEY `topic` (`topic`),
KEY `post` (`post`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_forum_rdm`
--
CREATE TABLE IF NOT EXISTS `cms_forum_rdm` (
`topic_id` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`topic_id`,`user_id`),
KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cms_forum_rdm`
--
INSERT INTO `cms_forum_rdm` (`topic_id`, `user_id`, `time`) VALUES
(5, 1, 1456058834);
-- --------------------------------------------------------
--
-- Структура таблицы `cms_forum_vote`
--
CREATE TABLE IF NOT EXISTS `cms_forum_vote` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` int(2) NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`topic` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(200) NOT NULL,
`count` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `type` (`type`),
KEY `topic` (`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_forum_vote_users`
--
CREATE TABLE IF NOT EXISTS `cms_forum_vote_users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL DEFAULT '0',
`topic` int(11) NOT NULL,
`vote` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `topic` (`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_library_comments`
--
CREATE TABLE IF NOT EXISTS `cms_library_comments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sub_id` int(11) unsigned NOT NULL,
`time` int(11) NOT NULL,
`user_id` int(11) unsigned NOT NULL,
`text` text NOT NULL,
`reply` text,
`attributes` text NOT NULL,
PRIMARY KEY (`id`),
KEY `sub_id` (`sub_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_library_rating`
--
CREATE TABLE IF NOT EXISTS `cms_library_rating` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`st_id` int(11) NOT NULL,
`point` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`,`st_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_mail`
--
CREATE TABLE IF NOT EXISTS `cms_mail` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`from_id` int(10) unsigned NOT NULL DEFAULT '0',
`text` text NOT NULL,
`time` int(10) unsigned NOT NULL DEFAULT '0',
`read` tinyint(1) unsigned NOT NULL DEFAULT '0',
`sys` tinyint(1) unsigned NOT NULL DEFAULT '0',
`delete` int(10) unsigned NOT NULL DEFAULT '0',
`file_name` varchar(100) NOT NULL DEFAULT '',
`count` int(10) NOT NULL DEFAULT '0',
`size` int(10) NOT NULL DEFAULT '0',
`them` varchar(100) NOT NULL DEFAULT '',
`spam` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `from_id` (`from_id`),
KEY `time` (`time`),
KEY `read` (`read`),
KEY `sys` (`sys`),
KEY `delete` (`delete`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_sessions`
--
CREATE TABLE IF NOT EXISTS `cms_sessions` (
`session_id` char(32) NOT NULL DEFAULT '',
`ip` bigint(11) NOT NULL DEFAULT '0',
`ip_via_proxy` bigint(11) NOT NULL DEFAULT '0',
`browser` varchar(255) NOT NULL DEFAULT '',
`lastdate` int(10) unsigned NOT NULL DEFAULT '0',
`sestime` int(10) unsigned NOT NULL DEFAULT '0',
`views` int(10) unsigned NOT NULL DEFAULT '0',
`movings` smallint(5) unsigned NOT NULL DEFAULT '0',
`place` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`session_id`),
KEY `lastdate` (`lastdate`),
KEY `place` (`place`(10))
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cms_sessions`
--
INSERT INTO `cms_sessions` (`session_id`, `ip`, `ip_via_proxy`, `browser`, `lastdate`, `sestime`, `views`, `movings`, `place`) VALUES
('967b2358db6371aba9a8e9b3e6969c03', 2130706433, 0, 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 YaBrowser/15.12.1.6758 Safari/537.36', 1455988131, 1455987832, 0, 12, 'login'),
('acb4d0fa9bca92099b919c4840bba23f', 2130706433, 0, 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.2.0.3539 Safari/537.36', 1456028495, 1456028419, 0, 14, 'login');
-- --------------------------------------------------------
--
-- Структура таблицы `cms_settings`
--
CREATE TABLE IF NOT EXISTS `cms_settings` (
`key` tinytext NOT NULL,
`val` text NOT NULL,
PRIMARY KEY (`key`(30))
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cms_settings`
--
INSERT INTO `cms_settings` (`key`, `val`) VALUES
('active', '1'),
('admp', 'panel'),
('antiflood', 'a:5:{s:4:"mode";i:2;s:3:"day";i:10;s:5:"night";i:30;s:7:"dayfrom";i:10;s:5:"dayto";i:22;}'),
('clean_time', '1456055402'),
('copyright', 'WAP-Script.Ru'),
('email', '[email protected]'),
('flsz', '4000'),
('gzip', '1'),
('homeurl', 'http://wcms'),
('karma', 'a:6:{s:12:"karma_points";i:5;s:10:"karma_time";i:86400;s:5:"forum";i:20;s:4:"time";i:0;s:2:"on";i:1;s:3:"adm";i:0;}'),
('lng', 'ru'),
('mod_reg', '2'),
('mod_forum', '2'),
('mod_guest', '2'),
('mod_lib', '2'),
('mod_gal', '0'),
('mod_down_comm', '1'),
('mod_down', '2'),
('mod_lib_comm', '1'),
('mod_gal_comm', ''),
('meta_desc', 'WAP-Script.Ru - Самая большая коллекция вап скриптов'),
('meta_key', 'wap-script, php, cms, dcms, johncms, rotorcms, mysql, css, xhtml, wap, сайт, программы, скрипты, модули, движки'),
('news', 'a:8:{s:4:"view";i:1;s:4:"size";i:200;s:8:"quantity";i:5;s:4:"days";i:3;s:6:"breaks";i:1;s:7:"smileys";i:1;s:4:"tags";i:1;s:3:"kom";i:1;}'),
('reg_message', 'Привет, {LOGIN}\r\nМы рады видеть Вас на нашем сайте.\r\nЗаходите чаще и Вам тут понравится.\r\nС уважением, Администрация.'),
('setting_mail', 'a:2:{s:11:"cat_friends";i:0;s:15:"message_include";i:0;}'),
('skindef', 'wap-script'),
('them_message', 'Добро пожаловать!'),
('timeshift', '9'),
('site_access', '2'),
('lng_list', 'a:2:{s:2:"en";s:7:"English";s:2:"ru";s:14:"Русский";}');
-- --------------------------------------------------------
--
-- Структура таблицы `cms_users_data`
--
CREATE TABLE IF NOT EXISTS `cms_users_data` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`key` varchar(30) NOT NULL DEFAULT '',
`val` text NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `key` (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_users_guestbook`
--
CREATE TABLE IF NOT EXISTS `cms_users_guestbook` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sub_id` int(10) unsigned NOT NULL,
`time` int(11) NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`text` text NOT NULL,
`reply` text NOT NULL,
`attributes` text NOT NULL,
PRIMARY KEY (`id`),
KEY `sub_id` (`sub_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `cms_users_iphistory`
--
CREATE TABLE IF NOT EXISTS `cms_users_iphistory` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`ip` bigint(11) NOT NULL DEFAULT '0',
`ip_via_proxy` bigint(11) NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `user_ip` (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `downfiles`
--
CREATE TABLE IF NOT EXISTS `downfiles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(2) NOT NULL DEFAULT '0',
`pathid` int(11) NOT NULL,
`way` text NOT NULL,
`name` text NOT NULL,
`desc` text NOT NULL,
`time` int(11) NOT NULL,
`rating` varchar(3) NOT NULL DEFAULT '0',
`gol` text NOT NULL,
`count` int(11) NOT NULL DEFAULT '0',
`size` int(11) NOT NULL DEFAULT '0',
`login` text NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '1',
`themeid` int(11) NOT NULL DEFAULT '0',
`status` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `pathid` (`pathid`),
KEY `time` (`time`),
KEY `type_status` (`type`,`status`),
FULLTEXT KEY `desc` (`desc`),
FULLTEXT KEY `way` (`way`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Дамп данных таблицы `downfiles`
--
INSERT INTO `downfiles` (`id`, `type`, `pathid`, `way`, `name`, `desc`, `time`, `rating`, `gol`, `count`, `size`, `login`, `user_id`, `themeid`, `status`) VALUES
(2, 0, 2, 'scripts/johncms//bb.zip.zip', 'bb.zip||||', '[b]Описание:[/b] ББ коды как на dcms\r\n[b]Установка[/b]\r\nРаспаковать в корень с заменой.\r\n[b]Автор:[/b] Jesk\r\n[b]Версия:[/b] 1.1\r\n[b]Совместимость:[/b] 6.2.0\r\n[b]Адрес сайта:[/b] http://wap-script.ru\r\n', 1456057239, '5', '1', 0, 79368, 'Jesk', 1, 5, 1);
-- --------------------------------------------------------
--
-- Структура таблицы `downkomm`
--
CREATE TABLE IF NOT EXISTS `downkomm` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fileid` int(11) NOT NULL,
`time` int(11) NOT NULL,
`userid` int(11) NOT NULL,
`text` text NOT NULL,
`plus` int(11) NOT NULL,
`minus` int(11) NOT NULL,
`golos` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `download`
--
CREATE TABLE IF NOT EXISTS `download` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`refid` int(11) NOT NULL DEFAULT '0',
`adres` text NOT NULL,
`time` int(11) NOT NULL DEFAULT '0',
`name` text NOT NULL,
`type` varchar(4) NOT NULL DEFAULT '',
`avtor` varchar(25) NOT NULL DEFAULT '',
`ip` text NOT NULL,
`soft` text NOT NULL,
`text` text NOT NULL,
`screen` text NOT NULL,
PRIMARY KEY (`id`),
KEY `type` (`type`),
KEY `refid` (`refid`),
KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `downpath`
--
CREATE TABLE IF NOT EXISTS `downpath` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`refid` int(11) NOT NULL,
`way` text NOT NULL,
`name` text NOT NULL,
`desc` text NOT NULL,
`position` int(11) NOT NULL,
`dost` int(11) NOT NULL DEFAULT '0',
`types` varchar(250) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `ref` (`refid`),
KEY `position` (`position`),
FULLTEXT KEY `way` (`way`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=3 ;
--
-- Дамп данных таблицы `downpath`
--
INSERT INTO `downpath` (`id`, `refid`, `way`, `name`, `desc`, `position`, `dost`, `types`) VALUES
(1, 0, 'scripts/', 'Скрипты', '', 0, 0, 'all'),
(2, 1, 'scripts/johncms//', 'JohnCMS движки/моды', '', 0, 0, 'all');
-- --------------------------------------------------------
--
-- Структура таблицы `downscreen`
--
CREATE TABLE IF NOT EXISTS `downscreen` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fileid` int(11) NOT NULL,
`way` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=3 ;
--
-- Дамп данных таблицы `downscreen`
--
INSERT INTO `downscreen` (`id`, `fileid`, `way`) VALUES
(1, 1, 'bb.zip.zip.png'),
(2, 2, 'bb.zip.zip.png');
-- --------------------------------------------------------
--
-- Структура таблицы `down_bookmarks`
--
CREATE TABLE IF NOT EXISTS `down_bookmarks` (
`user` int(11) NOT NULL,
`file` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `forum`
--
CREATE TABLE IF NOT EXISTS `forum` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`refid` int(10) unsigned NOT NULL DEFAULT '0',
`type` char(1) NOT NULL DEFAULT '',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`from` varchar(25) NOT NULL DEFAULT '',
`realid` int(3) NOT NULL DEFAULT '0',
`ip` bigint(11) NOT NULL DEFAULT '0',
`ip_via_proxy` bigint(11) NOT NULL DEFAULT '0',
`soft` text NOT NULL,
`text` text NOT NULL,
`close` tinyint(1) NOT NULL DEFAULT '0',
`close_who` varchar(25) NOT NULL DEFAULT '',
`vip` tinyint(1) NOT NULL DEFAULT '0',
`edit` text NOT NULL,
`tedit` int(10) unsigned NOT NULL DEFAULT '0',
`kedit` int(2) unsigned NOT NULL DEFAULT '0',
`curators` text NOT NULL,
PRIMARY KEY (`id`),
KEY `refid` (`refid`),
KEY `type` (`type`),
KEY `time` (`time`),
KEY `close` (`close`),
KEY `user_id` (`user_id`),
FULLTEXT KEY `text` (`text`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- Дамп данных таблицы `forum`
--
INSERT INTO `forum` (`id`, `refid`, `type`, `time`, `user_id`, `from`, `realid`, `ip`, `ip_via_proxy`, `soft`, `text`, `close`, `close_who`, `vip`, `edit`, `tedit`, `kedit`, `curators`) VALUES
(1, 0, 'f', 0, 0, '', 1, 0, 0, 'Все, что касается нашего сайта.', 'Наш сайт', 0, '', 0, '0', 0, 0, ''),
(2, 1, 'r', 0, 0, '', 1, 0, 0, 'Ваши предложения по развитию сайта.', 'Работа ресурса', 0, '', 0, '0', 0, 0, ''),
(3, 1, 'r', 0, 0, '', 2, 0, 0, 'Обновления на сайте и ваше мнение.', 'Новости', 0, '', 0, '0', 0, 0, ''),
(4, 1, 'r', 0, 0, '', 3, 0, 0, '', 'Файлы в загруз центре', 0, '', 0, '0', 0, 0, ''),
(5, 4, 't', 1456058813, 1, 'Jesk', 0, 0, 0, '', 'bb.zip', 0, '', 0, '', 0, 0, ''),
(6, 5, 'm', 1456058813, 1, 'Jesk', 0, 2130706433, 0, 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.2.0.3539 Safari/537.36', '[b]Описание:[/b] ББ коды как на dcms\r\n[b]Установка[/b]\r\nРаспаковать в корень с заменой.\r\n[b]Автор:[/b] Jesk\r\n[b]Версия:[/b] 1.1\r\n[b]Совместимость:[/b] 6.2.0\r\n[b]Адрес сайта:[/b] http://wap-script.ru\r\n[url=http://wcms/download/bb.zip_2.html]bb.zip[/url]', 0, '', 0, '', 0, 0, '');
-- --------------------------------------------------------
--
-- Структура таблицы `gallery`
--
CREATE TABLE IF NOT EXISTS `gallery` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`refid` int(11) NOT NULL DEFAULT '0',
`time` int(11) NOT NULL DEFAULT '0',
`type` varchar(2) NOT NULL DEFAULT '',
`avtor` varchar(25) NOT NULL DEFAULT '',
`text` text NOT NULL,
`name` text NOT NULL,
`user` binary(1) NOT NULL DEFAULT '\0',
`ip` text NOT NULL,
`soft` text NOT NULL,
PRIMARY KEY (`id`),
KEY `refid` (`refid`),
KEY `type` (`type`),
KEY `time` (`time`),
KEY `avtor` (`avtor`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `guest`
--
CREATE TABLE IF NOT EXISTS `guest` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`adm` tinyint(1) NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(25) NOT NULL DEFAULT '',
`text` text NOT NULL,
`ip` bigint(11) NOT NULL DEFAULT '0',
`browser` tinytext NOT NULL,
`admin` varchar(25) NOT NULL DEFAULT '',
`otvet` text NOT NULL,
`otime` int(10) unsigned NOT NULL DEFAULT '0',
`edit_who` varchar(20) NOT NULL DEFAULT '',
`edit_time` int(10) unsigned NOT NULL DEFAULT '0',
`edit_count` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `time` (`time`),
KEY `ip` (`ip`),
KEY `adm` (`adm`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Дамп данных таблицы `guest`
--
INSERT INTO `guest` (`id`, `adm`, `time`, `user_id`, `name`, `text`, `ip`, `browser`, `admin`, `otvet`, `otime`, `edit_who`, `edit_time`, `edit_count`) VALUES
(1, 0, 1455978306, 1, 'Jesk', '[add] test', 2130706433, 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 YaBrowser/15.12.1.6758 Safari/537.36', 'Jesk', '[add] test', 1455978323, 'Jesk', 1455978318, 1);
-- --------------------------------------------------------
--
-- Структура таблицы `karma_users`
--
CREATE TABLE IF NOT EXISTS `karma_users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(50) NOT NULL DEFAULT '',
`karma_user` int(10) unsigned NOT NULL DEFAULT '0',
`points` tinyint(3) unsigned NOT NULL DEFAULT '0',
`type` tinyint(3) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
`text` text NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `karma_user` (`karma_user`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `library_cats`
--
CREATE TABLE IF NOT EXISTS `library_cats` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`parent` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(200) NOT NULL DEFAULT '',
`description` text NOT NULL,
`dir` tinyint(1) NOT NULL DEFAULT '0',
`pos` int(10) unsigned NOT NULL DEFAULT '0',
`user_add` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `library_tags`
--
CREATE TABLE IF NOT EXISTS `library_tags` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lib_text_id` int(10) unsigned NOT NULL DEFAULT '0',
`tag_name` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `lib_text_id` (`lib_text_id`),
KEY `tag_name` (`tag_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `library_texts`
--
CREATE TABLE IF NOT EXISTS `library_texts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cat_id` int(10) unsigned NOT NULL DEFAULT '0',
`text` mediumtext NOT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`announce` text,
`uploader` varchar(100) NOT NULL DEFAULT '',
`uploader_id` int(10) unsigned NOT NULL DEFAULT '0',
`count_views` int(10) unsigned NOT NULL DEFAULT '0',
`premod` tinyint(1) NOT NULL DEFAULT '0',
`comments` tinyint(1) NOT NULL DEFAULT '0',
`count_comments` int(10) unsigned NOT NULL DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
FULLTEXT KEY `text` (`text`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `main_logo`
--
CREATE TABLE IF NOT EXISTS `main_logo` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`on` int(1) NOT NULL,
`main` int(1) NOT NULL,
`other` int(11) NOT NULL,
`left` int(1) NOT NULL,
`center` int(11) NOT NULL,
`right` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Дамп данных таблицы `main_logo`
--
INSERT INTO `main_logo` (`id`, `on`, `main`, `other`, `left`, `center`, `right`) VALUES
(1, 1, 1, 1, 1, 0, 0);
-- --------------------------------------------------------
--
-- Структура таблицы `news`
--
CREATE TABLE IF NOT EXISTS `news` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`time` int(10) unsigned NOT NULL DEFAULT '0',
`avt` varchar(25) NOT NULL DEFAULT '',
`name` text NOT NULL,
`text` text NOT NULL,
`kom` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Дамп данных таблицы `news`
--
INSERT INTO `news` (`id`, `time`, `avt`, `name`, `text`, `kom`) VALUES
(1, 1455978729, 'Jesk', 'Добро пожаловать', 'Всем привет сайт можно сказать открыт.\r\nВ дальнейшем ещё будет дорабатываться.\r\nОставайтесь с WAP-Script.Ru', 0);
-- --------------------------------------------------------
--
-- Структура таблицы `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL DEFAULT '',
`name_lat` varchar(40) NOT NULL DEFAULT '',
`password` varchar(32) NOT NULL DEFAULT '',
`rights` tinyint(3) unsigned NOT NULL DEFAULT '0',
`failed_login` tinyint(3) unsigned NOT NULL DEFAULT '0',
`imname` varchar(50) NOT NULL DEFAULT '',
`sex` varchar(2) NOT NULL DEFAULT '',
`komm` int(10) unsigned NOT NULL DEFAULT '0',
`postforum` int(10) unsigned NOT NULL DEFAULT '0',
`postguest` int(10) unsigned NOT NULL DEFAULT '0',
`yearofbirth` int(4) NOT NULL DEFAULT '0',
`datereg` int(10) unsigned NOT NULL DEFAULT '0',
`lastdate` int(10) unsigned NOT NULL DEFAULT '0',
`mail` varchar(50) NOT NULL DEFAULT '',
`icq` int(10) unsigned NOT NULL DEFAULT '0',
`skype` varchar(50) NOT NULL DEFAULT '',
`jabber` varchar(50) NOT NULL DEFAULT '',
`www` varchar(50) NOT NULL DEFAULT '',
`about` text NOT NULL,
`live` varchar(100) NOT NULL DEFAULT '',
`mibile` varchar(50) NOT NULL DEFAULT '',
`status` varchar(100) NOT NULL DEFAULT '',
`ip` bigint(11) NOT NULL DEFAULT '0',
`ip_via_proxy` bigint(11) NOT NULL DEFAULT '0',
`browser` text NOT NULL,
`preg` tinyint(1) NOT NULL DEFAULT '0',
`regadm` varchar(25) NOT NULL DEFAULT '',
`mailvis` tinyint(1) NOT NULL DEFAULT '0',
`dayb` int(2) NOT NULL DEFAULT '0',
`monthb` int(2) NOT NULL DEFAULT '0',
`sestime` int(10) unsigned NOT NULL DEFAULT '0',
`total_on_site` int(10) unsigned NOT NULL DEFAULT '0',
`lastpost` int(10) unsigned NOT NULL DEFAULT '0',
`rest_code` varchar(32) NOT NULL DEFAULT '',
`rest_time` int(10) unsigned NOT NULL DEFAULT '0',
`movings` int(10) unsigned NOT NULL DEFAULT '0',
`place` varchar(30) NOT NULL DEFAULT '',
`set_user` text NOT NULL,
`set_forum` text NOT NULL,
`set_mail` text NOT NULL,
`karma_plus` int(11) NOT NULL DEFAULT '0',
`karma_minus` int(11) NOT NULL DEFAULT '0',
`karma_time` int(10) unsigned NOT NULL DEFAULT '0',
`karma_off` tinyint(1) unsigned NOT NULL DEFAULT '0',
`comm_count` int(10) unsigned NOT NULL DEFAULT '0',
`comm_old` int(10) unsigned NOT NULL DEFAULT '0',
`smileys` text NOT NULL,
PRIMARY KEY (`id`),
KEY `name_lat` (`name_lat`),
KEY `lastdate` (`lastdate`),
KEY `place` (`place`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Дамп данных таблицы `users`
--
INSERT INTO `users` (`id`, `name`, `name_lat`, `password`, `rights`, `failed_login`, `imname`, `sex`, `komm`, `postforum`, `postguest`, `yearofbirth`, `datereg`, `lastdate`, `mail`, `icq`, `skype`, `jabber`, `www`, `about`, `live`, `mibile`, `status`, `ip`, `ip_via_proxy`, `browser`, `preg`, `regadm`, `mailvis`, `dayb`, `monthb`, `sestime`, `total_on_site`, `lastpost`, `rest_code`, `rest_time`, `movings`, `place`, `set_user`, `set_forum`, `set_mail`, `karma_plus`, `karma_minus`, `karma_time`, `karma_off`, `comm_count`, `comm_old`, `smileys`) VALUES
(1, 'Jesk', 'jesk', '14e1b600b1fd579f47433b88e8d85291', 9, 0, '', 'm', 0, 0, 1, 0, 1455967564, 1456063859, '[email protected]', 0, '', '', 'http://wap-script.ru', '', '', '', '[email protected]', 2130706433, 0, 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.2.0.3539 Safari/537.36', 1, '', 0, 0, 0, 1456062387, 17085, 1456058813, '', 0, 37, 'mainpage', '', '', '', 0, 0, 1456055402, 0, 0, 0, ''),
(2, 'Root', 'root', 'b9be11166d72e9e3ae7fd407165e4bd2', 0, 0, 'Dmitry Borisov', 'm', 0, 0, 0, 0, 1455985096, 1456028477, '', 0, '', '', '', 'Support Team', '', '', '', 2130706433, 0, 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.2.0.3539 Safari/537.36', 1, '', 0, 0, 0, 1456028439, 494, 0, '', 0, 10, '', '', '', '', 0, 0, 1455985099, 0, 0, 0, '');