You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
710 B
24 lines
710 B
<?php
|
|
/*********************************************************************
|
|
cron.php
|
|
|
|
File to handle LOCAL cron job calls.
|
|
|
|
Peter Rotich <peter@osticket.com>
|
|
Copyright (c) 2006-2013 osTicket
|
|
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:
|
|
**********************************************************************/
|
|
@chdir(dirname(__FILE__).'/'); //Change dir.
|
|
require('api.inc.php');
|
|
|
|
if (!osTicket::is_cli())
|
|
die(__('cron.php only supports local cron calls - use http -> api/tasks/cron'));
|
|
|
|
require_once(INCLUDE_DIR.'api.cron.php');
|
|
LocalCronApiController::call();
|
|
?>
|