CREATE TABLE IF NOT EXISTS `albom_pav` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`name` text NOT NULL,
`obl` int(11) NOT NULL,
`text` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `antimessage` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mess` varchar(80) NOT NULL,
`messoff` varchar(80) NOT NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `ban` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`yaid` int(11) NOT NULL,
`ip` char(30) NOT NULL,
`type` text NOT NULL,
`iduser` int(11) NOT NULL,
`text` text NOT NULL,
`bantime` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `comes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`idwh` int(11) NOT NULL,
`text` text NOT NULL,
`where` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`name_eng` text NOT NULL,
`icon` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `country_city` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`name_eng` text NOT NULL,
`country` int(11) NOT NULL,
`region` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `country_region` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`region` int(11) NOT NULL,
`country` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `dialogs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(14) NOT NULL,
`oid` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `faq` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL,
`name` text NOT NULL,
`text` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `files` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`what` varchar(255) NOT NULL,
`where` int(11) NOT NULL,
`url` text NOT NULL,
`info` text NOT NULL,
`name` varchar(255) NOT NULL,
`user` int(11) NOT NULL,
`pass` varchar(8) NOT NULL,
`time` int(11) NOT NULL,
`load` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `lenta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`type` int(11) NOT NULL,
`text` text NOT NULL,
`from` int(11) NOT NULL,
`url` text NOT NULL,
`where` int(11) NOT NULL DEFAULT '0',
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `mail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fid` int(11) NOT NULL,
`oid` int(11) NOT NULL,
`dialog` int(11) NOT NULL,
`title` varchar(150) NOT NULL,
`text` text NOT NULL,
`read` enum('yes','no','save') NOT NULL DEFAULT 'no',
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`tip` varchar(40) NOT NULL,
`url` text NOT NULL,
`chet` varchar(40) NOT NULL,
`icon` varchar(40) NOT NULL,
`sid` int(11) NOT NULL,
`info` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `nuts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`idwh` int(11) NOT NULL,
`where` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `online` (
`login` varchar(40) NOT NULL,
`id` int(11) NOT NULL,
`session` varchar(100) NOT NULL,
`ip` char(30) NOT NULL,
`browser` varchar(100) NOT NULL,
`where` text NOT NULL,
`time` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `reit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`kto` int(11) NOT NULL,
`komy` int(11) NOT NULL,
`text` text NOT NULL,
`rei` int(11) NOT NULL,
`where` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `reklama` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(60) NOT NULL,
`url` text NOT NULL,
`img` text NOT NULL,
`poz` int(2) NOT NULL,
`type` text NOT NULL,
`people` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `report` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`text` text NOT NULL,
`come` text NOT NULL,
`type` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `settings` (
`name` text NOT NULL,
`parametr` text NOT NULL,
`comments` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `settings` (`name`, `parametr`, `comments`) VALUES
('siteopen', 'off', 'Технический перерыв (on- включён, off- выключен)'),
('web', '1', 'Доступна ли web версия сайта(1-Да,0-нет))'),
('timezone', 'Europe/Moscow', 'Временная зона'),
('rules', 'Правила сайта пока что не установлены.', 'Правила для сайта'),
('bbcodes', 'off', 'Включены ли BB коды (on- включены, off-выключены)'),
('sys_mail', '1', 'Системные уведомления (1-включены,0-отключены)'),
('copyright', 'yes', 'Вставлять ли копирай на изображения (yes- вставлять, no-нет)'),
('smiles', 'off', 'Смайлы сайта (on-включены, off-выключены)'),
('title', 'Новый сайт', 'Заголовок сайта'),
('kopy', 'Новый сайт', 'Копирайт снизу сайта'),
('keywords', 'Новый сайт на GlobalCMS', 'Ключевые слова сайта'),
('description', 'Новый сайт на GlobalCMS', 'Описание сайта'),
('timeus', '500', 'Время нахождения пользователей в онлайн(в секундах)'),
('timeguest', '450', 'Время нахождения гостей в онлайн(в секундах)'),
('cron', '86400', 'Время,через которое будет выполняться проверка и очистка мусора'),
('crontime', '1432134331', 'Время,когда была выполнена последняя очистка мусора'),
('capcha', '1', 'Отображается ли капча (0-да,1-капча отключена)'),
('captcha_eazy', '3', 'Сложност капчи (1-только цифры,2-только буквы латинского алфавита,3-буквы и цифры)'),
('rega', '3', 'Тип регистрации на сайте (1-закрытая,2-открытая,3-по одобрению администрации)'),
('ststyle', 'gcms', 'Стандартный стиль сайта'),
('top', '1', 'Статистика сайта (0-выключена,1-включена)'),
('floodfiles', '0', 'Время,через которое можно загрузить следующий файл'),
------------------------------------------------------------------
('ogrfiles', '0', 'Сколько необходимо баллов для загрузки файлов'),
-------------------------------------------------------------------
('bonus', '5', 'Бонус баллов при регистрации'),
('floodpm', '10', 'Время,через которое можно написать следующее личное сообщение'),
('floodkom', '10', 'Время между сообщениями'),
('sys_mail', '1', 'Отправлять уведомления о новых личных сообщениях на email (0-выключено,1-включено)'),
('max_import', '10', 'Максимальный размер для загрузки файлов (в байтах)'),
('stena', '0', 'Включены ли личные стены пользователей (0-нет,1-да)'),
('geopos', '0', 'Геолокация(система городов и стран) (0-выключена,1-включена)');
CREATE TABLE IF NOT EXISTS `smiles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`file` varchar(120) NOT NULL,
`cat` int(11) NOT NULL,
`smile` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `smiles_cat` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL,
`name` text NOT NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `styles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`url` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
INSERT INTO `styles` (`id`, `name`, `url`, `time`) VALUES
(1, 'Стандартный стиль', 'gcms', 1412590030);
CREATE TABLE IF NOT EXISTS `top` (
`agent` text NOT NULL,
`user` text NOT NULL,
`id` int(11) NOT NULL,
`ip` text NOT NULL,
`hits` int(11) NOT NULL,
`time` int(11) NOT NULL,
`day` int(11) NOT NULL,
`month` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(40) NOT NULL,
`pass` varchar(100) NOT NULL,
`email` varchar(50) NOT NULL,
`site` varchar(40) NOT NULL,
`level` tinyint(2) NOT NULL DEFAULT '1',
`name` varchar(40) NOT NULL,
`otch` varchar(60) NOT NULL,
`fami` varchar(40) NOT NULL,
`foto` varchar(80) NOT NULL,
`sex` enum('m','w') NOT NULL,
`day` tinyint(2) NOT NULL,
`month` tinyint(2) NOT NULL,
`year` smallint(4) NOT NULL,
`status` varchar(11) NOT NULL,
`city` int(11) NOT NULL,
`lenta` int(11) NOT NULL,
`number` text NOT NULL,
`balls` int(9) NOT NULL,
`skype` varchar(11) NOT NULL,
`do` text NOT NULL,
`interes` text NOT NULL,
`about` text NOT NULL,
`music` text NOT NULL,
`films` text NOT NULL,
`games` text NOT NULL,
`act` enum('yes','no') NOT NULL,
`actid` int(9) NOT NULL,
`mail` int(1) NOT NULL,
`ip` char(30) NOT NULL DEFAULT 'Null',
`browser` varchar(100) NOT NULL DEFAULT 'Null',
`sort` char(4) NOT NULL DEFAULT 'ASC',
`style` varchar(11) NOT NULL,
`num` tinyint(2) NOT NULL DEFAULT '10',
`forma` int(1) NOT NULL,
`stenacom` int(1) NOT NULL,
`stenazap` int(1) NOT NULL,
`height` int(3) NOT NULL DEFAULT '3',
`width` int(3) NOT NULL DEFAULT '20',
`lasttime` int(11) NOT NULL,
`time` int(11) NOT NULL,
`online` int(11) NOT NULL,
`money` int(11) NOT NULL,
`autoritet` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;