--
-- Структура таблицы `afbcomments`
--

CREATE TABLE IF NOT EXISTS `afbcomments` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `idnew` int(10) NOT NULL,
  `idu` int(11) NOT NULL,
  `date` varchar(50) NOT NULL,
  `user` varchar(20) NOT NULL,
  `text` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `forum`
--

CREATE TABLE IF NOT EXISTS `forum` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(150) NOT NULL,
  `text` text NOT NULL,
  `ogl` varchar(80) NOT NULL,
  `razdel` int(1) NOT NULL DEFAULT '0',
  `status` int(1) NOT NULL DEFAULT '0',
  `data` varchar(20) NOT NULL,
  `date` int(10) NOT NULL,
  `tema` int(1) NOT NULL DEFAULT '0',
  `ban_forum` varchar(5) NOT NULL DEFAULT '0',
  `chetat` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user` (`user`),
  KEY `ban_forum` (`ban_forum`),
  KEY `razdel` (`razdel`),
  KEY `data` (`data`),
  KEY `status` (`status`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `forum_ban`
--

CREATE TABLE IF NOT EXISTS `forum_ban` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(25) NOT NULL,
  `moder` varchar(25) NOT NULL,
  `ban` varchar(25) NOT NULL,
  `date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `forum_mes`
--

CREATE TABLE IF NOT EXISTS `forum_mes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(25) NOT NULL,
  `text` text NOT NULL,
  `moder` varchar(25) NOT NULL,
  `date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `forum_stop`
--

CREATE TABLE IF NOT EXISTS `forum_stop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(25) NOT NULL,
  `text` text NOT NULL,
  `date` varchar(30) NOT NULL,
  `stop_forum` varchar(10) NOT NULL,
  `moder` varchar(25) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `forum_tema`
--

CREATE TABLE IF NOT EXISTS `forum_tema` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(150) NOT NULL,
  `text` varchar(150) NOT NULL,
  `ogl` varchar(150) NOT NULL,
  `razdel` int(1) NOT NULL DEFAULT '0',
  `status` int(1) NOT NULL DEFAULT '0',
  `data` varchar(20) NOT NULL,
  `tema` int(1) NOT NULL DEFAULT '0',
  `data1` varchar(20) NOT NULL,
  `img` varchar(150) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `razdel` (`razdel`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `mess_adm_zh`
--

CREATE TABLE IF NOT EXISTS `mess_adm_zh` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `link_id` int(11) NOT NULL,
  `text` text NOT NULL,
  `date` varchar(40) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `reyting_users`
--

CREATE TABLE IF NOT EXISTS `reyting_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kto` varchar(100) NOT NULL DEFAULT '',
  `komu` varchar(100) NOT NULL DEFAULT '',
  `skolyko` varchar(11) NOT NULL DEFAULT '0',
  `date` int(11) NOT NULL DEFAULT '0',
  `date_del` int(11) NOT NULL DEFAULT '0',
  `bonus` varchar(5) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `reyting_users_options`
--

CREATE TABLE IF NOT EXISTS `reyting_users_options` (
  `id` int(1) NOT NULL,
  `kupleno_raz` int(11) NOT NULL DEFAULT '0',
  `na_summu` double NOT NULL DEFAULT '0',
  `stoit` double DEFAULT '0',
  `bonus_user` double DEFAULT '0',
  `users_bonus` double NOT NULL DEFAULT '0',
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_auto`
--

CREATE TABLE IF NOT EXISTS `seelf_auto` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status` varchar(25) NOT NULL,
  `wmid` bigint(12) NOT NULL DEFAULT '0',
  `username` varchar(25) NOT NULL,
  `timer` int(3) NOT NULL DEFAULT '15',
  `date` int(11) NOT NULL,
  `plan` int(11) NOT NULL DEFAULT '0',
  `limit` int(11) NOT NULL DEFAULT '0',
  `limit_now` int(11) NOT NULL DEFAULT '0',
  `members` int(11) NOT NULL DEFAULT '0',
  `url` varchar(160) NOT NULL,
  `description` varchar(100) NOT NULL,
  `claims` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL,
  `money` float(12,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `status` (`status`),
  KEY `wmid` (`wmid`),
  KEY `date` (`date`),
  KEY `limit_now` (`limit_now`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_autoclicker`
--

CREATE TABLE IF NOT EXISTS `seelf_autoclicker` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(50) NOT NULL,
  `R` varchar(50) CHARACTER SET cp1251 COLLATE cp1251_bin NOT NULL DEFAULT 'R',
  `login` varchar(50) NOT NULL,
  `reason` varchar(50) NOT NULL,
  `ip` varchar(50) NOT NULL DEFAULT 'не определён',
  `whoadd` varchar(50) NOT NULL,
  `ipadd` varchar(50) NOT NULL,
  `comment` varchar(300) NOT NULL DEFAULT 'Комментарий',
  `date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `login` (`login`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_auto_vis`
--

