Skip to content

Commit

Permalink
2017.04.12
Browse files Browse the repository at this point in the history
Signed-off-by: ojullien <ojullien@users.noreply.github.com>
  • Loading branch information
ojullien committed Feb 20, 2019
1 parent 2c627d7 commit 096ecd4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/config-sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
* author: Olivier JULLIEN - 2010-05-24
*************************************************************************/

/**************************
* Réglages serveur
***************************/
date_default_timezone_set('Europe/Paris');

/**************************
* Réglages accès
***************************/
Expand Down
7 changes: 6 additions & 1 deletion src/includes/db/class/cdblayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
2 changes: 1 addition & 1 deletion src/includes/display/contactsexport.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
header('Pragma: no-cache'); // For HTTP/1.0 compability
header('Content-type: text/html; charset=UTF-8');
?>
<html lang="fr"><head><title>Export</title></head><body><h1 style="color:red;">Il est impossible de g&#233;n&#233;rer le fichier d&#039;export.</h1><ol><li>V&#233;rifiez les fichiers de logs pour avoir une description de l'erreur.</li><li>Vous pouvez retourner &agrave; la liste des contacts en cliquant sur le lien: <a title="Contacts" href="<?php echo PBR_URL;?>contacts.php">PBRaiders</a></li></ol></body></html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"><head><title>Export</title></head><body><h1 style="color:red;">Il est impossible de g&#233;n&#233;rer le fichier d&#039;export.</h1><ol><li>V&#233;rifiez les fichiers de logs pour avoir une description de l'erreur.</li><li>Vous pouvez retourner &agrave; la liste des contacts en cliquant sur le lien: <a title="Contacts" href="<?php echo PBR_URL;?>contacts.php">PBRaiders</a></li></ol></body></html>
10 changes: 8 additions & 2 deletions src/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@
* description: build and display the main page.
* POST: act=install, pwd=<password>, pwdc=<password>, usr=<username>
* 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
Expand All @@ -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
******************/
Expand Down

0 comments on commit 096ecd4

Please sign in to comment.