require_once('include/nav.php');
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
-define ( 'FRIENDIKA_VERSION', '2.3.1139' );
+define ( 'FRIENDIKA_VERSION', '2.3.1140' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1097 );
public $contacts;
public $page_contact;
public $content;
- public $data;
+ public $data = array();
public $error = false;
public $cmd;
public $argv;
public $timezone;
public $interactive = true;
public $plugins;
- public $apps = Array();
+ public $apps = array();
public $identities;
private $scheme;
$result = file_put_contents('.htconfig.php', $txt);
if(! $result) {
- $a->data = $txt;
+ $a->data['txt'] = $txt;
}
$errors = load_database($db);
if(strlen($o))
return $o;
- if(strlen($a->data)) {
+ if(strlen($a->data['txt'])) {
$o .= manual_config($a);
return;
}
if(! function_exists('mb_strlen'))
notice( t('Error: mb_string PHP module required but not installed.') . EOL);
- if((x($_SESSION,'sysmsg')) && strlen($_SESSION['sysmsg']))
+ if((x($_SESSION,'sysmsg')) && is_array($_SESSION['sysmsg']) && count($_SESSION['sysmsg']))
notice( t('Please see the file "INSTALL.txt".') . EOL);
}
function manual_config(&$a) {
- $data = htmlentities($a->data);
+ $data = htmlentities($a->data['txt']);
$o = t('The database configuration file ".htconfig.php" could not be written. Please use the enclosed text to create a configuration file in your web server root.');
$o .= "<textarea rows=\"24\" cols=\"80\" >$data</textarea>";
return $o;