Sfoglia il codice sorgente

Include the MySQL class and a bit of error messages handling

pecesama 17 anni fa
parent
commit
6876d2650b
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      update.php

+ 4 - 2
update.php Vedi File

@@ -25,6 +25,8 @@ if (!file_exists($configFile)) {
25 25
 	require($configFile);
26 26
 } 
27 27
 
28
+require_once('classes/mysql_connection.class.php'); 
29
+
28 30
 $db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
29 31
 
30 32
 $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('shorten_links', '0');";
@@ -51,8 +53,8 @@ $sqlStr = "CREATE TABLE `".Table_prefix."feeds` (
51 53
 $db->ejecutarConsulta($sqlStr);
52 54
 
53 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 60
 echo "<p><em>Finished!</em></p>";