Include the MySQL class and a bit of error messages handling

master
pecesama 2007-10-26 03:51:27 +00:00
parent 6a9e4893d3
commit 6876d2650b
1 changed files with 4 additions and 2 deletions

View File

@ -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 "<p><em>Finished!</em></p>";