38 lines
1.6 KiB
PHP
Executable File
38 lines
1.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$result=array();
|
|
if ($bdd=='demo' || $_SESSION['bdd']=='demo') {
|
|
// ---------------------------------------------------
|
|
// Mon identifiant Lyra
|
|
// ---------------------------------------------------
|
|
include ('../adminInclude/psk.lyra.test.php');
|
|
}
|
|
else {
|
|
// ---------------------------------------------------
|
|
// Identifiant Lyra du vendeur
|
|
// ---------------------------------------------------
|
|
$reqSelect="SELECT * FROM modepaie WHERE idModePaie =8;";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<br><b>Requête Select Lyra (reqSelectLyra.php) =</b> ' .$reqSelect. '';}
|
|
$resConn='';
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$result=$resConn->fetch(PDO::FETCH_ASSOC);
|
|
$isTest=$result['isTest'];
|
|
$customer_id =$result['idCompte'];
|
|
if ($isTest=='En Test') {
|
|
$privateSecretLyra=$result['PrivateKeyTest'];
|
|
$pubSecretLyra=$result['PublicKeyTest'];
|
|
}
|
|
else {
|
|
$privateSecretLyra=$result['PrivateKeyProd'];
|
|
$pubSecretLyra=$result['PublicKeyProd'];
|
|
}
|
|
}
|
|
else {
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<br>Requete Ko Lyra = ' .$reqSelect;}
|
|
}
|
|
}
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<br><span class="msgOk">privateSecretLyra = ' .$privateSecretLyra. '</span>';}
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<br><span class="msgOk">pubSecretLyra = ' .$pubSecretLyra. '</span>';}
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<br><span class="msgOk">customer_id = ' .$customer_id. '</span>';}
|
|
?>
|