1 require_once("boot.php");
4 function cronhooks_run($argv, $argc){
12 @include(".htconfig.php");
13 require_once("dba.php");
14 $db = new dba($db_host, $db_user, $db_pass, $db_data);
15 unset($db_host, $db_user, $db_pass, $db_data);
18 require_once('include/session.php');
19 require_once('include/datetime.php');
21 load_config('config');
22 load_config('system');
24 $a->set_baseurl(get_config('system','url'));
28 logger('cronhooks: start');
31 $d = datetime_convert();
33 call_hooks('cron', $d);
38 if (array_search(__file__,get_included_files())===0){
39 cronhooks_run($argv,$argc);