<?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[] = "CREATE TABLE IF NOT EXISTS " . 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 */";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `rss` tinyint(1) NOT NULL default '1'";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `delate` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `start` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `finish` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `inser` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `ful_start` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `start_title` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `end_title` varchar(255) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `start_short` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `sart_link` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `end_link` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `sart_cat` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `stkeywords` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `xdescr` varchar(255) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `xpos` int(11) NOT NULL default '1'";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `short_story` VARCHAR( 100 ) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `dop_nast` VARCHAR( 100 ) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `ctp` VARCHAR( 50 ) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `full_link` VARCHAR( 250 ) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `finish_template` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `date` VARCHAR( 60 ) NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD KEY `xpos` (`xpos`)";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss CHANGE `proxy` `end_short` TEXT CHARACTER SET cp1251 COLLATE cp1251_general_ci";

	$db_query[] = "UPDATE " . PREFIX . "_rss SET `dop_nast` = '0=0=0=0=0=1=1=1=1=1=0=0=0=1' ";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `dnast` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `symbol` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `ftags` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `metatitle` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `meta_descr` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `key_words` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `kategory` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss CHANGE `load_img` `load_img` VARCHAR( 25 ) DEFAULT '0'";

	$db_query[] = "UPDATE " . PREFIX . "_rss SET `dnast` = '1=1=1=1=1=1=1=1=1=1' ";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `xfields_template` text NOT NULL";

	$db_query[] = "ALTER TABLE " . PREFIX . "_rss ADD `dop_full` varchar(100) NOT NULL";

?>