diff --git a/core/class.config.php b/core/class.config.php
index a55cb35..463245c 100644
--- a/core/class.config.php
+++ b/core/class.config.php
@@ -12,7 +12,7 @@ class Config
{
var $data = array();
- var $configFile = 'config/config.php'; //Default Config File
+ var $configFile = "config/config.php"; //Default Config File
var $path_protectedconf = "config/config-protected.php";
function __construct()
diff --git a/index.php b/index.php
index 17f2682..12827ef 100644
--- a/index.php
+++ b/index.php
@@ -121,7 +121,7 @@
if($CDB->status() != 1)
{
echo "Cannot connect to the Character database. Please make sure you have this realm setup successfully in the Admin Panel.
- Delete your cookies to reset realm selection back to default";
+ Delete your cookies to reset realm selection back to default. ";
die();
}
diff --git a/install/index.php b/install/index.php
index 6580725..36ab7c1 100644
--- a/install/index.php
+++ b/install/index.php
@@ -200,17 +200,17 @@ function output_message($type, $text)
die();
}
// Check if provided info is correct
- @mysql_connect($_POST['db_host'].":".$_POST['db_port'], $_POST['db_username'], $_POST['db_password'])
+ $link = @mysqli_connect($_POST['db_host'], $_POST['db_username'], $_POST['db_password'], $_POST['db_name'], $_POST['db_port'])
or die('
Couldn\'t connect to MySQL Database. Please
Go Back and re-enter MySQL Database Information.
MySql error log:
- '.mysql_error().'
Counld Not select Realm database! Please go back and re-submit realm DB information.');
output_message('success', 'Successfully Connected to Realm DB.');
// Check if "account" table exsists, so we make (almost) sure mangos is actually installed (which is necesarry for this whole thing to work)
- @mysql_query("SELECT * FROM `account` LIMIT 1") or die('Error!
Account table not found! Cannot Continue with the installation without an Account
- table!
MySql error log:
'.mysql_error().'
');
+ @mysqli_query($link, "SELECT * FROM `account` LIMIT 1") or die('Error!
Account table not found! Cannot Continue with the installation without an Account
+ table!
MySql error log:
'.mysqli_error().'
');
// Everthing should be fine, so first insert info into protected config file
$conffile = "../config/config-protected.php";
@@ -239,7 +239,7 @@ function output_message($type, $text)
}
// Preparing for sql injection... (prashing, etc...)
- $checker = @mysql_query("SELECT * FROM `account_extend` LIMIT 1");
+ $checker = @mysqli_query($link, "SELECT * FROM `account_extend` LIMIT 1");
if(!isset($_POST['skip']))
{
// Dealing with the full install sql file
@@ -285,11 +285,11 @@ function output_message($type, $text)
// Sql injection
foreach ($queries as $query)
{
- mysql_query($query);
+ mysqli_query($link, $query);
}
}
- $get_name = mysql_query("SELECT `name` FROM `realmlist` WHERE `id`=1 LIMIT 1") or die(''.mysql_error().'
');
- $DB_name = mysql_result($get_name,0);
+ $get_name = mysqli_query($link, "SELECT `name` FROM `realmlist` WHERE `id`=1 LIMIT 1") or die(''.mysqli_error().'
');
+ $DB_name = mysqli_fetch_assoc($get_name);
?>