|
@@ -26,45 +26,10 @@ if (!file_exists($configFile)) {
|
26
|
26
|
|
27
|
27
|
$db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
|
28
|
28
|
|
29
|
|
-$sqlStr = "CREATE TABLE `".Table_prefix."comments` (
|
30
|
|
- `id_comment` int(11) NOT NULL auto_increment,
|
31
|
|
- `id_post` int(11) NOT NULL,
|
32
|
|
- `username` varchar(50) NOT NULL,
|
33
|
|
- `email` varchar(100) NOT NULL,
|
34
|
|
- `web` varchar(250) default NULL,
|
35
|
|
- `content` text NOT NULL,
|
36
|
|
- `ip_user` varchar(50) NOT NULL,
|
37
|
|
- `comment_date` datetime NOT NULL,
|
38
|
|
- `spam` tinyint(4) NOT NULL,
|
39
|
|
- PRIMARY KEY (`id_comment`)
|
40
|
|
-) ENGINE = MYISAM ;";
|
41
|
|
-
|
42
|
|
-$db->ejecutarConsulta($sqlStr);
|
43
|
|
-
|
44
|
|
-$sqlStr = "CREATE TABLE `".Table_prefix."options` (
|
45
|
|
- `name` varchar(100) NOT NULL,
|
46
|
|
- `val` varchar(255) NOT NULL,
|
47
|
|
- PRIMARY KEY (`name`)
|
48
|
|
-) ENGINE = MYISAM ;";
|
49
|
|
-
|
50
|
|
-$db->ejecutarConsulta($sqlStr);
|
51
|
|
-
|
52
|
|
-$sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('url_friendly', '1');";
|
|
29
|
+$sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('allow_comments', '0');";
|
53
|
30
|
|
54
|
31
|
$db->ejecutarConsulta($sqlStr);
|
55
|
32
|
|
56
|
|
-$sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('rich_text', '0');";
|
57
|
|
-
|
58
|
|
-$db->ejecutarConsulta($sqlStr);
|
59
|
|
-
|
60
|
|
-$sqlStr = "ALTER TABLE ".Table_prefix."config DROP url_friendly";
|
61
|
|
-
|
62
|
|
-$db->ejecutarConsulta($sqlStr);
|
63
|
|
-
|
64
|
|
-$sqlStr = "ALTER TABLE ".Table_prefix."config DROP rich_text";
|
65
|
|
-
|
66
|
|
-$db->ejecutarConsulta($sqlStr);
|
67
|
|
-
|
68
|
33
|
$sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('offset_city', 'Mexico/General');";
|
69
|
34
|
|
70
|
35
|
$db->ejecutarConsulta($sqlStr);
|
|
@@ -74,6 +39,6 @@ $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('offset_time', '-6');";
|
74
|
39
|
$db->ejecutarConsulta($sqlStr);
|
75
|
40
|
|
76
|
41
|
echo "<p><em>Finished!</em></p>";
|
77
|
|
-echo "<p>Now you are running on the new version!!!</p>";
|
|
42
|
+echo "<p>Now you are running on the new <strong>0.90</strong> version!!!</p>";
|
78
|
43
|
|
79
|
44
|
?>
|