<?php
// Set the file path and name
$file = 'https://dl.eddeh.net/packs/VanillaPlusV2-1.18.2.zip';

// Increment the download count
$counter_file = '../counters/vplus.txt';
$current_count = file_get_contents($counter_file);
$current_count++;
file_put_contents($counter_file, $current_count);

// Send the file to the browser
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . basename($file) . '"');
header('Content-Length: ' . filesize($file));
readfile($file);
?>
