cron.php 378 B

123456789101112131415161718
  1. #!/usr/bin/php
  2. <?php
  3. $config = yaml_parse_file('./config.yaml');
  4. include('./lib/functions.php');
  5. if ($config['expireCron'] == 'cli') {
  6. if (!is_dir($config['uploadDir'])) {
  7. exit(_('Start the command in the file2link directory'));
  8. }
  9. cronExpire();
  10. echo _('Completed')."\n";
  11. } else {
  12. exit(_('expireCron is not at "cli" mod (in config.yaml)'));
  13. }
  14. ?>