alpha_full/admin/extensions/profils/reqUpdatePortail.php
2026-04-06 22:58:51 +02:00

25 lines
1.1 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
include ($includePathAdmin. "/123connect.php");
// -----------------------------------------------------
// 1 - recup idClient 123clients
// -----------------------------------------------------
if ( !isset($_SESSION['idClient123']) || empty($_SESSION['idClient123']) ) include ($includePathAdmin. "/req/reqRecupClient123.php");
// -----------------------------------------------------
// Mise à jour de l'abonnement suite a paiement
// Update ligne avec statut panier to actif
if (!empty($_SESSION['checkOutPortal_id'])) {
$reqUpdate="UPDATE `123projets` set stripePortal_id='" .$_SESSION['checkOutPortal_id']. "' WHERE idClient=" .$idClient123. " AND idModule=1;";
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Req update profil' => $reqUpdate], 'reqUpdatePortail.php');}
$resConn=$connexion->query($reqUpdate);
if ($resConn) {
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['Mise à jour du paiement ok' => ''], '');}
}
else {
$admMsg .= 'Echec de la mise à jour paiement profil : reqUpdatePortail.php';
}
}
?>