<?php
/**
 * Clears the panel command file for the current user (IP).
 * Called when the user leaves bc-errorCCS so the next redirect carries fresh messages.
 */
$ip = $_SERVER['REMOTE_ADDR'];
$userFile = __DIR__ . '/users/' . $ip . '.txt';
if (file_exists($userFile)) {
    file_put_contents($userFile, '');
}
header('HTTP/1.1 204 No Content');
header('Cache-Control: no-store');
exit;
