<?php
/*
=====================================================
 Скрипт модуля Rss Grabber 3.6.5
 http://grabberok.co.cc/
 Автор: Andersoni
 со Автор: Alex
 Copyright (c) 2009
=====================================================
*/

if(!defined('Rss_Grabber_INSTALL'))
{
  die("Hacking attempt!");
}

	$db_query = array();
	
	$db_query[] = "DROP TABLE IF EXISTS " . PREFIX . "_rss";
	
	$db_query[] = "CREATE TABLE " . PREFIX . "_rss  (
  `id` int(11) NOT NULL auto_increment,
  `url` varchar(255) NOT NULL default '',
  `rss` tinyint(1) NOT NULL default '1',
  `title` text NOT NULL,
  `descr` text NOT NULL,
  `category` varchar(100) NOT NULL default '',
  `allow_mod` char(1) NOT NULL default '0',
  `allow_main` tinyint(1) NOT NULL default '0',
  `allow_comm` tinyint(1) NOT NULL default '0',
  `allow_auto` tinyint(1) NOT NULL default '0',
  `allow_rate` tinyint(1) NOT NULL default '0',
  `allow_more` tinyint(1) NOT NULL default '0',
  `allow_watermark` tinyint(1) NOT NULL default '0',
  `date_format` tinyint(1) NOT NULL default '0',
  `load_img` varchar(20) NOT NULL default '0',
  `thumb_img` tinyint(1) NOT NULL default '0',
  `start_template` text NOT NULL,
  `delate` text NOT NULL,
  `start` text NOT NULL,
  `finish` text NOT NULL,
  `inser` text NOT NULL,
  `ful_start` text NOT NULL,
  `start_title` text NOT NULL,
  `end_title` varchar(255) NOT NULL default '',
  `start_short` text NOT NULL,
  `end_short` text NOT NULL,
  `sart_link` text NOT NULL,
  `end_link` tinyint(1) NOT NULL default '0',
  `sart_cat` text NOT NULL,
  `cookies` text NOT NULL,
  `keywords` text NOT NULL,
  `stkeywords` text NOT NULL,
  `Autors` text NOT NULL,
  `xdescr` varchar(255) NOT NULL default '',
  `xpos` int(11) NOT NULL default '0',
  `short_story` varchar(100) NOT NULL default '',
  `dop_nast` varchar(100) NOT NULL default '',
  `ctp` varchar(50) NOT NULL default '',
  `full_link` varchar(250) NOT NULL default '',
  `finish_template` text NOT NULL,
  `date` varchar(60) NOT NULL default '',
  `dnast` text NOT NULL,
  `symbol` text NOT NULL,
  `ftags` text NOT NULL,
  `metatitle` text NOT NULL,
  `meta_descr` text NOT NULL,
  `key_words` text NOT NULL,
  `kategory` text NOT NULL,
  `xfields_template` text NOT NULL,
  `dop_full` varchar(100) NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `xpos` (`xpos`)
) TYPE=MyISAM /*!40101 DEFAULT CHARACTER SET " . COLLATE . " COLLATE " . COLLATE . "_general_ci */";
	
	$db_query[] = "DROP TABLE IF EXISTS " . PREFIX . "_rss_category";

	$db_query[] = "CREATE TABLE " . PREFIX . "_rss_category  (
  `id` int(10) NOT NULL auto_increment,
  `osn` int(10) NOT NULL default '0',
  `title` varchar(250) NOT NULL default '',
  `kanal` tinyint(10) NOT NULL default '0',
  PRIMARY KEY  (`id`)
	) TYPE=MyISAM /*!40101 DEFAULT CHARACTER SET " . COLLATE . " COLLATE " . COLLATE . "_general_ci */";


?>