aboutsummaryrefslogtreecommitdiffstats
path: root/include/cronhooks.php
blob: ae3806984d7b673e3162ab1ce3a555109e0f53da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php /** @file */

require_once('boot.php');
require_once('include/cli_startup.php');


function cronhooks_run($argc,$argv){

	cli_startup();

	logger('cronhooks: start');
	
	$d = datetime_convert();

	call_hooks('cron', $d);

	return;
}

if (array_search(__file__,get_included_files())===0){
  cronhooks_run($argc,$argv);
  killme();
}