out('Akeeba Ticket System -- Automatic attachment removal script'); $this->out('Copyright 2011-' . gmdate('Y') . ' Akeeba Ltd'); $this->out(str_repeat('=', 79)); $this->out(); global $argv; $this->out(str_repeat('~', 79)); $this->out('ATTENTION!'); $this->out(str_repeat('~', 79)); $this->out(); $this->out('This script has been deprecated. Instead you need to use the ats-cron.php'); $this->out('script e.g.'); $this->out(); $this->out(PHP_BINARY . ' ats-cron.php --command=removeattachments'); $this->out(); $this->out('You will also need to enable the "Akeeba Ticket System - Remove Obsolete'); $this->out('Attachments" plugin.'); $this->out(); $this->out('For a limited amount of time this script will call ats-cron.php for you'); $this->out('automatically, preserving compatibility with previous versions of Akeeba'); $this->out('Ticket System. Eventually it will be removed, meaning you need to make the'); $this->out('aforementioned change sooner rather than later.'); $this->out(str_repeat('~', 79)); $this->out(); $this->input->set('command', 'removeattachments'); $this->input->set('verbose', '1'); parent::doExecute(); } } FOFApplicationCLI::getInstance('ATSRemoveAttachmantsApp')->execute();