| Current Path : /home/h/a/p/happyrenas/myreco.online/administration/panel/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/h/a/p/happyrenas/myreco.online/administration/panel/qrcode_base64.php |
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../');
include("../../configuration.php");
include("../../includes/fonctions.php");
setlocale(LC_TIME, 'fr_FR.UTF-8');
require_once(DOSSIER_RACINE."/administration/panel/phpqrcode/qrlib.php");
if (empty($_GET['token'])) {
http_response_code(400);
exit('Token manquant.');
}
$token = $_GET['token'];
$heb = $db->get_row("SELECT * FROM heb WHERE token = '" . $token . "'");
if (!$heb) {exit;}
$url = 'https://www.myreco.online/fiche.php?token=' . urlencode($token);
// Envoyer les bons headers pour afficher l’image
header('Content-Type: image/png');
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
// Générer le QR code directement dans la sortie
QRcode::png($url, null, QR_ECLEVEL_L, 10);
exit;