]> git.mxchange.org Git - friendica.git/blob - include/shadowupdate.php
Merge pull request #3421 from annando/1705-diaspora-comment
[friendica.git] / include / shadowupdate.php
1 <?php
2
3 use \Friendica\Core\Config;
4
5 require_once("boot.php");
6 require_once("include/threads.php");
7
8 function shadowupdate_run(&$argv, &$argc){
9         global $a, $db;
10
11         if (is_null($a)) {
12                 $a = new App;
13         }
14
15         if (is_null($db)) {
16                 @include(".htconfig.php");
17                 require_once("include/dba.php");
18                 $db = new dba($db_host, $db_user, $db_pass, $db_data);
19                 unset($db_host, $db_user, $db_pass, $db_data);
20         }
21
22         Config::load();
23
24         update_shadow_copy();
25 }
26
27 if (array_search(__file__,get_included_files())===0){
28         shadowupdate_run($_SERVER["argv"],$_SERVER["argc"]);
29         killme();
30 }