a
This commit is contained in:
parent
ccc54cf81d
commit
ebda524d27
|
|
@ -30,6 +30,14 @@ class ControleurAjaxeditioncarteassure extends Controleur
|
|||
echo '<div class="alert alert-warning">'._("Le logo de la société est introuvable").'</div>';
|
||||
return;
|
||||
}
|
||||
|
||||
// 1. Inclure la bibliothèque phpqrcode
|
||||
// Définir le dossier de log AVANT l'include
|
||||
if (!defined('QR_LOG_DIR')) {
|
||||
define('QR_LOG_DIR', sys_get_temp_dir() . '/');
|
||||
}
|
||||
|
||||
include 'phpqrcode/qrlib.php';
|
||||
|
||||
$pdf = new FPDF_Protection('L', 'mm', array(85.6, 54));
|
||||
$pdf->SetAuthor('EBENE SOLUTIONS INFORMATIQUES');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
/*
|
||||
// À ajouter en haut de votre fichier, avant la génération du PDF
|
||||
|
||||
// 1. Inclure la bibliothèque phpqrcode
|
||||
|
|
@ -8,6 +9,7 @@ if (!defined('QR_LOG_DIR')) {
|
|||
}
|
||||
|
||||
include 'phpqrcode/qrlib.php';
|
||||
*/
|
||||
|
||||
// 2. Préparer les données pour le QR code
|
||||
$qrData = $assure['tagCarteQr'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user