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'); ?> -