file2link/cron.php
2019-11-18 01:19:13 +01:00

18 lines
356 B
PHP

<?php
$config = yaml_parse_file('./config.yaml');
include('./lib/functions.php');
if ($config['expireCron'] == 'cli') {
if (!is_dir($config['uploadDir'])) {
exit(_('Start the command in the file2link directory'));
}
cronExpire();
echo _('Completed')."\n";
} else {
exit(_('expireCron is not at "cli" mod (in config.yaml)'));
}
?>