2019-11-27 15:23:53 +00:00
|
|
|
#!/usr/bin/php
|
2019-11-18 00:19:13 +00:00
|
|
|
<?php
|
|
|
|
$config = yaml_parse_file('./config.yaml');
|
|
|
|
include('./lib/functions.php');
|
|
|
|
|
|
|
|
if ($config['expireCron'] == 'cli') {
|
|
|
|
if (!is_dir($config['uploadDir'])) {
|
2021-02-28 14:33:52 +00:00
|
|
|
exit(_('Start the command in the file2link directory'));
|
2019-11-18 00:19:13 +00:00
|
|
|
}
|
|
|
|
cronExpire();
|
|
|
|
echo _('Completed')."\n";
|
|
|
|
} else {
|
|
|
|
exit(_('expireCron is not at "cli" mod (in config.yaml)'));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|