diff --git a/src/config-sample.php b/src/config-sample.php index 3c3a2c1..fa8df49 100644 --- a/src/config-sample.php +++ b/src/config-sample.php @@ -34,6 +34,11 @@ * author: Olivier JULLIEN - 2010-05-24 *************************************************************************/ + /************************** + * Réglages serveur +***************************/ +date_default_timezone_set('Europe/Paris'); + /************************** * Réglages accès ***************************/ diff --git a/src/includes/db/class/cdblayer.php b/src/includes/db/class/cdblayer.php index f59661c..b9d5a85 100644 --- a/src/includes/db/class/cdblayer.php +++ b/src/includes/db/class/cdblayer.php @@ -381,7 +381,12 @@ public function ErrorInsert( $sDBName, $sLogin, $sType, $sTitle, $sDescription) */ public function GetInfo() { - return htmlspecialchars(mysql_get_client_info()); + if( function_exists('mysql_get_client_info') ) { + $sReturn = mysql_get_client_info(); + } else { + $sReturn = $this->m_pDriver->getAttribute( constant('PDO::ATTR_CLIENT_VERSION') ); + } + return htmlspecialchars($sReturn); } diff --git a/src/includes/display/contactsexport.php b/src/includes/display/contactsexport.php index 95dda9a..940a9d3 100644 --- a/src/includes/display/contactsexport.php +++ b/src/includes/display/contactsexport.php @@ -46,4 +46,4 @@ header('Pragma: no-cache'); // For HTTP/1.0 compability header('Content-type: text/html; charset=UTF-8'); ?> -Export

Il est impossible de générer le fichier d'export.

  1. Vérifiez les fichiers de logs pour avoir une description de l'erreur.
  2. Vous pouvez retourner à la liste des contacts en cliquant sur le lien: PBRaiders
+Export

Il est impossible de générer le fichier d'export.

  1. Vérifiez les fichiers de logs pour avoir une description de l'erreur.
  2. Vous pouvez retourner à la liste des contacts en cliquant sur le lien: PBRaiders
diff --git a/src/install.php b/src/install.php index 475828f..6739ca6 100644 --- a/src/install.php +++ b/src/install.php @@ -33,11 +33,13 @@ * description: build and display the main page. * POST: act=install, pwd=, pwdc=, usr= * author: Olivier JULLIEN - 2010-02-04 + * update: Olivier JULLIEN - 2017-12-04, mysql_get_client_info does not + * exist anymore on php7.0 *************************************************************************/ /** Defines **********/ - define('PBR_VERSION','1.2.1'); + define('PBR_VERSION','1.3.0'); define('PBR_PATH',dirname(__FILE__)); /** Include config @@ -64,7 +66,11 @@ $sPHPVersionRequired = '5.2'; $sMYSQLVersionRequired = '5.0'; $sPHPVersion = phpversion(); - $sMYSQLVersion = mysql_get_client_info(); + if( function_exists( 'mysql_get_client_info' )) { + $sMYSQLVersion = mysql_get_client_info(); + } else { + $sMYSQLVersion = '5.0'; + } /** Prerequiste test ******************/