Initial commit

This commit is contained in:
2026-01-07 14:09:59 +08:00
commit 8a00aa71d5
939 changed files with 40616 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
// simple_cleanup.php
$temp_dir = '../temp_qrcodes/';
if (file_exists($temp_dir)) {
$files = glob($temp_dir . '*.png');
$deleted = 0;
foreach ($files as $file) {
// Delete files older than 1 hour
if (time() - filemtime($file) > 3600) {
if (unlink($file)) {
$deleted++;
}
}
}
echo "Deleted $deleted old QR code files.";
} else {
echo "QR directory not found.";
}
?>