From 6876d2650bfca459388e9967e6e19b08e3b72016 Mon Sep 17 00:00:00 2001 From: pecesama Date: Fri, 26 Oct 2007 03:51:27 +0000 Subject: [PATCH] Include the MySQL class and a bit of error messages handling --- update.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update.php b/update.php index 08be93b..bcfd917 100644 --- a/update.php +++ b/update.php @@ -25,6 +25,8 @@ if (!file_exists($configFile)) { require($configFile); } +require_once('classes/mysql_connection.class.php'); + $db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password); $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('shorten_links', '0');"; @@ -51,8 +53,8 @@ $sqlStr = "CREATE TABLE `".Table_prefix."feeds` ( $db->ejecutarConsulta($sqlStr); if(!is_dir('upload/CACHE')){ - mkdir('upload/CACHE'); - chmod('upload/CACHE',777); + @mkdir('upload/CACHE'); + @chmod('upload/CACHE',777); } echo "

Finished!

";