Problème de script PHP

 

J'utilise un script php pour gérer les commentaires sur mes publications. Le voici

http://pratclif.com/postComments/admin.php

Ce script ne marche pas.

 

Il devrait s'ouvrir ceci, ce que j'obtiens sur un autre serveur ...

http://paysdefayence.free.fr/postComments/admin.php

 

admin.JPG

Voici la configuration de la base de données mySQL appelée: Où est la faute????

 

<?php
error_reporting(0);
$SETTINGS = Array (
"hostname" => 'db5000214399.hosting-data.io', /////// MySQL server, usually `localhost`. It can also be IP address, or valid domain name

"mysql_user" => 'dbu223976', ////////////// username for MySQL server

"mysql_pass" => 'Ratc94352112$', ////////////// password for MySQL server

"mysql_database" => 'dbs209155', //////////// MySQL database name

"admin_username" => 'admin', //////// ADMIN USERNAME

"admin_password" => '9435', //////// ADMIN PASSWORD

"installFolder" => '/postComments/', /// folder where script is installed. Please refer to help.html file for more details

"useCookie" => true /// change this to true if you can log in administration page but are taken back to login page when you click on any of the links
);
//////////////////
//////////////////
//////////////////
////////////////// DO NOT CHANGE BELOW
//////////////////
//////////////////

$TABLES["COMMENT_THREADS"] = 'postcomments_comments';
$TABLES["COMMENTS_OPTIONS"] = "postcomments_options";

if ($doNotConnect<>'1') {
$connection = mysql_connect($SETTINGS["hostname"], $SETTINGS["mysql_user"], $SETTINGS["mysql_pass"]) or die ('request "Unable to connect to MySQL server."'.mysql_error());
$db = mysql_select_db($SETTINGS["mysql_database"], $connection) or die ('request "Unable to select database."');
};

$defaultDateFormat = 1;
// DateFormat[1] (yyyy-mm-dd) is used by MySQL for date fields. DO NOT CHANGE THE FORMAT
$DateFormats["1"] = "yyyy-mm-dd";
$DateFormats["2"] = "yyyy/mm/dd";
$DateFormats["3"] = "yyyy.mm.dd";
$DateFormats["4"] = "mm-dd-yyyy";
$DateFormats["5"] = "mm/dd/yyyy";
$DateFormats["6"] = "mm.dd.yyyy";
$DateFormats["7"] = "dd-mm-yyyy";
$DateFormats["8"] = "dd/mm/yyyy";
$DateFormats["9"] = "dd.mm.yyyy";

$defaultTimeFormat = 1;
$TimeFormats["1"] = "12 hour";
$TimeFormats["2"] = "24 hour";

function formatDateWithFormatString($day,$month,$year,$calDateFormat){
global $DateFormats;

$format = $DateFormats[$calDateFormat];

$patterns[0] = '/dd/';
$patterns[1] = '/mm/';
$patterns[2] = '/yyyy/';

$replace[0] = $day;
$replace[1] = $month;
$replace[2] = $year;

$formatedDate = preg_replace($patterns, $replace, $format);
return $formatedDate;
}
?>