11 lines
330 B
PHP
11 lines
330 B
PHP
<?php
|
|
require_once __DIR__ . '/../includes/admin_bootstrap.php';
|
|
require_once __DIR__ . '/../config/database.php';
|
|
|
|
$db = getDB();
|
|
regenerateQrCsv($db);
|
|
|
|
$path = dirname(__DIR__) . '/qr_data.csv';
|
|
header('Content-Type: text/csv; charset=utf-8');
|
|
header('Content-Disposition: attachment; filename="qr_data.csv"');
|
|
readfile($path);
|