mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
20 lines
397 B
PHP
20 lines
397 B
PHP
<?php
|
|
$config = dirname(__FILE__) . '/../../../videos/configuration.php';
|
|
require_once $config;
|
|
|
|
if (!isCommandLineInterface()) {
|
|
return die('Command Line only');
|
|
}
|
|
|
|
$isCDNEnabled = AVideoPlugin::isEnabledByName('AI');
|
|
|
|
if (empty($isCDNEnabled)) {
|
|
return die('Plugin disabled');
|
|
}
|
|
|
|
echo PHP_EOL . " Start! " . PHP_EOL;
|
|
|
|
AI:: deleteAllRecords();
|
|
|
|
echo PHP_EOL . " Done! " . PHP_EOL;
|
|
die();
|