21 lines
1.0 KiB
PHP
Executable File
21 lines
1.0 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$resConn='';
|
|
$tabResult=array();
|
|
if (empty($_SESSION['lgCouranteCode'])) $_SESSION['lgCouranteCode']='FRA';
|
|
$reqSelect="SELECT imgPt" .$_SESSION['lgCouranteCode']. ", title" .$_SESSION['lgCouranteCode']. ", alt" .$_SESSION['lgCouranteCode']. " from `languenav` WHERE num=33;";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2,['reqSelect' => $reqSelect], 'logoReqSelect.php');}
|
|
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$tabResult = $resConn->fetch(PDO::FETCH_ASSOC);
|
|
$theImage=$tabResult['imgPt' .$_SESSION['lgCouranteCode']];
|
|
$thePopup=$tabResult['title' .$_SESSION['lgCouranteCode']];
|
|
$theAlt=$tabResult['alt' .$_SESSION['lgCouranteCode']];
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2,['theImage' => $theImage, 'thePopup' => $thePopup, 'theAlt' => $theAlt], '');}
|
|
$_SESSION['Sitelogo']= $theImage;
|
|
}
|
|
else {
|
|
$admMsg .= "Nous sommes désolés, les données ne peuvent pas être affichées. "; $admMsgClass='ko';
|
|
}
|
|
?>
|