Hubzilla core code
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.
 
 
 
 
 
 

40 lines
794 B

  1. <?php /** @file */
  2. require_once('boot.php');
  3. // Everything we need to boot standalone 'background' processes
  4. function cli_startup() {
  5. global $default_timezone;
  6. if(is_null($a)) {
  7. $a = new miniApp;
  8. }
  9. App::init();
  10. @include(".htconfig.php");
  11. $a->convert();
  12. if(! defined('UNO'))
  13. define('UNO', 0);
  14. App::$timezone = ((x($default_timezone)) ? $default_timezone : 'UTC');
  15. date_default_timezone_set(App::$timezone);
  16. require_once('include/dba/dba_driver.php');
  17. DBA::dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type);
  18. unset($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type);
  19. App::$session = new Zotlabs\Web\Session();
  20. App::$session->init();
  21. load_config('system');
  22. App::set_baseurl(get_config('system','baseurl'));
  23. load_hooks();
  24. }