DROP TABLE IF EXISTS `#__actions`;
CREATE TABLE `#__actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`component` varchar(20) NOT NULL,
`name` varchar(20) NOT NULL,
`title` varchar(100) NOT NULL,
`message` varchar(255) NOT NULL,
`is_tracked` tinyint(4) NOT NULL,
`is_visible` tinyint(4) NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`,`is_visible`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
INSERT INTO `#__actions` (`id`, `component`, `name`, `title`, `message`, `is_tracked`, `is_visible`) VALUES
(2, 'comments', 'add_comment', 'Добавление комментария', 'добавляет %s| на странице %s', 1, 1),
(7, 'photos', 'add_photo', 'Добавление фото', 'добавляет фото %s| в альбом %s', 1, 1),
(8, 'content', 'add_article', 'Добавление статьи', 'добавляет статью %s| в раздел %s', 1, 1),
(9, 'blogs', 'add_blog', 'Создание блога пользователем', 'создает блог %s|', 1, 1),
(10, 'blogs', 'add_post', 'Добавление записи в блог', 'пишет пост %s| в блоге %s', 1, 1),
(11, 'users', 'set_status', 'Изменение статуса пользователя', '', 1, 1),
(12, 'board', 'add_board', 'Добавление объявления', 'добавляет объявление %s| в рубрику %s', 1, 1),
(13, 'catalog', 'add_catalog', 'Добавление записи в каталог', 'добавляет запись %s| в рубрику каталога %s', 1, 1),
(14, 'clubs', 'add_club', 'Создание клуба', 'создает клуб %s|', 1, 1),
(15, 'clubs', 'add_club_user', 'Вступление в клуб', 'вступает в клуб %s|', 1, 1),
(16, 'faq', 'add_quest', 'Вопрос', 'задает %s| в категории %s', 1, 1),
(17, 'forum', 'add_fpost', 'Добавление поста в форуме', 'добавляет %s| в теме %s', 1, 1),
(18, 'forum', 'add_thread', 'Добавление темы на форуме', 'создает тему %s| на форуме %s', 1, 1),
(19, 'users', 'add_avatar', 'Загрузка или смена аватара пользователем', 'изменяет аватар|', 1, 1),
(20, 'users', 'add_friend', 'Добавление друга', 'и %s стали друзьями|', 1, 1),
(21, 'users', 'add_award', 'Получение награды пользователем', 'получает награду %s|', 1, 1),
(22, 'users', 'add_file', 'Загрузка файла пользователем', 'загружает файл %s|', 1, 1),
(23, 'users', 'add_wall', 'Добавление записи на стену', 'добавляет запись на стене пользователя %s|', 1, 1),
(24, 'clubs', 'add_wall_club', 'Добавление записи на стену клуба', 'добавляет запись на стене клуба %s|', 1, 1),
(25, 'clubs', 'add_post_club', 'Добавление записи в блог клуба', 'пишет пост %s| в клубе %s', 1, 1),
(26, 'users', 'add_user_photo', 'Добавление фото в личный альбом', 'добавляет фото %s| в альбом %s', 1, 1),
(27, 'users', 'add_user_photo_multi', 'Добавление много фоток в личный альбом', 'добавляет %s фото| в альбом %s', 1, 1),
(28, 'registration', 'add_user', 'Регистрация нового пользователя', 'регистрируется. Приветствуем!|', 1, 1),
(29, 'users', 'add_wall_my', 'Добавление записи на свою стену', 'пишет на своей стене| ', 1, 1);
DROP TABLE IF EXISTS `#__actions_log`;
CREATE TABLE `#__actions_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_id` int(11) NOT NULL,
`pubdate` datetime NOT NULL,
`user_id` int(11) NOT NULL,
`object` varchar(100) NOT NULL,
`object_url` varchar(255) NOT NULL,
`object_id` int(11) NOT NULL,
`target` varchar(100) NOT NULL,
`target_url` varchar(255) NOT NULL,
`target_id` int(11) NOT NULL,
`description` varchar(650) DEFAULT NULL,
`is_friends_only` tinyint(4) NOT NULL DEFAULT '0',
`is_users_only` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `action_id` (`action_id`,`user_id`),
KEY `object_id` (`object_id`),
KEY `target_id` (`target_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__banlist`;
CREATE TABLE `#__banlist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`ip` varchar(15) NOT NULL,
`bandate` datetime NOT NULL,
`int_num` int(11) NOT NULL,
`int_period` varchar(20) NOT NULL,
`status` int(11) NOT NULL DEFAULT '1',
`autodelete` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__banners`;
CREATE TABLE `#__banners` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`position` varchar(100) NOT NULL DEFAULT 'banner_top',
`typeimg` varchar(10) NOT NULL DEFAULT 'image',
`fileurl` varchar(250) DEFAULT NULL,
`hits` int(11) NOT NULL,
`clicks` int(11) NOT NULL,
`maxhits` int(11) NOT NULL,
`maxuser` int(11) NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '1',
`pubdate` datetime DEFAULT NULL,
`title` varchar(250) DEFAULT NULL,
`link` varchar(250) DEFAULT NULL,
`published` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
INSERT INTO `#__banners` (`id`, `position`, `typeimg`, `fileurl`, `hits`, `clicks`, `maxhits`, `maxuser`, `user_id`, `pubdate`, `title`, `link`, `published`) VALUES
(4, 'banner1', 'image', 'banner468x60v1.gif', 0, 0, 0, 0, 1, '2009-04-04 19:43:53', 'InstantCMS - Бесплатная система управления сайтом', 'http://www.instantcms.ru/', 1);
DROP TABLE IF EXISTS `#__banner_hits`;
CREATE TABLE `#__banner_hits` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`banner_id` int(11) DEFAULT NULL,
`ip` varchar(16) DEFAULT NULL,
`pubdate` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__blogs`;
CREATE TABLE `#__blogs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`title` varchar(250) NOT NULL,
`pubdate` datetime NOT NULL,
`allow_who` varchar(15) NOT NULL,
`view_type` varchar(15) NOT NULL DEFAULT 'list',
`showcats` int(11) NOT NULL DEFAULT '1',
`ownertype` varchar(15) NOT NULL DEFAULT 'single',
`premod` int(11) NOT NULL,
`forall` int(11) NOT NULL DEFAULT '1',
`owner` varchar(10) NOT NULL DEFAULT 'user',
`seolink` varchar(255) NOT NULL,
`rating` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `seolink` (`seolink`),
KEY `user_id` (`user_id`),
KEY `pubdate` (`pubdate`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__blog_authors`;
CREATE TABLE `#__blog_authors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`blog_id` int(11) NOT NULL,
`description` varchar(100) NOT NULL,
`startdate` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `blog_id` (`blog_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__blog_cats`;
CREATE TABLE `#__blog_cats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`blog_id` int(11) NOT NULL,
`title` varchar(250) NOT NULL,
PRIMARY KEY (`id`),
KEY `blog_id` (`blog_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__blog_files`;
CREATE TABLE `#__blog_files` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`post_id` int(11) NOT NULL,
`filename` varchar(200) NOT NULL,
`filesize` int(11) NOT NULL,
`hits` int(11) NOT NULL,
`pubdate` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__blog_posts`;
CREATE TABLE `#__blog_posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`cat_id` int(11) NOT NULL,
`blog_id` int(11) NOT NULL,
`pubdate` datetime NOT NULL,
`title` varchar(250) NOT NULL,
`feel` varchar(100) NOT NULL,
`music` varchar(100) NOT NULL,
`content` text NOT NULL,
`content_html` text NOT NULL,
`allow_who` varchar(20) NOT NULL,
`edit_times` int(11) NOT NULL,
`edit_date` datetime NOT NULL,
`published` int(11) NOT NULL DEFAULT '1',
`seolink` varchar(255) NOT NULL,
`comments` tinyint(4) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `seolink` (`seolink`),
KEY `blog_id` (`blog_id`),
KEY `user_id` (`user_id`),
FULLTEXT KEY `content` (`content`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__board_cats`;
CREATE TABLE `#__board_cats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent_id` int(11) NOT NULL,
`ordering` int(11) NOT NULL DEFAULT '1',
`NSLeft` int(11) NOT NULL,
`NSRight` int(11) NOT NULL,
`NSDiffer` varchar(15) NOT NULL,
`NSIgnore` int(11) NOT NULL,
`NSLevel` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`description` varchar(100) NOT NULL,
`published` int(11) NOT NULL,
`orderform` int(11) DEFAULT '1',
`showdate` int(11) NOT NULL DEFAULT '1',
`pubdate` datetime NOT NULL,
`orderby` varchar(20) NOT NULL DEFAULT 'title',
`orderto` varchar(4) NOT NULL DEFAULT 'asc',
`public` int(11) NOT NULL,
`perpage` int(11) NOT NULL DEFAULT '15',
`maxcols` int(11) NOT NULL DEFAULT '1',
`thumb1` int(11) NOT NULL DEFAULT '64',
`thumb2` int(11) NOT NULL DEFAULT '400',
`thumbsqr` int(11) NOT NULL,
`uplimit` int(11) NOT NULL DEFAULT '10',
`is_photos` int(11) NOT NULL DEFAULT '1',
`icon` varchar(25) DEFAULT 'folder_grey.png',
`obtypes` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
INSERT INTO `#__board_cats` (`id`, `parent_id`, `ordering`, `NSLeft`, `NSRight`, `NSDiffer`, `NSIgnore`, `NSLevel`, `title`, `description`, `published`, `orderform`, `showdate`, `pubdate`, `orderby`, `orderto`, `public`, `perpage`, `maxcols`, `thumb1`, `thumb2`, `thumbsqr`, `uplimit`, `is_photos`, `icon`, `obtypes`) VALUES
(1, 0, 1, 1, 8, '', 0, 0, '-- Корневая рубрика --', '', 1, 1, 1, '2008-09-22 13:39:32', 'pubdate', 'desc', 0, 15, 1, 64, 400, 0, 10, 1, 'folder_grey.png', ''),
(10, 1, 21, 2, 3, '', 0, 1, 'Услуги', '', 1, 1, 1, '2008-09-22 14:30:29', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Предлагаю\r\nТребуется'),
(9, 1, 23, 6, 7, '', 0, 1, 'Автомобили', '', 1, 1, 1, '2008-09-22 14:30:23', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Куплю\r\nПродам\r\nОбменяю'),
(8, 1, 22, 4, 5, '', 0, 1, 'Недвижимость', '', 1, 1, 1, '2008-09-22 14:30:00', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Продам\r\nКуплю\r\nОбменяю\r\nСдам\r\nСниму');
DROP TABLE IF EXISTS `#__board_items`;
CREATE TABLE `#__board_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`obtype` varchar(50) NOT NULL,
`title` varchar(250) NOT NULL,
`content` text NOT NULL,
`city` varchar(100) NOT NULL,
`pubdate` datetime DEFAULT NULL,
`pubdays` int(11) NOT NULL,
`published` int(11) NOT NULL,
`file` varchar(250) NOT NULL,
`hits` int(11) NOT NULL,
`is_vip` tinyint(4) NOT NULL DEFAULT '0',
`vipdate` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `category_id` (`category_id`),
KEY `user_id` (`user_id`),
KEY `obtype` (`obtype`),
KEY `city` (`city`),
FULLTEXT KEY `content` (`content`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__cache`;
CREATE TABLE `#__cache` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`target` varchar(10) NOT NULL,
`target_id` varchar(255) NOT NULL,
`cachedate` datetime NOT NULL,
`cachefile` varchar(80) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__category`;
CREATE TABLE `#__category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent_id` int(11) DEFAULT NULL,
`title` varchar(200) NOT NULL,
`description` text NOT NULL,
`published` int(11) NOT NULL,
`showdate` int(11) NOT NULL DEFAULT '1',
`showcomm` int(11) NOT NULL DEFAULT '1',
`orderby` varchar(30) NOT NULL DEFAULT 'date',
`orderto` varchar(4) NOT NULL DEFAULT 'asc',
`modgrp_id` int(11) NOT NULL,
`NSLeft` int(11) NOT NULL,
`NSRight` int(11) NOT NULL,
`NSLevel` int(11) NOT NULL,
`NSDiffer` varchar(11) NOT NULL,
`NSIgnore` int(11) NOT NULL,
`ordering` int(11) NOT NULL,
`maxcols` int(11) NOT NULL DEFAULT '1',
`showtags` int(11) NOT NULL DEFAULT '1',
`showrss` int(11) NOT NULL DEFAULT '1',
`showdesc` int(11) NOT NULL,
`is_public` int(11) NOT NULL,
`photoalbum` text NOT NULL,
`seolink` varchar(200) NOT NULL,
`url` varchar(100) NOT NULL,
`tpl` varchar(50) NOT NULL DEFAULT 'com_content_view.tpl',
`cost` varchar(5) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `seolink` (`seolink`),
KEY `parent_id` (`parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
INSERT INTO `#__category` (`id`, `parent_id`, `title`, `description`, `published`, `showdate`, `showcomm`, `orderby`, `orderto`, `modgrp_id`, `NSLeft`, `NSRight`, `NSLevel`, `NSDiffer`, `NSIgnore`, `ordering`, `maxcols`, `showtags`, `showrss`, `showdesc`, `is_public`, `photoalbum`, `seolink`, `url`, `tpl`, `cost`) VALUES
(1, 0, '--Корневой раздел--', 'Корневой раздел сайта', 1, 1, 1, 'pubdate', 'asc', 0, 1, 2, 0, '', 0, 1, 1, 1, 1, 0, 0, '', '--kornevoi-razdel--', '', 'com_content_view.tpl', '');
DROP TABLE IF EXISTS `#__clubs`;
CREATE TABLE `#__clubs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`admin_id` int(11) NOT NULL DEFAULT '1',
`title` text NOT NULL,
`description` longtext NOT NULL,
`imageurl` varchar(100) NOT NULL,
`pubdate` datetime NOT NULL,
`clubtype` varchar(15) NOT NULL DEFAULT 'public',
`published` int(11) NOT NULL DEFAULT '1',
`maxsize` int(11) NOT NULL,
`enabled_blogs` int(11) DEFAULT '1',
`enabled_photos` int(11) DEFAULT '1',
`rating` int(11) NOT NULL,
`photo_premod` int(11) NOT NULL,
`blog_premod` int(11) NOT NULL,
`blog_min_karma` int(11) NOT NULL,
`photo_min_karma` int(11) NOT NULL,
`album_min_karma` int(11) NOT NULL DEFAULT '25',
`join_min_karma` int(11) NOT NULL,
`join_karma_limit` int(11) NOT NULL,
`create_karma` int(11) NOT NULL,
`is_vip` tinyint(4) NOT NULL DEFAULT '0',
`join_cost` float NOT NULL,
PRIMARY KEY (`id`),
KEY `pubdate` (`pubdate`),
KEY `admin_id` (`admin_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__codecheck`;
CREATE TABLE `#__codecheck` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`place` varchar(200) NOT NULL,
`code` varchar(40) NOT NULL,
`session_id` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__comments`;
CREATE TABLE `#__comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent_id` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`target` varchar(20) NOT NULL,
`target_id` int(11) NOT NULL,
`guestname` varchar(200) NOT NULL,
`content` text NOT NULL,
`content_bbcode` text NOT NULL,
`pubdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`published` int(11) NOT NULL DEFAULT '1',
`is_new` int(11) NOT NULL DEFAULT '1',
`target_title` varchar(150) NOT NULL,
`target_link` varchar(200) NOT NULL,
`ip` varchar(15) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `target_id` (`target_id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__comments_votes`;
CREATE TABLE `#__comments_votes` (
`comment_id` int(11) NOT NULL,
`comment_type` varchar(3) NOT NULL,
`vote` smallint(6) NOT NULL,
`user_id` int(11) NOT NULL,
KEY `comment_id` (`comment_id`,`comment_type`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `#__comment_targets`;
CREATE TABLE `#__comment_targets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`target` varchar(32) NOT NULL,
`component` varchar(32) NOT NULL,
`title` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
KEY `target` (`target`,`component`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
INSERT INTO `#__comment_targets` (`id`, `target`, `component`, `title`) VALUES
(1, 'article', 'content', 'Статьи'),
(2, 'blog', 'blogs', 'Посты блогов'),
(3, 'palbum', 'photos', 'Фотоальбомы'),
(4, 'photo', 'photos', 'Фотографии галереи'),
(5, 'userphoto', 'users', 'Фотографии пользователей'),
(6, 'catalog', 'catalog', 'Записи каталога'),
(7, 'boarditem', 'board', 'Объявления'),
(8, 'faq', 'faq', 'Вопросы FAQ');
DROP TABLE IF EXISTS `#__components`;
CREATE TABLE `#__components` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(200) NOT NULL,
`link` varchar(200) NOT NULL,
`config` text NOT NULL,
`internal` int(11) NOT NULL,
`author` varchar(200) NOT NULL DEFAULT 'InstantCMS team',
`published` int(11) NOT NULL DEFAULT '1',
`version` varchar(6) NOT NULL DEFAULT '1.5',
`system` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
INSERT INTO `#__components` (`id`, `title`, `link`, `config`, `internal`, `author`, `published`, `version`, `system`) VALUES
(1, 'Каталог статей', 'content', '---\nreaddesc: 0\nrating: 1\nperpage: 15\npt_show: 1\npt_disp: 1\npt_hide: 1\nautokeys: 1\nimg_small_w: 100\nimg_big_w: 200\nimg_sqr: 1\nimg_users: 1\nwatermark: 1\nwatermark_only_big: 1\naf_on: 0\naf_delete: 1\naf_showlink: 1\naf_forum_id: 1\naf_hidecat_id: 2\n', 0, 'InstantCMS team', 1, '1.5', 1),
(2, 'Регистрация', 'registration', '---\nreg_type: open\ninv_count: 3\ninv_karma: 1\ninv_period: WEEK\nis_on: 1\nact: 0\nsend: false\noffmsg: >\n Регистрация приостановлена по\n техническим причинам.\nfirst_auth_redirect: profile\nauth_redirect: profile\nname_mode: nickname\nbadnickname: |\n администратор\n админ\n qwert\n qwerty\n 123\n admin\n вася пупкин\nask_icq: 1\nask_birthdate: 1\nsend_greetmsg: 0\ngreetmsg: |\n
\n \n
\n', 0, 'InstantCMS team', 1, '1.5', 1), (3, 'Фотогалерея', 'photos', '---\nlink: 0\nsaveorig: 0\nmaxcols: 2\norderby: title\norderto: desc\nshowlat: 1\nwatermark: 1\ntumb_view: 2\ntumb_from: 1\ntumb_club: \nis_today: 1\n', 0, 'InstantCMS team', 1, '1.5', 1), (4, 'Прайс-лист', 'price', '---\n', 0, 'InstantCMS team', 1, '1.5', 1), (5, 'Поиск', 'search', '---\nperpage: 10\ncomp: \n - content\n - photos\n - price\n - catalog\n - forum\n - blogs\n - board\n', 0, 'InstantCMS team', 1, '1.5', 1), (6, 'Конструктор форм', 'forms', '---\n', 0, 'InstantCMS team', 1, '1.5', 1), (7, 'Комментарии пользователей', 'comments', '---\nemail: \ncanguests: 1\nregcap: 0\npublish: 1\nsmiles: 1\nbbcode: 1\nselfdel: 0\nsubscribe: 1\nanchors: 0\nrecode: 0\nmin_karma: 0\nmin_karma_show: 0\nmin_karma_add: 0\nperpage: 20\nj_code: 1\ncmm_ajax: 0\ncmm_ip: 1\n', 1, 'InstantCMS team', 1, '1.5', 1), (8, 'Архив материалов', 'arhive', '---\n', 0, 'InstantCMS team', 1, '1.5', 1), (9, 'Универсальный каталог', 'catalog', '---\nemail: shop@site.ru\ndelivery: |\n Сведения о доставке.\n Этот текст можно изменить в настройках компонента "Универсальный каталог".\nnotice: 1\npremod: 1\npremod_msg: 1\nis_comments: 1\nis_rss: 1\nwatermark: 1\n', 0, 'InstantCMS team', 1, '1.5', 1), (10, 'Профили пользователей', 'users', '---\nshowgroup: 1\nsw_stats: \nsw_comm: 1\nsw_search: 1\nsw_forum: 1\nsw_photo: 1\nsw_wall: 1\nsw_friends: 1\nsw_blogs: 1\nsw_clubs: 1\nsw_feed: 1\nsw_content: 1\nsw_awards: 1\nsw_board: 1\nsw_msg: 1\nsw_guest: 1\nkarmatime: 1\nkarmaint: DAY\nphotosize: 0\nwatermark: 1\nsmallw: 64\nmedw: 200\nmedh: 500\nsw_files: 1\nfilessize: 100\nfilestype: jpeg,gif,png,jpg,bmp,zip,rar,tar\nprivforms: \n - 3\nj_code: 1\ndeltime: 6\n', 0, 'InstantCMS team', 1, '1.5', 1), (12, 'Форум', 'forum', '---\nis_on: 1\nkarma: 1\nis_rss: 1\npp_thread: 15\npp_forum: 15\nshowimg: 1\nimg_on: 1\nimg_max: 5\nfast_on: 1\nfast_bb: 1\nfa_on: 1\nfa_allow: -1\nfa_max: 25\nfa_ext: txt doc zip rar arj png gif jpg jpeg bmp\nfa_size: 1024\n', 0, 'InstantCMS team', 1, '1.5', 1), (13, 'Статистика сайта', 'statistics', '---\n', 1, 'InstantCMS team', 1, '1.5', 1), (15, 'Блоги', 'blogs', '---\nperpage: 10\nperpage_blog: 15\nupdate_date: 0\nupdate_seo_link: 0\nmin_karma_private: 0\nmin_karma_public: 5\nmin_karma: 1\nwatermark: 1\nimg_on: 1\nrss_all: 1\nrss_one: 1\nj_code: 1\n', 0, 'InstantCMS team', 1, '1.5', 1), (16, 'Вопросы и ответы', 'faq', '---\n', 0, 'InstantCMS team', 1, '1.5', 1), (17, 'Баннеры', 'banners', '---\n', 1, 'InstantCMS team', 1, '1.5', 1), (19, 'RSS генератор', 'rssfeed', '---\naddsite: 1\nmaxitems: 50\nicon_on: 1\nicon_url: http://icms/images/rss.png\nicon_title: InstantCMS\nicon_link: http://icms/images/rss.png\n', 1, 'InstantCMS team', 1, '1.5', 1), (21, 'Награждение пользователей', 'autoawards', '---\n', 1, 'InstantCMS team', 1, '1.5', 1), (22, 'Доска объявлений', 'board', '---\nmaxcols: 3\nobtypes: |\n Продам\n Куплю\n Обменяю\n Подарю\nshowlat: \npublic: 2\nphotos: 1\nsrok: 1\npubdays: 10\nwatermark: 0\naftertime: \ncomments: 1\n', 0, 'InstantCMS team', 1, '1.5', 1), (23, 'Клубы пользователей', 'clubs', '---\nseo_club: title\nenabled_blogs: 1\nenabled_photos: 1\nthumb1: 48\nthumb2: 200\nthumbsqr: 1\ncancreate: 1\nperpage: 10\ncreate_min_karma: 0\ncreate_min_rating: 0\n', 0, 'InstantCMS team', 1, '1.5', 1); DROP TABLE IF EXISTS `#__content`; CREATE TABLE `#__content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_id` int(11) NOT NULL, `user_id` int(11) NOT NULL DEFAULT '1', `pubdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `enddate` date NOT NULL, `is_end` int(11) NOT NULL, `title` varchar(200) NOT NULL, `description` text NOT NULL, `content` longtext, `published` int(11) NOT NULL DEFAULT '1', `hits` int(11) NOT NULL, `meta_desc` text NOT NULL, `meta_keys` text NOT NULL, `showtitle` int(11) NOT NULL DEFAULT '1', `showdate` int(11) NOT NULL DEFAULT '1', `showlatest` int(11) NOT NULL DEFAULT '1', `showpath` int(11) NOT NULL DEFAULT '1', `ordering` int(1) NOT NULL, `comments` int(11) NOT NULL DEFAULT '1', `is_arhive` int(11) NOT NULL, `seolink` varchar(200) NOT NULL, `canrate` int(11) NOT NULL DEFAULT '1', `pagetitle` varchar(255) NOT NULL, `url` varchar(100) NOT NULL, `tpl` varchar(50) NOT NULL DEFAULT 'com_content_read.tpl', PRIMARY KEY (`id`), UNIQUE KEY `seolink` (`seolink`), KEY `category_id` (`category_id`), KEY `user_id` (`user_id`), FULLTEXT KEY `title` (`title`), FULLTEXT KEY `content` (`content`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__content_access`; CREATE TABLE `#__content_access` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content_id` int(11) NOT NULL, `content_type` varchar(100) NOT NULL, `group_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `content_id` (`content_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__cron_jobs`; CREATE TABLE `#__cron_jobs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `job_name` varchar(50) NOT NULL, `job_interval` smallint(6) NOT NULL DEFAULT '1', `job_run_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `component` varchar(20) NOT NULL, `model_method` varchar(100) NOT NULL, `custom_file` varchar(250) NOT NULL, `is_enabled` tinyint(4) NOT NULL DEFAULT '1', `is_new` smallint(6) NOT NULL DEFAULT '1', `comment` varchar(200) NOT NULL, `class_name` varchar(50) NOT NULL, `class_method` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `job_name` (`job_name`,`is_enabled`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__cron_jobs` (`id`, `job_name`, `job_interval`, `job_run_date`, `component`, `model_method`, `custom_file`, `is_enabled`, `is_new`, `comment`, `class_name`, `class_method`) VALUES (1, 'photos_clear', 24, '2010-12-06 21:11:26', 'users', 'clearUploadedPhotos', '', 1, 1, 'Удаление неиспользуемых личных фотографий', '', ''), (2, 'optimize_tables', 24, '2010-12-06 21:11:26', '', '', '', 1, 1, 'Оптимизация таблиц БД', 'db|cmsDatabase', 'optimizeTables'), (3, 'drop_inactive_users', 48, '2010-12-06 21:11:26', 'users', 'deleteInactiveUsers', '', 1, 1, 'Удаление неактивных пользователей (см. настройки компонента "Профили пользователей")', '', ''), (4, 'remove_old_log', 48, '2010-12-06 21:11:26', '', '', '', 1, 1, 'Удаляет старые записи ленты событий', 'actions|cmsActions', 'removeOldLog'), (5, 'give_invites', 24, '2010-12-06 21:11:26', 'users', 'giveInvitesCron', '', 1, 1, 'Выдача инвайтов пользователям', '', ''), (6, 'clear_invites', 24, '2010-12-06 21:11:26', 'users', 'clearInvites', '', 1, 1, 'Удаление использованных инвайтов', '', ''); DROP TABLE IF EXISTS `#__downloads`; CREATE TABLE `#__downloads` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fileurl` varchar(250) NOT NULL, `hits` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__event_hooks`; CREATE TABLE `#__event_hooks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `event` varchar(50) NOT NULL, `plugin_id` varchar(30) NOT NULL, PRIMARY KEY (`id`), KEY `event` (`event`,`plugin_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__event_hooks` (`id`, `event`, `plugin_id`) VALUES (6, 'GET_ARTICLE', '5'), (3, 'INSERT_WYSIWYG', '3'), (7, 'USER_PROFILE', '6'), (11, 'ADD_ARTICLE_DONE', '8'), (10, 'ADD_POST_DONE', '8'), (34, 'GET_FORUM_POSTS', '14'), (33, 'GET_COMMENTS', '14'), (32, 'GET_BEST_POSTS', '14'), (31, 'GET_LATEST_POSTS', '14'), (30, 'GET_POST', '14'), (29, 'GET_POSTS', '14'), (35, 'GET_WALL_POSTS', '14'), (36, 'GET_ARTICLE', '15'); DROP TABLE IF EXISTS `#__faq_cats`; CREATE TABLE `#__faq_cats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL, `title` varchar(250) NOT NULL, `description` text NOT NULL, `published` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__faq_quests`; CREATE TABLE `#__faq_quests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_id` int(11) NOT NULL, `pubdate` datetime NOT NULL, `published` int(11) NOT NULL, `quest` text NOT NULL, `answer` text NOT NULL, `user_id` int(11) NOT NULL, `answeruser_id` int(11) NOT NULL, `answerdate` datetime NOT NULL, `hits` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `category_id` (`category_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__filters`; CREATE TABLE `#__filters` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `description` text NOT NULL, `link` varchar(100) NOT NULL, `published` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__filters` (`id`, `title`, `description`, `link`, `published`) VALUES (1, 'Автозамена / Фильтр ссылок', 'Фильтр выполняет замену выражений по созданным вами правилам, а так же служит для создания ссылок в категории прайслиста, фотоальбомы и фотографии.
![]() | \r\n \r\n Добро пожаловать! \r\nМы рады приветствовать Вас в нашей социальной сети. После регистрации Вам станут доступны все функции сайта. \r\nВы сможете завести блог, загружать фотографии и общаться с друзьями. \r\n\r\n \r\n Чтобы изменить этот текст, отредактируйте модуль "Главная страница". \r\n | \r\n
{ФАЙЛ=test.php}
', 11, 1, 0, 1, '---\n', 0, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (56, 'sidebar', 'Архив статей', 'Архив новостей', 1, 'mod_arhive', 27, 1, 0, 0, '---\nsource: both\ncat_id: 6\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (54, 'sidebar', 'Случайное в каталоге', 'Случайное в каталоге', 1, 'mod_uc_random', 26, 1, 0, 0, '---\ncat_id: 1\ncount: 2\nshowtitle: 1\nshowcat: 0\nmenuid: 23\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (60, 'maintop', 'Лента RSS ', 'Лента новостей', 1, 'mod_rss', 9, 1, 0, 0, '---\nshowdesc: 0\nshowicon: 1\nitemslimit: 6\nrssurl: http://portal.novator.ru/ngnews.rss\ncols: 2\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (61, 'sidebar', 'Последние комментарии', 'Последние комментарии', 1, 'mod_comments', 4, 1, 1, 0, '---\nshownum: 10\nminrate: 0\nshowdesc: 1\nshowrss: 1\nshowtarg: 0\ntargets: \n faq: faq\n catalog: catalog\n boarditem: boarditem\n blog: blog\n article: article\n palbum: palbum\n photo: photo\n userphoto: userphoto\n', 1, '', '', 0, 1, 'MINUTE', 'module.tpl', 0, '1.0'), (62, 'maintop', 'Новинки фотогалереи', 'Новинки фотогалереи', 1, 'mod_latestphoto', 32, 1, 1, 0, '---\nshownum: 6\nmaxcols: 2\nshowclubs: 1\nshowalbum: 0\nshowdate: 0\nshowcom: 0\nalbum_id: 100\nshowtype: short\nshowmore: 0\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.0'), (63, 'sidebar', 'Популярные фотографии', 'Популярные фотографии', 1, 'mod_bestphoto', 10, 1, 0, 0, '---\nshownum: 2\nmaxcols: 2\nshowalbum: 0\nshowdate: 1\nshowcom: 1\nalbum_id: 0\nsort: rating\nmenuid: 20\nshowtype: full\nshowmore: 1\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (64, 'maintop', 'Новое в блогах', 'Новое в блогах', 1, 'mod_latestblogs', 2, 1, 1, 0, '---\nnamemode: blog\nshownum: 10\nminrate: 0\nshowrss: 1\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (65, 'sidebar', 'Популярное в блогах', 'Популярное в блогах', 1, 'mod_bestblogs', 3, 1, 1, 0, '---\nnamemode: blog\nshownum: 10\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.0'), (66, 'header', 'Меню пользователя', 'Меню пользователя', 1, 'mod_usermenu', 1, 0, 1, 0, '---\navatar: 1\nshowtype: text\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (67, 'mainbottom', 'Последние вопросы FAQ', 'Последние вопросы FAQ', 1, 'mod_latest_faq', 33, 1, 0, 0, '---\nnewscount: 5\nmaxlen: 140\ncat_id: \n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (69, 'maintop', 'Популярные статьи', 'Популярные статьи', 1, 'mod_bestcontent', 3, 1, 0, 0, '---\nshownum: 4\nmenuid: 21\nshowlink: 1\nshowdesc: 1\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (70, 'sidebar', 'Поиск пользователей', 'Поиск пользователей', 1, 'mod_usersearch', 4, 1, 0, 0, '---\ncat_id: \nsource: \nmenuid: 15\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.0'), (71, 'maintop', 'Новые объявления', 'Новые объявления', 1, 'mod_latestboard', 1, 1, 1, 0, '---\nshownum: 10\nshowcity: 1\ncat_id: -1\nsubs: 1\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (72, 'maintop', 'Рейтинг пользователей', 'Рейтинг пользователей', 1, 'mod_user_rating', 1, 1, 0, 0, '---\ncount: 20\nmenuid: 15\nview_type: rating\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (73, 'maintop', 'Новые клубы', 'Новые клубы', 1, 'mod_latestclubs', 3, 1, 0, 0, '---\ncount: 2\nmenuid: 38\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (74, 'maintop', 'Популярные клубы', 'Популярные клубы', 1, 'mod_bestclubs', 4, 1, 0, 0, '---\ncount: 2\nmenuid: 38\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (75, 'sidebar', 'Доска почета', 'Доска почета', 1, 'mod_respect', 1, 1, 1, 0, '---\nview: all\nshow_awards: 1\norder: desc\nlimit: 5\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.0'), (76, 'sidebar', 'Файлы пользователей', 'Файлы пользователей', 1, 'mod_userfiles', 1, 1, 0, 0, '---\nmenuid: 0\nsw_stats: 1\nsw_latest: 1\nsw_popular: 1\nnum_latest: 5\nnum_popular: 5\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 0, '1.0'), (87, 'maintop', 'Лента активности', 'Лента активности', 1, 'mod_actions', 1, 1, 1, 0, '---\nlimit: 15\nshow_target: 0\naction_types: \n 16: 16\n 15: 15\n 20: 20\n 13: 13\n 29: 29\n 24: 24\n 23: 23\n 2: 2\n 27: 27\n 12: 12\n 10: 10\n 25: 25\n 17: 17\n 8: 8\n 18: 18\n 7: 7\n 26: 26\n 19: 19\n 22: 22\n 11: 11\n 21: 21\n 28: 28\n 9: 9\n 14: 14\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.7'), (82, 'sidebar', 'Приветствие', 'Универсальный каталог', 0, 'С помощью компонента «Универсальный каталог», в котором Вы сейчас находитесь, можно организовать хранение любых данных. От карандашей до автомобилей.
\r\nКаждая рубрика каталога имеет собственный набор характеристик, который можно изменить в панели управления. Пользователи могут фильтровать записи каталога по характеристикам одним щелчком мыши.
\r\nЛюбой пользователь может добавлять собственные записи в те рубрики каталога, для которых это разрешено в настройках.
', 14, 1, 1, 1, '', 1, '', '', 0, 24, 'HOUR', 'module.tpl', 1, '1.0'), (83, 'sidebar', 'Статистика пользователей', 'Статистика пользователей', 1, 'mod_user_stats', 1, 1, 1, 0, '---\nshow_total: 1\nshow_online: 1\nshow_gender: 1\nshow_city: 1\nshow_bday: 1\n', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.0'), (84, 'sidebar', 'Друзья онлайн', 'Друзья онлайн', 1, 'mod_user_friend', 5, 1, 0, 0, '---\r\nlimit: 5\r\nview_type: table', 1, '', '', 0, 1, 'HOUR', 'module_simple.tpl', 0, '1.0'), (85, 'sidebar', 'Пригласить друга', 'Пригласить друга', 1, 'mod_invite', 1, 1, 0, 0, '', 1, '', '', 0, 1, 'HOUR', 'module.tpl', 1, '1.0'); DROP TABLE IF EXISTS `#__modules_bind`; CREATE TABLE `#__modules_bind` ( `id` int(11) NOT NULL AUTO_INCREMENT, `module_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `position` varchar(20) NOT NULL, PRIMARY KEY (`id`), KEY `position` (`position`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__modules_bind` (`id`, `module_id`, `menu_id`, `position`) VALUES (329, 42, 0, ''), (249, 31, 0, ''), (568, 17, 1, 'top'), (347, 41, 18, ''), (498, 39, 1, 'sidebar'), (417, 54, 24, 'sidebar'), (416, 54, 21, 'sidebar'), (264, 32, 5, ''), (328, 2, 0, ''), (263, 32, 8, ''), (262, 32, 1, ''), (596, 66, 0, 'header'), (346, 41, 24, ''), (588, 20, 1, 'sidebar'), (412, 37, 22, 'sidebar'), (433, 36, 19, 'sidebar'), (381, 24, 1, 'sidebar'), (492, 26, 22, 'sidebar'), (314, 38, 8, ''), (556, 1, 0, 'topmenu'), (497, 27, 1, 'sidebar'), (332, 43, 0, ''), (413, 45, 1, ''), (478, 46, 1, 'mainbottom'), (458, 44, 1, 'sidebar'), (491, 47, 1, 'mainbottom'), (350, 48, 37, ''), (595, 50, 1, 'maintop'), (434, 51, 1, 'sidebar'), (358, 52, 1, 'sidebar'), (359, 52, 42, 'sidebar'), (360, 52, 41, 'sidebar'), (361, 52, 43, 'sidebar'), (364, 53, 1, ''), (415, 54, 19, 'sidebar'), (422, 60, 1, 'maintop'), (401, 55, 0, ''), (609, 56, 0, 'sidebar'), (403, 58, 63, ''), (406, 59, 0, ''), (435, 23, 1, 'sidebar'), (572, 61, 1, 'sidebar'), (465, 63, 1, 'sidebar'), (587, 64, 1, 'maintop'), (482, 67, 1, 'mainbottom'), (496, 68, 0, 'maintop'), (486, 69, 1, 'maintop'), (617, 22, 1, 'sidebar'), (493, 26, 23, 'sidebar'), (604, 70, 15, 'sidebar'), (591, 71, 1, 'mainbottom'), (515, 72, 1, 'maintop'), (516, 73, 1, 'maintop'), (520, 74, 1, 'maintop'), (575, 25, 1, 'sidebar'), (531, 76, 1, 'sidebar'), (541, 77, 1, ''), (598, 19, 21, 'sidebar'), (597, 19, 1, 'maintop'), (582, 65, 17, 'sidebar'), (592, 79, 1, 'maintop'), (586, 62, 20, 'sidebar'), (599, 82, 23, 'sidebar'), (608, 49, 1, 'sidebar'), (607, 83, 15, 'sidebar'), (616, 75, 1, 'sidebar'), (615, 87, 1, 'maintop'); DROP TABLE IF EXISTS `#__ns_transactions`; CREATE TABLE `#__ns_transactions` ( `IDTransaction` int(10) unsigned NOT NULL AUTO_INCREMENT, `TableName` tinytext, `Differ` tinytext, `InTransaction` bit(1) DEFAULT NULL, `TStamp` timestamp NULL DEFAULT NULL, PRIMARY KEY (`IDTransaction`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__online`; CREATE TABLE `#__online` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ip` varchar(15) NOT NULL, `sess_id` varchar(100) NOT NULL, `lastdate` datetime NOT NULL, `user_id` int(11) NOT NULL, `agent` varchar(250) NOT NULL, `viewurl` varchar(250) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `sess_id` (`sess_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__photo_albums`; CREATE TABLE `#__photo_albums` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL, `ordering` int(11) NOT NULL DEFAULT '1', `NSLeft` int(11) NOT NULL, `NSRight` int(11) NOT NULL, `NSDiffer` varchar(15) NOT NULL, `NSIgnore` int(11) NOT NULL, `NSLevel` int(11) NOT NULL, `title` varchar(100) NOT NULL, `description` varchar(100) NOT NULL, `published` int(11) NOT NULL, `showdate` int(11) NOT NULL DEFAULT '1', `iconurl` varchar(100) NOT NULL, `pubdate` datetime NOT NULL, `orderby` varchar(20) NOT NULL DEFAULT 'title', `orderto` varchar(4) NOT NULL DEFAULT 'asc', `public` int(11) NOT NULL, `perpage` int(11) NOT NULL DEFAULT '15', `cssprefix` varchar(20) NOT NULL, `thumb1` int(11) NOT NULL DEFAULT '96', `thumb2` int(11) NOT NULL DEFAULT '480', `thumbsqr` int(11) NOT NULL DEFAULT '1', `showtype` varchar(10) NOT NULL DEFAULT 'list', `nav` int(11) NOT NULL DEFAULT '1', `uplimit` int(11) NOT NULL, `maxcols` int(11) NOT NULL DEFAULT '4', `orderform` int(11) NOT NULL DEFAULT '1', `showtags` int(11) NOT NULL DEFAULT '1', `bbcode` int(11) NOT NULL DEFAULT '1', `user_id` int(11) NOT NULL DEFAULT '1', `is_comments` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `parent_id` (`parent_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__photo_albums` (`id`, `parent_id`, `ordering`, `NSLeft`, `NSRight`, `NSDiffer`, `NSIgnore`, `NSLevel`, `title`, `description`, `published`, `showdate`, `iconurl`, `pubdate`, `orderby`, `orderto`, `public`, `perpage`, `cssprefix`, `thumb1`, `thumb2`, `thumbsqr`, `showtype`, `nav`, `uplimit`, `maxcols`, `orderform`, `showtags`, `bbcode`, `user_id`, `is_comments`) VALUES (100, 0, 1, 1, 2, '', 0, 0, '-- Корневой альбом --', '', 1, 1, '', '2008-05-30 12:03:07', 'title', 'asc', 0, 15, '', 96, 480, 1, 'list', 1, 0, 4, 1, 1, 1, 1, 0); DROP TABLE IF EXISTS `#__photo_files`; CREATE TABLE `#__photo_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `album_id` int(11) NOT NULL, `title` varchar(200) NOT NULL, `description` text NOT NULL, `pubdate` datetime DEFAULT '0000-00-00 00:00:00', `file` varchar(200) NOT NULL, `published` int(11) NOT NULL, `hits` int(11) NOT NULL, `showdate` int(11) NOT NULL DEFAULT '1', `comments` int(11) NOT NULL DEFAULT '1', `user_id` int(11) NOT NULL DEFAULT '1', `owner` varchar(10) DEFAULT 'photos', PRIMARY KEY (`id`), KEY `album_id` (`album_id`), KEY `user_id` (`user_id`), FULLTEXT KEY `title` (`title`,`description`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__plugins`; CREATE TABLE `#__plugins` ( `id` int(11) NOT NULL AUTO_INCREMENT, `plugin` varchar(30) NOT NULL, `title` varchar(255) NOT NULL, `description` text NOT NULL, `author` varchar(255) NOT NULL, `version` varchar(15) NOT NULL, `plugin_type` varchar(10) NOT NULL, `published` int(11) NOT NULL, `config` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__plugins` (`id`, `plugin`, `title`, `description`, `author`, `version`, `plugin_type`, `published`, `config`) VALUES (6, 'p_usertab', 'Demo Profile Plugin', 'Пример плагина - Добавляет вкладку "Статьи" в профили всех пользователей', 'InstantCMS Team', '1.0', 'plugin', 0, '---\nКоличество статей: 10\n'), (3, 'p_fckeditor', 'FCKEditor', 'Визуальный редактор', 'F. C. Knabben', '2.63', 'wysiwyg', 1, '---\n'), (5, 'p_demo', 'Demo Plugin', 'Пример плагина - Добавляет текст в конец каждой статьи на сайте', 'InstantCMS Team', '1.0', 'plugin', 0, '---\ntext: Added By Plugin From Parameter\ncolor: blue\ncounter: 1\n'), (8, 'p_ping', 'Пинг поисковых систем', 'Пингует Яндекс и Гугл при добавлении статей и постов в блоги', 'InstantCMS Team', '1.0', 'plugin', 0, '---\nYandex HOST: ping.blogs.yandex.ru\nYandex PATH: /RPC2\nGoogle HOST: blogsearch.google.com\nGoogle PATH: /ping/RPC2\n'), (15, 'p_morecontent', 'Похожие статьи', 'Добавляет в конец каждой статьи список похожих статей.', 'Maximov & InstantCMS Team', '1.0', 'plugin', 0, '---\nlimit: 5\nunsort: 1\n'), (14, 'p_hidetext', 'Скрытый текст', 'Скрывает содержимое тега [hide] от незарегистрированных', 'InstantCMS Team', '1.0', 'plugin', 1, '---\n'); DROP TABLE IF EXISTS `#__polls`; CREATE TABLE `#__polls` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `pubdate` date NOT NULL DEFAULT '0000-00-00', `answers` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__polls_log`; CREATE TABLE `#__polls_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `poll_id` int(11) NOT NULL, `answer_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `ip` varchar(15) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__price_cats`; CREATE TABLE `#__price_cats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `description` text NOT NULL, `published` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__price_items`; CREATE TABLE `#__price_items` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_id` int(11) NOT NULL, `title` varchar(230) NOT NULL, `price` float NOT NULL, `published` int(11) NOT NULL DEFAULT '1', `canmany` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), FULLTEXT KEY `title` (`title`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__ratings`; CREATE TABLE `#__ratings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `item_id` int(11) NOT NULL, `points` int(11) NOT NULL, `ip` varchar(20) NOT NULL, `target` varchar(20) NOT NULL, `user_id` int(11) NOT NULL DEFAULT '1', `pubdate` datetime NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `item_id` (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__ratings_total`; CREATE TABLE `#__ratings_total` ( `id` int(11) NOT NULL AUTO_INCREMENT, `target` varchar(32) NOT NULL, `item_id` mediumint(9) NOT NULL, `total_rating` int(11) NOT NULL, `total_votes` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `item_id` (`item_id`), KEY `target` (`target`,`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__rating_targets`; CREATE TABLE `#__rating_targets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `target` varchar(32) NOT NULL, `component` varchar(32) NOT NULL, `is_user_affect` tinyint(4) NOT NULL, `user_weight` smallint(6) NOT NULL, `target_table` varchar(32) NOT NULL, `target_title` varchar(70) NOT NULL, PRIMARY KEY (`id`), KEY `target` (`target`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__rating_targets` (`id`, `target`, `component`, `is_user_affect`, `user_weight`, `target_table`, `target_title`) VALUES (1, 'content', 'content', 1, 5, 'cms_content', 'Статья'), (2, 'photo', 'photos', 1, 5, 'cms_photo_files', 'Фото в галерее'), (3, 'blogpost', 'blogs', 1, 5, 'cms_blog_posts', 'Пост в блоге'), (4, 'comment', 'comments', 1, 2, 'cms_comments', 'Комментарий'); DROP TABLE IF EXISTS `#__search`; CREATE TABLE `#__search` ( `id` int(11) NOT NULL, `session_id` varchar(100) NOT NULL, `title` varchar(250) NOT NULL, `link` varchar(200) NOT NULL, `place` varchar(100) NOT NULL, `placelink` varchar(100) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__stats`; CREATE TABLE `#__stats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ip` varchar(20) NOT NULL, `logdate` datetime NOT NULL, `page` varchar(200) NOT NULL, `agent` varchar(60) DEFAULT 'unknown', `refer` varchar(200) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__subscribe`; CREATE TABLE `#__subscribe` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `target` varchar(20) NOT NULL, `target_id` int(11) NOT NULL, `pubdate` datetime NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `target_id` (`target_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__tags`; CREATE TABLE `#__tags` ( `id` int(11) NOT NULL AUTO_INCREMENT, `tag` varchar(250) NOT NULL, `target` varchar(25) NOT NULL, `item_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `tag` (`tag`), KEY `item_id` (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__uc_cart`; CREATE TABLE `#__uc_cart` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `session_id` varchar(50) NOT NULL, `item_id` int(11) NOT NULL, `pubdate` datetime NOT NULL, `itemscount` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__uc_cats`; CREATE TABLE `#__uc_cats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL, `title` varchar(200) NOT NULL, `description` text NOT NULL, `published` int(11) NOT NULL DEFAULT '1', `fieldsstruct` text, `view_type` varchar(20) NOT NULL DEFAULT 'list', `fields_show` int(11) NOT NULL DEFAULT '10', `showmore` int(11) NOT NULL DEFAULT '1', `perpage` int(11) NOT NULL DEFAULT '20', `showtags` int(11) NOT NULL DEFAULT '1', `showsort` int(11) NOT NULL DEFAULT '1', `is_ratings` int(11) NOT NULL, `orderby` varchar(12) NOT NULL DEFAULT 'pubdate', `orderto` varchar(10) DEFAULT 'desc', `showabc` int(11) NOT NULL DEFAULT '1', `shownew` int(11) NOT NULL, `newint` varchar(100) NOT NULL, `filters` int(11) NOT NULL, `is_shop` int(11) NOT NULL, `NSLeft` int(11) NOT NULL, `NSRight` int(11) NOT NULL, `NSLevel` int(11) NOT NULL, `NSDiffer` int(11) NOT NULL, `NSIgnore` int(11) NOT NULL, `ordering` int(11) NOT NULL, `is_public` int(11) NOT NULL, `can_edit` int(11) NOT NULL DEFAULT '0', `cost` varchar(5) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__uc_cats` (`id`, `parent_id`, `title`, `description`, `published`, `fieldsstruct`, `view_type`, `fields_show`, `showmore`, `perpage`, `showtags`, `showsort`, `is_ratings`, `orderby`, `orderto`, `showabc`, `shownew`, `newint`, `filters`, `is_shop`, `NSLeft`, `NSRight`, `NSLevel`, `NSDiffer`, `NSIgnore`, `ordering`, `is_public`, `can_edit`, `cost`) VALUES (1000, 0, '-- Корневая рубрика --', '', 1, '', 'list', 10, 1, 20, 1, 1, 0, 'pubdate', 'desc', 1, 0, '', 0, 0, 1, 2, 0, 0, 0, 1, 0, 0, ''); DROP TABLE IF EXISTS `#__uc_cats_access`; CREATE TABLE `#__uc_cats_access` ( `cat_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, KEY `cat_id` (`cat_id`,`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__uc_discount`; CREATE TABLE `#__uc_discount` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(150) NOT NULL, `cat_id` int(11) NOT NULL, `sign` tinyint(4) NOT NULL, `value` float NOT NULL, `unit` varchar(10) NOT NULL, `if_limit` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `cat_id` (`cat_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__uc_items`; CREATE TABLE `#__uc_items` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_id` int(11) NOT NULL, `title` varchar(200) NOT NULL, `pubdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `published` int(11) NOT NULL DEFAULT '1', `imageurl` varchar(200) NOT NULL, `fieldsdata` text NOT NULL, `hits` int(11) NOT NULL, `is_comments` int(11) NOT NULL, `tags` varchar(200) NOT NULL, `rating` float NOT NULL, `meta_desc` varchar(250) NOT NULL, `meta_keys` varchar(250) NOT NULL, `price` float NOT NULL, `canmany` int(11) NOT NULL DEFAULT '1', `user_id` int(11) NOT NULL, `on_moderate` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `category_id` (`category_id`), FULLTEXT KEY `title` (`title`,`fieldsdata`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__uc_ratings`; CREATE TABLE `#__uc_ratings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `item_id` int(11) NOT NULL, `points` int(11) NOT NULL, `ip` varchar(16) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__uc_tags`; CREATE TABLE `#__uc_tags` ( `id` int(11) NOT NULL AUTO_INCREMENT, `tag` varchar(200) NOT NULL, `item_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__upload_images`; CREATE TABLE `#__upload_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `post_id` int(11) NOT NULL, `session_id` varchar(50) NOT NULL, `fileurl` varchar(250) NOT NULL, `target` varchar(25) NOT NULL DEFAULT 'forum', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__users`; CREATE TABLE `#__users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL DEFAULT '1', `login` varchar(100) NOT NULL, `nickname` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `icq` varchar(15) NOT NULL, `regdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `logdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `birthdate` date NOT NULL DEFAULT '0000-00-00', `is_locked` int(11) NOT NULL, `is_deleted` int(11) NOT NULL, `rating` int(11) NOT NULL, `points` int(11) NOT NULL, `last_ip` varchar(15) NOT NULL, `status` varchar(255) NOT NULL, `status_date` datetime NOT NULL, `invited_by` int(11) DEFAULT NULL, `invdate` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `login` (`login`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 ROW_FORMAT=DYNAMIC; INSERT INTO `#__users` (`id`, `group_id`, `login`, `nickname`, `password`, `email`, `icq`, `regdate`, `logdate`, `birthdate`, `is_locked`, `is_deleted`, `rating`, `points`, `last_ip`, `status`, `status_date`, `invited_by`, `invdate`) VALUES (1, 2, 'admin', 'Администратор', '2ca41752ccf4dbdb76d8fe88c488fd44', 'admin@cms.ru', '100200300', '2007-11-23 12:41:57', '2010-12-06 21:16:56', '1980-10-23', 0, 0, 32, 0, '127.0.0.1', 'Самый длинный статус из всех что существуют в этом прекрасном мире', '2010-10-21 02:06:53', 0, '2010-11-09 23:25:59'); DROP TABLE IF EXISTS `#__users_activate`; CREATE TABLE `#__users_activate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pubdate` datetime NOT NULL, `user_id` int(11) NOT NULL, `code` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_albums`; CREATE TABLE `#__user_albums` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `title` varchar(100) NOT NULL, `pubdate` datetime NOT NULL, `allow_who` varchar(10) NOT NULL, `description` varchar(200) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `allow_who` (`allow_who`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_autoawards`; CREATE TABLE `#__user_autoawards` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `description` varchar(200) NOT NULL, `imageurl` varchar(200) NOT NULL, `p_comment` int(11) NOT NULL, `p_blog` int(11) NOT NULL, `p_forum` int(11) NOT NULL, `p_photo` int(11) NOT NULL, `p_privphoto` int(11) DEFAULT NULL, `p_content` int(11) NOT NULL, `p_karma` int(11) NOT NULL, `published` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_awards`; CREATE TABLE `#__user_awards` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `pubdate` datetime NOT NULL, `title` varchar(250) NOT NULL, `description` text NOT NULL, `imageurl` varchar(100) NOT NULL, `from_id` int(11) NOT NULL, `award_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_clubs`; CREATE TABLE `#__user_clubs` ( `user_id` int(11) NOT NULL, `club_id` int(11) NOT NULL, `role` varchar(20) NOT NULL DEFAULT 'guest', `pubdate` datetime NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_files`; CREATE TABLE `#__user_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `filename` varchar(250) NOT NULL, `pubdate` datetime NOT NULL, `allow_who` varchar(50) NOT NULL, `filesize` int(11) NOT NULL, `hits` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_friends`; CREATE TABLE `#__user_friends` ( `id` int(11) NOT NULL AUTO_INCREMENT, `to_id` int(11) NOT NULL, `from_id` int(11) NOT NULL, `logdate` datetime NOT NULL, `is_accepted` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `to_id` (`to_id`), KEY `from_id` (`from_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_groups`; CREATE TABLE `#__user_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `alias` varchar(100) NOT NULL, `is_admin` int(11) NOT NULL, `access` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; INSERT INTO `#__user_groups` (`id`, `title`, `alias`, `is_admin`, `access`) VALUES (1, 'Пользователи', 'registered', 0, 'comments/add, comments/bbcode, comments/delete, content/add, board/autoadd'), (2, 'Администраторы', 'admin', 1, 'admin/content, admin/com_rssfeed, admin/com_arhive, admin/com_banners, admin/com_blog, admin/com_faq, admin/com_board, admin/com_content, admin/com_clubs, admin/com_comments, admin/com_forms, admin/com_photos'), (8, 'Гости', 'guest', 0, 'comments/add'), (7, 'Редакторы', 'editors', 0, 'comments/add, comments/delete, content/add, content/autoadd, content/delete'), (9, 'Модераторы', 'moderators', 0, 'comments/add, comments/delete, comments/moderate, forum/moderate, content/add'); DROP TABLE IF EXISTS `#__user_invites`; CREATE TABLE `#__user_invites` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(32) NOT NULL, `owner_id` int(11) NOT NULL, `createdate` datetime NOT NULL, `is_used` tinyint(4) NOT NULL DEFAULT '0', `is_sended` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `code` (`code`,`owner_id`,`is_used`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_karma`; CREATE TABLE `#__user_karma` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `sender_id` int(11) NOT NULL, `points` smallint(6) NOT NULL, `senddate` datetime NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_msg`; CREATE TABLE `#__user_msg` ( `id` int(11) NOT NULL AUTO_INCREMENT, `to_id` int(11) NOT NULL, `from_id` int(11) NOT NULL, `senddate` datetime NOT NULL, `is_new` int(11) NOT NULL DEFAULT '1', `message` text NOT NULL, `to_del` tinyint(4) NOT NULL DEFAULT '0', `from_del` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `to_id` (`to_id`), KEY `from_id` (`from_id`), KEY `to_del` (`to_del`), KEY `from_del` (`from_del`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_photos`; CREATE TABLE `#__user_photos` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `album_id` int(11) NOT NULL, `pubdate` datetime NOT NULL, `title` varchar(250) NOT NULL, `description` text NOT NULL, `allow_who` varchar(15) NOT NULL DEFAULT 'all', `hits` int(11) NOT NULL, `imageurl` varchar(250) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `album_id` (`album_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; DROP TABLE IF EXISTS `#__user_profiles`; CREATE TABLE `#__user_profiles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `city` varchar(250) NOT NULL, `description` text NOT NULL, `showmail` int(11) NOT NULL, `showbirth` int(11) NOT NULL DEFAULT '1', `showicq` int(11) NOT NULL DEFAULT '1', `karma` int(11) NOT NULL, `imageurl` varchar(250) NOT NULL, `allow_who` varchar(35) NOT NULL DEFAULT 'all', `signature` varchar(240) NOT NULL, `gender` varchar(1) NOT NULL, `formsdata` text NOT NULL, `email_newmsg` int(11) NOT NULL DEFAULT '1', `cm_subscribe` varchar(4) NOT NULL, `stats` text NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `city` (`city`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 ROW_FORMAT=DYNAMIC; INSERT INTO `#__user_profiles` (`id`, `user_id`, `city`, `description`, `showmail`, `showbirth`, `showicq`, `karma`, `imageurl`, `allow_who`, `signature`, `gender`, `formsdata`, `email_newmsg`, `cm_subscribe`, `stats`) VALUES (1, 1, 'Москва', 'Р.Хайнлайн, А.Азимов, А.Кларк', 1, 1, 1, 0, '', 'all', '', 'm', '---\n22: Р.Хайнлайн, А.Азимов, А.Кларк\n24: Высшее\n', 1, 'none', '---\ncount: \n comments: 1\n forum: 1\n photos: 2\n board: 2\n files_public: 0\n files_private: 0\nrating: 0\n'); DROP TABLE IF EXISTS `#__user_wall`; CREATE TABLE `#__user_wall` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `pubdate` datetime NOT NULL, `content` text NOT NULL, `usertype` varchar(8) NOT NULL DEFAULT 'user', PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251;