Browse Source

fix util/config

pull/638/merge
friendica 9 years ago
parent
commit
59c03edbc9
  1. 2
      boot.php
  2. 31
      include/cli_startup.php
  3. 1552
      util/messages.po

2
boot.php

@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.1.1623' );
define ( 'FRIENDICA_VERSION', '3.1.1627' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1163 );
define ( 'EOL', "<br />\r\n" );

31
include/cli_startup.php

@ -0,0 +1,31 @@
<?php /** @file */
require_once('boot.php');
// Everything we need to boot standalone 'background' processes
function cli_startup() {
global $a, $db;
if(is_null($a)) {
$a = new App;
}
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};
require_once('include/session.php');
load_config('config');
load_config('system');
$a->set_baseurl(get_config('system','url'));
load_hooks();
}

1552
util/messages.po
File diff suppressed because it is too large
View File

Loading…
Cancel
Save