2 if (!file_exists("boot.php") AND (sizeof($_SERVER["argv"]) != 0)) {
3 $directory = dirname($_SERVER["argv"][0]);
5 if (substr($directory, 0, 1) != "/")
6 $directory = $_SERVER["PWD"]."/".$directory;
8 $directory = realpath($directory."/..");
13 require_once("boot.php");
16 function cronjobs_run(&$argv, &$argc){
24 @include(".htconfig.php");
25 require_once("include/dba.php");
26 $db = new dba($db_host, $db_user, $db_pass, $db_data);
27 unset($db_host, $db_user, $db_pass, $db_data);
31 require_once('include/session.php');
32 require_once('include/datetime.php');
33 require_once('include/ostatus.php');
34 require_once('include/post_update.php');
35 require_once('mod/nodeinfo.php');
37 load_config('config');
38 load_config('system');
40 $a->set_baseurl(get_config('system','url'));
42 // No parameter set? So return
46 // Check OStatus conversations
47 // Check only conversations with mentions (for a longer time)
48 if ($argv[1] == 'ostatus_mentions') {
49 ostatus::check_conversations(true);
53 // Check every conversation
54 if ($argv[1] == 'ostatus_conversations') {
55 ostatus::check_conversations(false);
59 // Call possible post update functions
60 // see include/post_update.php for more details
61 if ($argv[1] == 'post_update') {
66 // update nodeinfo data
67 if ($argv[1] == 'nodeinfo') {
75 if (array_search(__file__,get_included_files())===0){
76 cronjobs_run($_SERVER["argv"],$_SERVER["argc"]);