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