]> git.mxchange.org Git - friendica.git/blob - include/cli_startup.php
Only import new OStatus posts if they are from our followers
[friendica.git] / include / cli_startup.php
1 <?php /** @file */
2
3 use \Friendica\Core\Config;
4
5 require_once('boot.php');
6
7 // Everything we need to boot standalone 'background' processes
8
9 function cli_startup() {
10
11         global $a, $db;
12
13         if (is_null($a)) {
14                 $a = new App;
15         }
16
17         if (is_null($db)) {
18                 @include(".htconfig.php");
19                 require_once("dba.php");
20                 $db = new dba($db_host, $db_user, $db_pass, $db_data);
21                 unset($db_host, $db_user, $db_pass, $db_data);
22         };
23
24         require_once('include/session.php');
25
26         Config::load();
27
28         $a->set_baseurl(get_config('system','url'));
29
30         load_hooks();
31
32 }