Файл: update.php
Строк: 109
<?php
include_once 'sys/inc/home.php';
include_once 'sys/inc/start.php';
include_once 'sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
$set['title'] = "Обновление DCMS-Social 1.9.0";
include_once 'sys/inc/thead.php';
title();
aut();
if(
mysql_query("ALTER TABLE `obmennik_files`
ADD `block` ENUM('0','1') NOT NULL DEFAULT '0' ,
ADD `block_user` INT DEFAULT NULL ,
ADD `block_info` TEXT DEFAULT NULL")&&
mysql_query("ALTER TABLE `user` ADD `gang` int(11) NOT NULL default'0'")&&
mysql_query("CREATE TABLE `gangs` (
`id` int(11) NOT NULL auto_increment,
`rating` int(11) NOT NULL default'0',
`money` int(11) NOT NULL default'0',
`balls` int(11) NOT NULL default'0',
`status` varchar(250) NOT NULL,
`name` varchar(50) NOT NULL,
`block` set('0','1') NOT NULL default'0',
`cena` int(11) NOT NULL default'0',
`time` int(11) NOT NULL default'0',
`divident` int(11) NOT NULL,
`closed` set('0','1','2','3') NOT NULL default'0',
`type` set('0','1','2') NOT NULL default'0',
`id_user` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `rating` (`rating`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8")&&
mysql_query("CREATE TABLE `gangs_users` (
`id` int(11) NOT NULL auto_increment,
`id_gang` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`status` set('0','1','2') NOT NULL default'0',
`type` set('0','1') NOT NULL default'0',
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8")&&
mysql_query("CREATE TABLE `gangs_enemies` (
`id` int(11) NOT NULL auto_increment,
`id_gang` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8")&&
mysql_query("CREATE TABLE `gangs_news` (
`id` int(11) NOT NULL auto_increment,
`id_gang` int(11) NOT NULL,
`msg` varchar(500) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8")&&
mysql_query("CREATE TABLE `gangs_minichat` (
`id` int(11) NOT NULL auto_increment,
`id_gang` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`msg` varchar(500) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8")&&
mysql_query("CREATE TABLE `gangs_invite` (
`id` int(11) NOT NULL auto_increment,
`id_kont` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`id_gang` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8")){
echo 'Обновление прошло успешно!';
}
include_once 'sys/inc/tfoot.php';
?>