X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffriendika.php;h=b12110bd5402a267da7d5ebc2eef1aca20314ced;hb=bcb672e7ff859168b639ffffc38553bbcf7e918c;hp=0347a07a814ebedae16197dcd047afe1b00d713e;hpb=6c5482f5358640f937cbd8e0bf0fdadf646b7426;p=friendica.git diff --git a/mod/friendika.php b/mod/friendika.php index 0347a07a81..b12110bd54 100644 --- a/mod/friendika.php +++ b/mod/friendika.php @@ -1,6 +1,6 @@ argv[1]=="json"){ $register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'); @@ -14,21 +14,25 @@ function friendika_content(&$a) { $admin = false; } - - $data = Array( 'version' => FRIENDIKA_VERSION, - 'url' => $a->get_baseurl(), + 'url' => z_root(), 'plugins' => $a->plugins, 'register_policy' => $register_policy[$a->config['register_policy']], 'admin' => $admin, 'site_name' => $a->config['sitename'], - + 'platform' => FRIENDIKA_PLATFORM, + 'info' => ((x($a->config,'info')) ? $a->config['info'] : '') ); echo json_encode($data); killme(); } +} + + + +function friendika_content(&$a) { $o = ''; $o .= '

Friendika

'; @@ -36,11 +40,8 @@ function friendika_content(&$a) { $o .= '

'; - $o .= 'View License' . '

'; $o .= t('This is Friendika version') . ' ' . FRIENDIKA_VERSION . ' '; - $o .= t('running at web location') . ' ' . $a->get_baseurl() . '

'; - - $o .= t('Shared content within the Friendika network is provided under the Creative Commons Attribution 3.0 license') . '

'; + $o .= t('running at web location') . ' ' . z_root() . '

'; $o .= t('Please visit Project.Friendika.com to learn more about the Friendika project.') . '

'; @@ -59,7 +60,9 @@ function friendika_content(&$a) { } else $o .= '

' . t('No installed plugins/addons/apps'); - + + call_hooks('about_hook', $o); + return $o; }