mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
misc(_cleanup.php): Added CLI mode check (#1834)
This commit is contained in:
parent
68bf26d0f4
commit
5dc9a5475c
1 changed files with 4 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue