mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -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
|
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (php_sapi_name() !== 'cli') {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
define('BB_ROOT', __DIR__ . DIRECTORY_SEPARATOR);
|
define('BB_ROOT', __DIR__ . DIRECTORY_SEPARATOR);
|
||||||
|
|
||||||
$items = [
|
$items = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue