Browse Source

Include the MySQL class and a bit of error messages handling

pecesama 17 years ago
parent
commit
6876d2650b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      update.php

+ 4 - 2
update.php View File

25
 	require($configFile);
25
 	require($configFile);
26
 } 
26
 } 
27
 
27
 
28
+require_once('classes/mysql_connection.class.php'); 
29
+
28
 $db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
30
 $db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
29
 
31
 
30
 $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('shorten_links', '0');";
32
 $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('shorten_links', '0');";
51
 $db->ejecutarConsulta($sqlStr);
53
 $db->ejecutarConsulta($sqlStr);
52
 
54
 
53
 if(!is_dir('upload/CACHE')){
55
 if(!is_dir('upload/CACHE')){
54
-	mkdir('upload/CACHE');
55
-	chmod('upload/CACHE',777);
56
+	@mkdir('upload/CACHE');
57
+	@chmod('upload/CACHE',777);
56
 }
58
 }
57
 
59
 
58
 echo "<p><em>Finished!</em></p>";
60
 echo "<p><em>Finished!</em></p>";