fix util/config

This commit is contained in:
friendica 2013-03-02 15:44:00 -08:00
parent 0433263866
commit 59c03edbc9
3 changed files with 985 additions and 940 deletions

View file

@ -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
View 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();
}

File diff suppressed because it is too large Load diff