Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
563B

  1. <?php
  2. use Friendica\App;
  3. use Friendica\Core\Config;
  4. require_once("boot.php");
  5. require_once("include/threads.php");
  6. function shadowupdate_run(&$argv, &$argc){
  7. global $a;
  8. if (is_null($a)) {
  9. $a = new App(dirname(__DIR__));
  10. }
  11. @include(".htconfig.php");
  12. require_once("include/dba.php");
  13. dba::connect($db_host, $db_user, $db_pass, $db_data);
  14. unset($db_host, $db_user, $db_pass, $db_data);
  15. Config::load();
  16. update_shadow_copy();
  17. }
  18. if (array_search(__file__,get_included_files())===0){
  19. shadowupdate_run($_SERVER["argv"],$_SERVER["argc"]);
  20. killme();
  21. }