diff --git a/_cleanup.php b/_cleanup.php index c9d0da4e6..3c223d399 100644 --- a/_cleanup.php +++ b/_cleanup.php @@ -7,6 +7,10 @@ * @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License */ +if (php_sapi_name() !== 'cli') { + exit; +} + define('BB_ROOT', __DIR__ . DIRECTORY_SEPARATOR); $items = [