Newer
Older
<?php
/*********************************************************************
cron.php
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
if (substr(php_sapi_name(), 0, 3) != 'cli')
die('cron.php only supports local cron jobs - use http -> api/task/cron');
@chdir(realpath(dirname(__FILE__)).'/'); //Change dir.
require('api.inc.php');
require_once(INCLUDE_DIR.'api.cron.php');
LocalCronApiController::call();