misc(_cleanup.php): Added CLI mode check (#1834)

This commit is contained in:
Roman Kelesidis 2025-03-02 23:57:56 +07:00 committed by GitHub
commit 5dc9a5475c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = [