mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
fix util/config
This commit is contained in:
parent
0433263866
commit
59c03edbc9
3 changed files with 985 additions and 940 deletions
2
boot.php
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
Normal file
31
include/cli_startup.php
Normal file
|
@ -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();
|
||||
|
||||
}
|
1892
util/messages.po
1892
util/messages.po
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue