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.
 
 
 
 
 
 

33 lines
534 B

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