CREATE TABLE IF NOT EXISTS `seelf_auto_vis` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(25) NOT NULL,
  `type` varchar(20) NOT NULL,
  `ident` int(11) DEFAULT NULL,
  `date` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL,
  `money` float(12,4) NOT NULL DEFAULT '0.0000',
  PRIMARY KEY (`id`),
  KEY `username` (`username`),
  KEY `type` (`type`),
  KEY `ident` (`ident`),
  KEY `date` (`date`),
  KEY `ip` (`ip`),
  KEY `money` (`money`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_comments`
--

CREATE TABLE IF NOT EXISTS `seelf_comments` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `idnew` int(10) NOT NULL,
  `data` varchar(150) NOT NULL,
  `user` varchar(20) NOT NULL,
  `comment` varchar(10000) NOT NULL,
  `reyt_rek` varchar(50) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `idnew` (`idnew`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_downloads`
--

CREATE TABLE IF NOT EXISTS `seelf_downloads` (
  `id` int(7) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `text` text NOT NULL,
  `plan` int(11) NOT NULL,
  `kol` varchar(255) NOT NULL,
  `var1` varchar(255) NOT NULL,
  `var2` varchar(255) NOT NULL,
  `var3` varchar(255) NOT NULL,
  `var4` varchar(255) NOT NULL,
  `var5` varchar(255) NOT NULL,
  `url` varchar(255) NOT NULL,
  `verno` int(1) DEFAULT NULL,
  `user` varchar(255) NOT NULL,
  `size` varchar(255) NOT NULL,
  `status` int(1) DEFAULT '0',
  `vip` int(1) NOT NULL DEFAULT '0',
  `color` varchar(150) NOT NULL,
  `reyt_rek` int(4) NOT NULL DEFAULT '0',
  `kliks` float(9,3) unsigned NOT NULL DEFAULT '0.000',
  PRIMARY KEY (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_downloads_z`
--

CREATE TABLE IF NOT EXISTS `seelf_downloads_z` (
  `id` int(7) NOT NULL AUTO_INCREMENT,
  `text` text NOT NULL,
  `login` varchar(255) NOT NULL,
  `date` varchar(255) NOT NULL,
  `id_task` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `login` (`login`),
  KEY `id_task` (`id_task`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_downstats`
--

CREATE TABLE IF NOT EXISTS `seelf_downstats` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idquest` int(11) NOT NULL,
  `answ` int(1) DEFAULT NULL,
  `status` varchar(1) NOT NULL,
  `user` varchar(255) NOT NULL,
  `reyt_user` varchar(150) NOT NULL DEFAULT '0.00',
  `dow_user` varchar(50) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_dow_list`
--

CREATE TABLE IF NOT EXISTS `seelf_dow_list` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dow_user_ban` int(2) NOT NULL DEFAULT '0',
  `username` varchar(25) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `username` (`username`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_questions`
--

CREATE TABLE IF NOT EXISTS `seelf_questions` (
  `id` int(7) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `text` text NOT NULL,
  `plan` varchar(255) NOT NULL,
  `kol` varchar(255) NOT NULL,
  `var1` varchar(255) NOT NULL,
  `var2` varchar(255) NOT NULL,
  `var3` varchar(255) NOT NULL,
  `var4` varchar(255) NOT NULL,
  `var5` varchar(255) NOT NULL,
  `url` varchar(255) NOT NULL,
  `verno` int(1) DEFAULT NULL,
  `user` varchar(255) NOT NULL,
  `size` varchar(255) NOT NULL,
  `status` int(1) DEFAULT '0',
  `vip` int(1) NOT NULL DEFAULT '0',
  `color` varchar(150) NOT NULL,
  `reyt_rek` int(4) NOT NULL DEFAULT '0',
  `kliks` float(9,3) unsigned NOT NULL DEFAULT '0.000',
  PRIMARY KEY (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_questionsstats`
--

CREATE TABLE IF NOT EXISTS `seelf_questionsstats` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idquest` int(11) NOT NULL,
  `answ` int(1) DEFAULT NULL,
  `status` varchar(1) NOT NULL,
  `user` varchar(255) NOT NULL,
  `reyt_user` varchar(150) NOT NULL DEFAULT '0.00',
  `dow_user` varchar(50) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `idquest` (`idquest`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_questions_list`
--

CREATE TABLE IF NOT EXISTS `seelf_questions_list` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dow_user_ban` int(2) NOT NULL DEFAULT '0',
  `username` varchar(25) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `username` (`username`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_questions_z`
--

CREATE TABLE IF NOT EXISTS `seelf_questions_z` (
  `id` int(7) NOT NULL AUTO_INCREMENT,
  `text` text NOT NULL,
  `login` varchar(255) NOT NULL,
  `date` varchar(255) NOT NULL,
  `id_task` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `login` (`login`),
  KEY `id_task` (`id_task`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_task`
--

CREATE TABLE IF NOT EXISTS `seelf_task` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `author` varchar(30) NOT NULL,
  `title` varchar(50) NOT NULL,
  `descr` varchar(10000) NOT NULL,
  `amount` float NOT NULL DEFAULT '0',
  `kolvo` varchar(10) NOT NULL DEFAULT '0',
  `starturl` varchar(150) NOT NULL,
  `verinfo` varchar(1000) NOT NULL,
  `data` varchar(20) NOT NULL,
  `hltask` varchar(7) NOT NULL DEFAULT '#ffffff',
  `good` int(5) NOT NULL DEFAULT '0',
  `bad` int(5) NOT NULL DEFAULT '0',
  `wait` int(5) NOT NULL DEFAULT '0',
  `balance` varchar(10) NOT NULL DEFAULT '0.00',
  `namep` varchar(20) NOT NULL,
  `date` int(10) NOT NULL,
  `color` varchar(10) NOT NULL,
  `type` varchar(150) NOT NULL,
  `text` text NOT NULL,
  `url` varchar(160) NOT NULL,
  `c_text` varchar(100) NOT NULL,
  `credits` int(4) NOT NULL DEFAULT '0',
  `pay` float NOT NULL DEFAULT '0',
  `active` int(1) NOT NULL DEFAULT '0',
  `inprogress` int(4) NOT NULL DEFAULT '0',
  `reyt_rek` int(4) NOT NULL DEFAULT '0',
  `reyt_user` varchar(50) NOT NULL DEFAULT '0.00',
  `vip` int(1) NOT NULL DEFAULT '0',
  `verx` int(1) NOT NULL DEFAULT '0',
  `24h` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `author` (`author`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_task_ban`
--

CREATE TABLE IF NOT EXISTS `seelf_task_ban` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` int(11) NOT NULL,
  `namep` varchar(20) NOT NULL,
  `nameuser` varchar(20) NOT NULL,
  `ident` int(2) DEFAULT NULL,
  `kolvoban` int(2) NOT NULL DEFAULT '0',
  `comments` varchar(150) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `namep` (`namep`),
  KEY `nameuser` (`nameuser`),
  KEY `ident` (`ident`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `seelf_task_pay`
--

CREATE TABLE IF NOT EXISTS `seelf_task_pay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `namep` varchar(20) NOT NULL,
  `ident` int(11) DEFAULT NULL,
  `nameuser` varchar(20) NOT NULL,
  `title` varchar(100) NOT NULL,
  `c_text` text NOT NULL,
  `date` varchar(10) NOT NULL,
  `time` int(10) NOT NULL,
  `pay` varchar(5) NOT NULL DEFAULT '0.000',
  `ip` varchar(15) NOT NULL,
  `tipo` varchar(15) NOT NULL,
  `nareklamu` varchar(5) NOT NULL,
  `reyt_user` float(9,2) NOT NULL DEFAULT '0.00',
  `auto_g` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `ident` (`ident`),
  KEY `namep` (`namep`),
  KEY `nameuser` (`nameuser`),
  KEY `tipo` (`tipo`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `sfb_advs`
--

CREATE TABLE IF NOT EXISTS `sfb_advs` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `data` varchar(30) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  `summ` varchar(5) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `wmid` (`wmid`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `sfb_shopforbux`
--

CREATE TABLE IF NOT EXISTS `sfb_shopforbux` (
  `id` varchar(5) NOT NULL,
  `5sd` varchar(5) NOT NULL,
  `10sd` varchar(5) NOT NULL,
  `15sd` varchar(5) NOT NULL,
  `5sec` varchar(5) NOT NULL,
  `10sec` varchar(5) NOT NULL,
  `15sec` varchar(5) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

-- --------------------------------------------------------

--
-- Структура таблицы `spisok_adv`
--

CREATE TABLE IF NOT EXISTS `spisok_adv` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `all_sum` double NOT NULL,
  `all_adv` int(11) NOT NULL,
  `ferst_adv` int(11) NOT NULL,
  `lost_adv` int(11) NOT NULL,
  `system` varchar(5) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `wmid` (`wmid`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `spisok_adver`
--

CREATE TABLE IF NOT EXISTS `spisok_adver` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `all_sum` double NOT NULL,
  `all_adv` int(11) NOT NULL,
  `ferst_adv` int(11) NOT NULL,
  `lost_adv` int(11) NOT NULL,
  `system` varchar(5) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `wmid` (`wmid`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_aukcion`
--

CREATE TABLE IF NOT EXISTS `still_aukcion` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `idpr` mediumint(8) unsigned NOT NULL,
  `idu` mediumint(8) unsigned NOT NULL,
  `idpk` mediumint(8) unsigned NOT NULL,
  `tim_start` int(10) NOT NULL,
  `tim_end` int(10) NOT NULL,
  `money` smallint(2) unsigned NOT NULL,
  `stavok` mediumint(8) unsigned NOT NULL,
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_auto_refbek`
--

CREATE TABLE IF NOT EXISTS `still_auto_refbek` (
  `id_us` int(11) unsigned NOT NULL,
  `text` text CHARACTER SET cp1251 COLLATE cp1251_bin NOT NULL,
  `refbek` smallint(3) unsigned NOT NULL DEFAULT '0',
  KEY `id_us` (`id_us`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

-- --------------------------------------------------------

--
-- Структура таблицы `still_balans`
--

CREATE TABLE IF NOT EXISTS `still_balans` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(30) NOT NULL,
  `date` int(11) NOT NULL,
  `money` float NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_birstatus`
--

CREATE TABLE IF NOT EXISTS `still_birstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `prodovec` varchar(15) NOT NULL,
  `pocupatel` varchar(15) NOT NULL,
  `tovar` varchar(15) NOT NULL,
  `money` float NOT NULL,
  `date` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `prodovec` (`prodovec`),
  KEY `pocupatel` (`pocupatel`),
  KEY `tovar` (`tovar`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_cap_bal`
--

CREATE TABLE IF NOT EXISTS `still_cap_bal` (
  `wmid_cab` bigint(12) unsigned NOT NULL DEFAULT '0',
  `balans` float(9,4) unsigned NOT NULL DEFAULT '0.0000',
  `date` date NOT NULL,
  KEY `wmid_cab` (`wmid_cab`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Структура таблицы `still_comcop`
--

CREATE TABLE IF NOT EXISTS `still_comcop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idu` int(11) NOT NULL,
  `text` text NOT NULL,
  `date` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idu` (`idu`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_copilca`
--

CREATE TABLE IF NOT EXISTS `still_copilca` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` int(11) NOT NULL,
  `users` varchar(20) NOT NULL,
  `money` float NOT NULL,
  PRIMARY KEY (`id`),
  KEY `users` (`users`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_konkurs_ref`
--

CREATE TABLE IF NOT EXISTS `still_konkurs_ref` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `vid` tinyint(1) unsigned NOT NULL,
  `idref` mediumint(8) unsigned NOT NULL,
  `text` text NOT NULL,
  `time_start` int(10) unsigned NOT NULL,
  `time_end` smallint(2) unsigned NOT NULL DEFAULT '3',
  `mesto` tinytext NOT NULL,
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `idref` (`idref`),
  KEY `vid` (`vid`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_statbir`
--

CREATE TABLE IF NOT EXISTS `still_statbir` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `prodovec` varchar(15) NOT NULL,
  `pocupatel` varchar(15) NOT NULL,
  `tovar` varchar(15) NOT NULL,
  `money` float NOT NULL,
  `date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_task_del`
--

CREATE TABLE IF NOT EXISTS `still_task_del` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` int(11) NOT NULL,
  `money` float(9,3) NOT NULL,
  `autor` varchar(30) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `autor` (`autor`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `still_task_verx`
--

CREATE TABLE IF NOT EXISTS `still_task_verx` (
  `id` int(11) NOT NULL,
  `autor` varchar(30) NOT NULL,
  `date` int(11) NOT NULL,
  `id_z` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

-- --------------------------------------------------------

--
-- Структура таблицы `still_top_kon`
--

CREATE TABLE IF NOT EXISTS `still_top_kon` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `idk` mediumint(8) unsigned NOT NULL,
  `idu` mediumint(8) unsigned NOT NULL,
  `danie` float(9,2) unsigned NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `idk` (`idk`,`idu`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_accessblock`
--

CREATE TABLE IF NOT EXISTS `tb_accessblock` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(15) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_addban`
--

CREATE TABLE IF NOT EXISTS `tb_addban` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `plan` varchar(5) NOT NULL,
  `urlsite` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_addbanner`
--

CREATE TABLE IF NOT EXISTS `tb_addbanner` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `plan` varchar(5) NOT NULL,
  `urlsite` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_addbanner200`
--

CREATE TABLE IF NOT EXISTS `tb_addbanner200` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `plan` varchar(5) NOT NULL,
  `urlsite` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_adminmess`
--

CREATE TABLE IF NOT EXISTS `tb_adminmess` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `data` varchar(20) NOT NULL,
  `text` varchar(150) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_ads`
--

CREATE TABLE IF NOT EXISTS `tb_ads` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `tipo` varchar(10) NOT NULL,
  `visitime` int(10) NOT NULL,
  `ident` int(20) NOT NULL,
  `fechainicia` varchar(11) NOT NULL,
  `paypalname` varchar(15) NOT NULL,
  `paypalemail` varchar(20) NOT NULL,
  `plan` int(6) NOT NULL,
  `bold` varchar(50) NOT NULL,
  `highlight` varchar(10) NOT NULL,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `members` int(6) NOT NULL DEFAULT '0',
  `outside` int(6) NOT NULL DEFAULT '0',
  `total` int(6) NOT NULL DEFAULT '0',
  `timer` varchar(3) NOT NULL DEFAULT '20',
  `dopsec` varchar(1) NOT NULL DEFAULT '0',
  `vip` varchar(1) NOT NULL DEFAULT '0',
  `abuse` int(1) NOT NULL,
  `act` tinyint(1) NOT NULL DEFAULT '0',
  `all_zh` int(2) NOT NULL DEFAULT '0',
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `vid` tinyint(1) NOT NULL DEFAULT '0',
  `money` float(9,2) unsigned NOT NULL,
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `user` (`user`),
  KEY `ident` (`ident`),
  KEY `tipo` (`tipo`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=4007779 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_ads1`
--

CREATE TABLE IF NOT EXISTS `tb_ads1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `tipo` varchar(10) NOT NULL,
  `visitime` int(10) NOT NULL,
  `ident` int(20) NOT NULL,
  `fechainicia` varchar(11) NOT NULL,
  `paypalname` varchar(15) NOT NULL,
  `paypalemail` varchar(20) NOT NULL,
  `plan` int(6) NOT NULL,
  `bold` varchar(50) NOT NULL,
  `highlight` varchar(10) NOT NULL,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `members` int(6) NOT NULL DEFAULT '0',
  `outside` int(6) NOT NULL DEFAULT '0',
  `total` int(6) NOT NULL DEFAULT '0',
  `timer` varchar(3) NOT NULL DEFAULT '20',
  `dopsec` varchar(1) NOT NULL DEFAULT '0',
  `vip` varchar(1) NOT NULL DEFAULT '0',
  `abuse` int(1) NOT NULL,
  `act` varchar(5) NOT NULL,
  `all_zh` int(2) NOT NULL DEFAULT '0',
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `user` (`user`),
  KEY `ident` (`ident`),
  KEY `tipo` (`tipo`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=4260686 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_adsdate`
--

CREATE TABLE IF NOT EXISTS `tb_adsdate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `data` varchar(10) NOT NULL,
  `kolvo` varchar(5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_adsmail`
--

CREATE TABLE IF NOT EXISTS `tb_adsmail` (
  `id` mediumint(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(25) NOT NULL,
  `plan` int(11) NOT NULL,
  `members` mediumint(8) NOT NULL,
  `link` varchar(160) NOT NULL,
  `title` varchar(60) NOT NULL,
  `text` varchar(2500) NOT NULL,
  `time` tinyint(3) NOT NULL,
  `pod` tinyint(1) NOT NULL,
  `tr_q` longtext NOT NULL,
  `tr_w` longtext NOT NULL,
  `tr_e` longtext NOT NULL,
  `tr_r` longtext NOT NULL,
  `tr_t` longtext NOT NULL,
  `tr_y` longtext NOT NULL,
  `tr_u` longtext NOT NULL,
  `tr_i` longtext NOT NULL,
  `tr_o` longtext NOT NULL,
  `tr_p` longtext NOT NULL,
  `tr_a` longtext NOT NULL,
  `tr_s` longtext NOT NULL,
  `tr_d` longtext NOT NULL,
  `tr_f` longtext NOT NULL,
  `tr_g` longtext NOT NULL,
  `tr_h` longtext NOT NULL,
  `tr_j` longtext NOT NULL,
  `tr_k` longtext NOT NULL,
  `tr_l` longtext NOT NULL,
  `tr_z` longtext NOT NULL,
  `tr_x` longtext NOT NULL,
  `tr_c` longtext NOT NULL,
  `tr_v` longtext NOT NULL,
  `tr_b` longtext NOT NULL,
  `tr_n` longtext NOT NULL,
  `tr_m` longtext NOT NULL,
  `tr_0` longtext NOT NULL,
  `tr_1` longtext NOT NULL,
  `tr_2` longtext NOT NULL,
  `tr_3` longtext NOT NULL,
  `tr_4` longtext NOT NULL,
  `tr_5` longtext NOT NULL,
  `tr_6` longtext NOT NULL,
  `tr_7` longtext NOT NULL,
  `tr_8` longtext NOT NULL,
  `tr_9` longtext NOT NULL,
  `tr__` longtext NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_adsmail2`
--

CREATE TABLE IF NOT EXISTS `tb_adsmail2` (
  `id` mediumint(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(25) NOT NULL,
  `plan` varchar(8) NOT NULL,
  `link` varchar(160) NOT NULL,
  `title` varchar(60) NOT NULL,
  `text` varchar(2500) NOT NULL,
  `time` tinyint(3) NOT NULL,
  `pod` tinyint(1) NOT NULL,
  `summ` float(9,2) NOT NULL,
  `keyto` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_advban`
--

CREATE TABLE IF NOT EXISTS `tb_advban` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `urlsite` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  `begindate` varchar(150) NOT NULL,
  `numdays` int(5) NOT NULL DEFAULT '0',
  `curview` varchar(1) NOT NULL DEFAULT '0',
  `wmid` varchar(150) NOT NULL,
  `enddate` varchar(150) NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_advban200`
--

CREATE TABLE IF NOT EXISTS `tb_advban200` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `urlsite` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  `begindate` varchar(150) NOT NULL,
  `numdays` int(5) NOT NULL DEFAULT '0',
  `curview` varchar(1) NOT NULL DEFAULT '0',
  `wmid` varchar(150) NOT NULL,
  `enddate` varchar(150) NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_advbanclick`
--

CREATE TABLE IF NOT EXISTS `tb_advbanclick` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(15) NOT NULL,
  `url` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  `pros` int(7) NOT NULL DEFAULT '0',
  `clic` int(7) NOT NULL DEFAULT '0',
  `pocazov` int(11) NOT NULL DEFAULT '0',
  `plan` int(7) NOT NULL DEFAULT '0',
  `money` float NOT NULL,
  `status` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_advertisers`
--

CREATE TABLE IF NOT EXISTS `tb_advertisers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pemail` varchar(20) NOT NULL,
  `plan` varchar(20) NOT NULL,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `bold` varchar(150) NOT NULL,
  `highlight` varchar(20) NOT NULL,
  `tipo` varchar(150) NOT NULL,
  `money` varchar(20) NOT NULL,
  `timer` varchar(3) NOT NULL DEFAULT '20',
  `dopsec` varchar(1) NOT NULL DEFAULT '0',
  `vip` varchar(1) NOT NULL DEFAULT '0',
  `act` varchar(5) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_advertisers1`
--

CREATE TABLE IF NOT EXISTS `tb_advertisers1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pemail` varchar(20) NOT NULL,
  `plan` varchar(20) NOT NULL,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `bold` varchar(150) NOT NULL,
  `highlight` varchar(20) NOT NULL,
  `tipo` varchar(150) NOT NULL,
  `money` varchar(20) NOT NULL,
  `timer` varchar(3) NOT NULL DEFAULT '20',
  `dopsec` varchar(1) NOT NULL DEFAULT '0',
  `vip` varchar(1) NOT NULL DEFAULT '0',
  `act` varchar(5) NOT NULL,
  `summ` varchar(20) DEFAULT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_autorefreq`
--

CREATE TABLE IF NOT EXISTS `tb_autorefreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `plan` varchar(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_ban`
--

CREATE TABLE IF NOT EXISTS `tb_ban` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `urlsite` varchar(150) NOT NULL,
  `urlpic` varchar(150) NOT NULL,
  `begindate` varchar(150) NOT NULL,
  `numdays` int(5) NOT NULL DEFAULT '0',
  `curview` varchar(1) NOT NULL DEFAULT '0',
  `wmid` varchar(150) NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_black`
--

CREATE TABLE IF NOT EXISTS `tb_black` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(15) NOT NULL,
  `prichina` varchar(15) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_comp`
--

CREATE TABLE IF NOT EXISTS `tb_comp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `startdate` varchar(10) NOT NULL,
  `enddate` varchar(10) NOT NULL,
  `deldate` varchar(10) NOT NULL,
  `lidername` varchar(1) NOT NULL DEFAULT '0',
  `param` varchar(2) NOT NULL DEFAULT '0',
  `min` varchar(10) NOT NULL DEFAULT '0',
  `descr` varchar(1000) NOT NULL,
  `pris1type` varchar(1) NOT NULL DEFAULT '0',
  `pris1value` varchar(10) NOT NULL,
  `pris2type` varchar(1) NOT NULL DEFAULT '0',
  `pris2value` varchar(10) NOT NULL,
  `pris3type` varchar(1) NOT NULL DEFAULT '0',
  `pris3value` varchar(10) NOT NULL,
  `pris1status` varchar(1) NOT NULL DEFAULT '0',
  `pris2status` varchar(1) NOT NULL DEFAULT '0',
  `pris3status` varchar(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_compdata`
--

CREATE TABLE IF NOT EXISTS `tb_compdata` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idk` int(11) NOT NULL,
  `user` varchar(20) NOT NULL,
  `resvalue` float NOT NULL DEFAULT '0',
  `purse` varchar(13) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idk` (`idk`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_config`
--

CREATE TABLE IF NOT EXISTS `tb_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item` varchar(15) NOT NULL,
  `howmany` varchar(15) NOT NULL,
  `price` varchar(15) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1019 ;

--
-- Дамп данных таблицы `tb_config`
--

INSERT INTO `tb_config` (`id`, `item`, `howmany`, `price`) VALUES
(1016, 'tarifs_auto', '20000', '200'),
(1015, 'tarifs_auto', '10000', '100'),
(1013, 'tarifs_auto', '4000', '40'),
(1012, 'tarifs_auto', '3000', '30'),
(1011, 'tarifs_auto', '2000', '20'),
(1010, 'tarifs_auto', '1000', '10'),
(1009, 'tarifs_auto', '700', '7'),
(1008, 'tarifs_auto', '500', '5'),
(1007, 'tarifs_auto', '300', '3'),
(1006, 'tarifs_auto', '100', '1'),
(1005, 'auto_timer_us', '1', '0.0005'),
(1002, 'auto_click', '1', '0.005'),
(1, 'task_verx', '', '0.15'),
(1014, 'tarifs_auto', '5000', '50'),
(1, 'click1', '1', '0.015'),
(37, 'vipblock1', '1', '0'),
(1, 'click', '1', '0.021'),
(1, 'hits', '1', '0.024'),
(1, 'payment', '1', '0.1'),
(2, 'recordonline', '85', '0'),
(6, 'referal', '1', ''),
(7, 'advbanner', '1', '3'),
(8, 'advstatlink', '1', '2'),
(9, 'mfabanner', '1', ''),
(10, 'mfastatlink', '1', '2'),
(11, 'mfadyn', '1', '0.024'),
(12, 'hldyn', '1', '5'),
(13, 'mfahldyn', '1', '4'),
(18, 'adblock', '1', '2'),
(19, 'textads', '1', '2'),
(20, 'taskminprice', '1', '0.1'),
(21, 'taskmincount', '1', '10'),
(22, 'timer5', '1', '4'),
(23, 'wmframeads', '1', '2'),
(24, 'frameads', '1', ''),
(33, 'dopsec', '1', '0.0'),
(34, 'cvet_link', '1', '0.5'),
(37, 'vipblock', '1', '10'),
(38, 'vipcount', '1', '50'),
(39, 'adtatlink', '1', '2'),
(42, 'maxautopay', '1', '10'),
(46, 'refbirjcomm', '1', '10'),
(47, 'refbirjminclick', '1', '100'),
(51, 'captcha', '1', '0.0'),
(54, 'taskcomm', '1', '15'),
(55, 'taskhl', '1', '10'),
(1017, 'tarifs_auto', '30000', '300'),
(108, 'catads', '1', ''),
(113, 'antiauto', '', '23356'),
(57, 'psevdoweek1', '', '2'),
(1004, 'auto_timer_do', '1', '120'),
(1003, 'limit_min', '1', '100'),
(111, 'actwin', '', '0.01'),
(28, 'banner', '1', '2.5'),
(1000, 'auto_timer_ot', '1', '20'),
(111, 'downr', '1', '0.1'),
(1001, 'auto_timer_cena', '1', '0.001'),
(1, 'mail_p', '1', '0.025'),
(2, 'mail_min', '1', '10'),
(3, 'mail_25', '1', '3'),
(4, 'mail_30', '1', '5'),
(5, 'mail_35', '1', '7'),
(6, 'mail_40', '1', '8'),
(7, 'mail_pod', '1', '0.1'),
(8, 'mail_clic', '1', '0.021'),
(9, 'mail_refclic', '1', '0.002'),
(10, 'mail_all', '1', '400'),
(1, 'advbanner200', '1', '4'),
(7, 'advbannerclick', '1', '0.50'),
(90, 'cvet_link_stat', '1', '0.5');

-- --------------------------------------------------------

CREATE TABLE IF NOT EXISTS `tb_config1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item` varchar(15) NOT NULL,
  `howmany` varchar(15) NOT NULL,
  `price` varchar(15) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=113 ;

--
-- Дамп данных таблицы `tb_config1`
--

INSERT INTO `tb_config1` (`id`, `item`, `howmany`, `price`) VALUES
(1, 'click', '1', ''),
(1, 'referalclick', '1', '0.005'),
(1, 'hits', '1', '0.02'),
(1, 'payment', '1', '0.0'),
(2, 'recordonline', '307', '0'),
(6, 'referal', '1', '5'),
(7, 'advbanner', '1', '1'),
(9, 'mfabanner', '1', ''),
(11, 'mfadyn', '1', '0.02'),
(12, 'hldyn', '1', '5'),
(13, 'mfahldyn', '1', '5'),
(20, 'taskminprice', '1', '0.1'),
(21, 'taskmincount', '1', '10'),
(22, 'timer5', '1', '0'),
(33, 'dopsec', '1', '0'),
(36, 'reflinkprice', '1', '0.00005'),
(37, 'vipblock', '1', '0'),
(38, 'vipcount', '1', '100'),
(42, 'maxautopay', '1', '10'),
(46, 'refbirjcomm', '1', '0.5'),
(47, 'refbirjminclick', '1', '100'),
(51, 'captcha', '1', '0.0'),
(54, 'taskcomm', '1', '15'),
(55, 'taskhl', '1', '10'),
(111, 'actwin', '', '0.01'),
(1, 'referalclick2', '1', '0.0035'),
(110, 'offsite', '', '2');

-- --------------------------------------------------------

--
-- Структура таблицы `tb_frameads`
--

CREATE TABLE IF NOT EXISTS `tb_frameads` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `link` varchar(150) NOT NULL,
  `text` varchar(100) NOT NULL,
  `pokaz` int(11) NOT NULL,
  `clicks` int(11) NOT NULL,
  `enddate` varchar(150) NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `plan` smallint(4) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_frameadsreq`
--

CREATE TABLE IF NOT EXISTS `tb_frameadsreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `link` varchar(150) NOT NULL,
  `text` varchar(100) NOT NULL,
  `plan` varchar(5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_hack`
--

CREATE TABLE IF NOT EXISTS `tb_hack` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` varchar(150) NOT NULL,
  `key_n` varchar(150) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_history`
--

CREATE TABLE IF NOT EXISTS `tb_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `date` varchar(20) NOT NULL,
  `amount` double DEFAULT '0',
  `method` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL,
  `tipo` varchar(15) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user` (`user`),
  KEY `status` (`status`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_infoball`
--

CREATE TABLE IF NOT EXISTS `tb_infoball` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `date` varchar(50) NOT NULL,
  `ball` varchar(7) DEFAULT '0.00',
  `referer` varchar(20) NOT NULL,
  `mesage` varchar(50) NOT NULL,
  KEY `id` (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_liqpay`
--

CREATE TABLE IF NOT EXISTS `tb_liqpay` (
  `id` int(2) NOT NULL AUTO_INCREMENT,
  `schet` varchar(20) NOT NULL,
  `merchid` varchar(40) NOT NULL,
  `podp` varchar(300) NOT NULL,
  `podpv` varchar(300) NOT NULL,
  `urlok` varchar(150) NOT NULL,
  `urldop` varchar(150) NOT NULL,
  `valuta` varchar(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_mail`
--

CREATE TABLE IF NOT EXISTS `tb_mail` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `sender` varchar(150) NOT NULL,
  `recipient` varchar(150) NOT NULL,
  `subject` varchar(60) NOT NULL,
  `message` varchar(1000) NOT NULL,
  `status` varchar(1) NOT NULL DEFAULT '0',
  `data` varchar(20) NOT NULL,
  `izb` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `sender` (`sender`),
  KEY `recipient` (`recipient`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_mailsend`
--

CREATE TABLE IF NOT EXISTS `tb_mailsend` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `pazbyd` varchar(20) NOT NULL,
  `time` double DEFAULT '0',
  KEY `id` (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_mail_ref`
--

CREATE TABLE IF NOT EXISTS `tb_mail_ref` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(15) NOT NULL,
  `time_start` int(10) NOT NULL,
  `time_end` int(10) NOT NULL,
  `text` text NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  KEY `id` (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_mta`
--

CREATE TABLE IF NOT EXISTS `tb_mta` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `amount` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_news`
--

CREATE TABLE IF NOT EXISTS `tb_news` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `data` varchar(150) NOT NULL,
  `tema` varchar(50) NOT NULL,
  `newstext` varchar(10000) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_paket`
--

CREATE TABLE IF NOT EXISTS `tb_paket` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dinam` int(11) NOT NULL,
  `r_dinam` int(1) NOT NULL,
  `t_dinam` int(2) NOT NULL,
  `banner468` int(11) NOT NULL,
  `frame` int(11) NOT NULL,
  `statlink` int(11) NOT NULL,
  `textob` int(11) NOT NULL,
  `psevdo` int(11) NOT NULL,
  `money` float(9,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_paket_adv`
--

CREATE TABLE IF NOT EXISTS `tb_paket_adv` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `schet` bigint(12) NOT NULL,
  `dinam` text NOT NULL,
  `banner468` text NOT NULL,
  `psevdo` text NOT NULL,
  `frame` text NOT NULL,
  `statlink` text NOT NULL,
  `textob` text NOT NULL,
  `paket` int(11) NOT NULL,
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_payme`
--

CREATE TABLE IF NOT EXISTS `tb_payme` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(20) NOT NULL,
  `pemail` varchar(20) NOT NULL,
  `money` varchar(20) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `datetime` varchar(30) NOT NULL,
  `wmid` int(5) NOT NULL DEFAULT '0',
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_psevdolinks`
--

CREATE TABLE IF NOT EXISTS `tb_psevdolinks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `begindate` varchar(150) NOT NULL,
  `numdays` int(5) NOT NULL,
  `wmid` varchar(15) NOT NULL,
  `members` varchar(11) NOT NULL DEFAULT '0',
  `outside` varchar(11) NOT NULL DEFAULT '0',
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_psevdoreq`
--

CREATE TABLE IF NOT EXISTS `tb_psevdoreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  `plan` varchar(5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_refbirj`
--

CREATE TABLE IF NOT EXISTS `tb_refbirj` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iduser` int(10) NOT NULL,
  `price` float NOT NULL,
  `date` int(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `iduser` (`iduser`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_referals`
--

CREATE TABLE IF NOT EXISTS `tb_referals` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `referal` varchar(20) NOT NULL,
  `refbuck` varchar(4) DEFAULT '0',
  `date` varchar(20) NOT NULL,
  KEY `id` (`id`),
  KEY `user` (`user`),
  KEY `referal` (`referal`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_refreq`
--

CREATE TABLE IF NOT EXISTS `tb_refreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `referer` varchar(150) NOT NULL,
  `referal` int(11) NOT NULL DEFAULT '0',
  `refcount` int(5) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_restorepass`
--

CREATE TABLE IF NOT EXISTS `tb_restorepass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

CREATE TABLE IF NOT EXISTS `tb_site` (
  `id` varchar(11) NOT NULL,
  `sitename` varchar(30) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  `purse` varchar(13) NOT NULL,
  `valuta` varchar(1) NOT NULL,
  `valutaname` varchar(10) NOT NULL,
  `startdate` varchar(150) NOT NULL DEFAULT '01.01.2009',
  `comment` varchar(150) NOT NULL DEFAULT 'http://almazz-bux.ul0.ru/:sitename:Спасибо за работу:username:',
  `blockip` varchar(15) NOT NULL,
  `ctrlword` varchar(150) NOT NULL,
  `clrmail` varchar(10) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

--
-- Дамп данных таблицы `tb_site`
--

INSERT INTO `tb_site` (`id`, `sitename`, `wmid`, `purse`, `valuta`, `valutaname`, `startdate`, `comment`, `blockip`, `ctrlword`, `clrmail`) VALUES
('1', 'AlmazZ-Bux.info', '326185553342', 'R298543783520', 'R', 'WMR', '11.04.2010', 'Выплата пользователю Almazz-bux.info :username: Благодарим Вас за работу!', '', 'da276ecc04019b7082c89a0041fca65a', '1349594728');

-- --------------------------------------------------------

--
-- Структура таблицы `tb_statlink`
--

CREATE TABLE IF NOT EXISTS `tb_statlink` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(90) NOT NULL,
  `description` varchar(30) NOT NULL,
  `text` varchar(60) NOT NULL,
  `cvet` varchar(20) NOT NULL,
  `begindate` varchar(60) NOT NULL,
  `numdays` int(5) NOT NULL,
  `wmid` varchar(20) NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_statlinkreq`
--

CREATE TABLE IF NOT EXISTS `tb_statlinkreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(90) NOT NULL,
  `description` varchar(30) NOT NULL,
  `text` varchar(60) NOT NULL,
  `cvet` varchar(2) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  `plan` varchar(5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_statlinks`
--

CREATE TABLE IF NOT EXISTS `tb_statlinks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `begindate` varchar(150) NOT NULL,
  `numdays` int(5) NOT NULL,
  `wmid` varchar(20) NOT NULL,
  `leftblock` varchar(1) NOT NULL DEFAULT '0',
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `cvet` varchar(2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_statlinksreq`
--

CREATE TABLE IF NOT EXISTS `tb_statlinksreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(150) NOT NULL,
  `description` varchar(150) NOT NULL,
  `wmid` varchar(12) NOT NULL,
  `plan` varchar(5) NOT NULL,
  `leftblock` varchar(1) NOT NULL DEFAULT '0',
  `cvet` varchar(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_textads`
--

CREATE TABLE IF NOT EXISTS `tb_textads` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `url` varchar(150) NOT NULL,
  `text` varchar(255) NOT NULL,
  `enddate` varchar(150) NOT NULL,
  `play` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `plan` smallint(4) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_textadsreq`
--

CREATE TABLE IF NOT EXISTS `tb_textadsreq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(12) NOT NULL,
  `url` varchar(150) NOT NULL,
  `text` varchar(255) NOT NULL,
  `plan` varchar(5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_userclic`
--

CREATE TABLE IF NOT EXISTS `tb_userclic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(15) NOT NULL,
  `idp` int(11) NOT NULL,
  `date` int(2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idp` (`idp`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_users`
--

CREATE TABLE IF NOT EXISTS `tb_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(15) NOT NULL,
  `password` varchar(32) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `pemail` varchar(20) NOT NULL,
  `referer` varchar(15) NOT NULL,
  `country` varchar(15) NOT NULL,
  `visits` int(11) NOT NULL DEFAULT '0',
  `task` int(11) NOT NULL DEFAULT '0',
  `referals` int(11) NOT NULL DEFAULT '0',
  `referalvisits` varchar(15) NOT NULL DEFAULT '0',
  `money` varchar(15) NOT NULL DEFAULT '0.000',
  `money_cr` varchar(15) NOT NULL DEFAULT '0.000',
  `ref_percent` varchar(3) NOT NULL DEFAULT '0',
  `ref_per_all` varchar(3) NOT NULL DEFAULT '0',
  `paid` varchar(15) NOT NULL DEFAULT '0.000',
  `joindate` varchar(15) NOT NULL,
  `lastiplog` varchar(16) NOT NULL,
  `user_status` varchar(10) NOT NULL DEFAULT 'user',
  `wmid` varchar(12) NOT NULL,
  `blockip` varchar(15) NOT NULL,
  `reflinkpaid` varchar(15) NOT NULL DEFAULT '0.000',
  `rlvisits` varchar(15) NOT NULL DEFAULT '0',
  `reyting` float NOT NULL DEFAULT '0',
  `avatar` varchar(20) NOT NULL DEFAULT 'no.gif',
  `views_mails` int(11) NOT NULL DEFAULT '0',
  `views_mails_ref` double NOT NULL DEFAULT '0',
  `referals2` varchar(5) NOT NULL DEFAULT '0',
  `rrr` varchar(10) NOT NULL DEFAULT '0',
  `referer2` varchar(15) DEFAULT NULL,
  `referalvisits2` varchar(15) DEFAULT '0',
  `rek` float(10,3) NOT NULL DEFAULT '0.000',
  `blockpay` varchar(15) DEFAULT '0',
  `lastlogdate` varchar(15) NOT NULL,
  `lastvxod` int(11) NOT NULL,
  `lastuser` varchar(15) NOT NULL,
  `timereg` varchar(15) NOT NULL,
  `popal` varchar(3) NOT NULL DEFAULT '0',
  `popadostime` varchar(15) NOT NULL,
  `wmlogin` int(1) NOT NULL DEFAULT '0',
  `sell` varchar(10) NOT NULL,
  `lastpay` varchar(15) DEFAULT '0',
  `nareklamu` varchar(15) NOT NULL,
  `reyt_user` float(9,2) NOT NULL DEFAULT '0.00',
  `dow_user` float NOT NULL DEFAULT '0',
  `questions_user` float NOT NULL DEFAULT '0',
  `reyt_rek` int(4) NOT NULL DEFAULT '0',
  `status` varchar(2) NOT NULL DEFAULT '0',
  `buying` int(1) NOT NULL DEFAULT '0',
  `system` int(1) NOT NULL DEFAULT '0',
  `probu` int(11) NOT NULL DEFAULT '0',
  `m_ts_ref` float(9,4) NOT NULL DEFAULT '0.0000',
  `m_ts_ref2` float(9,4) NOT NULL DEFAULT '0.0000',
  `m_dw_ref` float(9,4) NOT NULL,
  `m_dw_ref2` float(9,4) NOT NULL,
  `m_qu_ref` float(9,4) NOT NULL,
  `m_qu_ref2` float(9,4) NOT NULL,
  `ban_forum` varchar(5) NOT NULL,
  `post_forum` int(11) NOT NULL,
  `ball` float(9,3) unsigned NOT NULL DEFAULT '0.000',
  `ball_status` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `ball_date` int(10) unsigned NOT NULL DEFAULT '0',
  `doxod` float(9,4) NOT NULL DEFAULT '0.0000',
  `newrefbuck` int(3) NOT NULL DEFAULT '0',
  `lastmail` int(10) NOT NULL,
  UNIQUE KEY `username` (`username`),
  KEY `id` (`id`),
  KEY `referer` (`referer`),
  KEY `referer2` (`referer2`),
  KEY `referals` (`referals`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_zakazu`
--

CREATE TABLE IF NOT EXISTS `tb_zakazu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(20) NOT NULL,
  `date` varchar(50) NOT NULL,
  `amount` double DEFAULT '0',
  `method` varchar(150) NOT NULL,
  `status` varchar(40) NOT NULL,
  `tipo` varchar(15) NOT NULL,
  KEY `id` (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `tb_zar`
--

CREATE TABLE IF NOT EXISTS `tb_zar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `wmid` varchar(20) NOT NULL,
  `kol` varchar(20) NOT NULL,
  `amount` double DEFAULT '0',
  `date` varchar(50) NOT NULL,
  `date2` varchar(40) NOT NULL,
  `tip` varchar(40) NOT NULL,
  KEY `id` (`id`),
  KEY `wmid` (`wmid`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Структура таблицы `users_online`
--

CREATE TABLE IF NOT EXISTS `users_online` (
  `visitor` varchar(15) NOT NULL,
  `lastvisit` int(14) NOT NULL,
  `user` varchar(15) NOT NULL,
  `urlpage` varchar(150) NOT NULL,
  `loading` int(6) NOT NULL DEFAULT '0',
  `blocked` varchar(1) NOT NULL DEFAULT '0',
  UNIQUE KEY `visitor` (`visitor`),
  KEY `user` (`user`)
) ENGINE=MEMORY DEFAULT CHARSET=cp1251;

-- --------------------------------------------------------

--
-- Структура таблицы `user_zal`
--

CREATE TABLE IF NOT EXISTS `user_zal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `link_id` int(11) NOT NULL,
  `user` varchar(50) NOT NULL,
  `date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1;

-- --------------------------------------------------------

--
-- Структура таблицы `wall`
--

CREATE TABLE IF NOT EXISTS `wall` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `wall` varchar(15) NOT NULL,
  `user` varchar(15) NOT NULL,
  `data` varchar(150) NOT NULL,
  `comment` text NOT NULL,
  `status` varchar(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `wall` (`wall`),
  KEY `user` (`user`),
  KEY `status` (`status`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
