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
532B

  1. <?php /** @file */
  2. use Friendica\App;
  3. use Friendica\Core\Config;
  4. require_once('boot.php');
  5. // Everything we need to boot standalone 'background' processes
  6. function cli_startup() {
  7. global $a;
  8. if (empty($a)) {
  9. $a = new App(dirname(__DIR__));
  10. }
  11. @include(".htconfig.php");
  12. require_once("dba.php");
  13. dba::connect($db_host, $db_user, $db_pass, $db_data);
  14. unset($db_host, $db_user, $db_pass, $db_data);
  15. require_once('include/session.php');
  16. Config::load();
  17. $a->set_baseurl(get_config('system','url'));
  18. load_hooks();
  19. }