alpha_full/admin/choixIco/choixIcoReqPropager.php
2026-04-06 22:58:51 +02:00

34 lines
1.4 KiB
PHP
Executable File

<?php
//$nomFicAppelant = basename(__FILE__);
// -----------------------------------------------------
// ReqUpdate UPDATE ico image
// -----------------------------------------------------
if (empty($tableLangueCode)) {
$tableLangueCode=$_SESSION['tableLangueCode'];
$tableLangueDesc=$_SESSION['tableLangueDesc'];
}
// -----------------------------------------------------
// Boucler pour toutes les autres langues
// -----------------------------------------------------
for ($i=0; $i<($nbLg); $i++) {
$lgRestante=$tableLangueCode[$i];
if ($lgRestante!=$_SESSION['lgCouranteCode']) {
if ($theIco!='') {
$reqUpdate="UPDATE `languenav` SET imgPt" .$lgRestante. "='" .$theIco. "' WHERE id=" .$idLanguenav. ";";
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqUpdate' => $reqUpdate], 'choixIcoReqPropager.php');}
$resConn='';
$resConn=$idPdo->query($reqUpdate) ;
if ($resConn) {
$admMsg .= "<br>L'icône a été mise à jour pour la langue : " .$tableLangueDesc[$i]; $admMsgClass='ok';
}
else {
$admMsg .='Erreur lors de la mise à jour de l\'icône pour la langue :' .$tableLangueDesc[$i];
}
}
else
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Pas de theIco' => ''], 'choixIcoReqPropager.php');}
}
}
$trouveLG=false;
?>