<?php
+use Friendica\App;
+use Friendica\Core\System;
+
function uexport_init(App $a) {
if (!local_user()) {
killme();
settings_init($a);
}
-/// @TODO Change space -> tab where wanted
function uexport_content(App $a) {
if ($a->argc > 1) {
$tpl = get_markup_template("uexport.tpl");
return replace_macros($tpl, array(
- '$baseurl' => App::get_baseurl(),
+ '$baseurl' => System::baseUrl(),
'$title' => t('Export personal data'),
'$options' => $options
));
$output = array(
'version' => FRIENDICA_VERSION,
'schema' => DB_UPDATE_VERSION,
- 'baseurl' => App::get_baseurl(),
+ 'baseurl' => System::baseUrl(),
'user' => $user,
'contact' => $contact,
'profile' => $profile,
intval($x),
intval(500)
);
- /* if (dbm::is_result($r)) {
- foreach($r as $rr)
- foreach($rr as $k => $v)
- $item[][$k] = $v;
- } */
$output = array('item' => $r);
echo json_encode($output) . "\n";