Размер файла: 1.12Kb
<?php
/*
by don't give me name's
icq 6146230, [email protected], i-am-dmitry.ru
Version: 1.2.1
name: Update
place: update.php
description: обновление блогов
*/
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';
mysql_query("
CREATE TABLE `blogs_rating` (
`id` int(11) NOT NULL auto_increment,
`id_blog` int(11) NOT NULL,
`id_record` int(11) NOT NULL,
`users` text NOT NULL,
`plus` int(11) NOT NULL,
`minus` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
");
mysql_query("ALTER TABLE `blogs` ADD `rating` INT( 11 ) NOT NULL;");
mysql_query("ALTER TABLE `blogs` ADD `title` VARCHAR( 50 ) NOT NULL AFTER `date` ;");
mysql_query("ALTER TABLE `blogs_title` ADD `rating` INT( 11 ) NOT NULL;");
include_once 'sys/inc/thead.php';
echo "Update is successful!<br />";
include_once 'sys/inc/tfoot.php';
?>