- $o .= '<p></p>';
-
- $visible_plugins = array();
- if(is_array($a->plugins) && count($a->plugins)) {
- $r = q("select * from addon where hidden = 0");
- if(count($r))
- foreach($r as $rr)
- $visible_plugins[] = $rr['name'];
+function friendica_content(App $a)
+{
+ $o = '<h1>Friendica</h1>' . PHP_EOL;
+ $o .= '<p>';
+ $o .= L10n::t('This is Friendica, version %s that is running at the web location %s. The database version is %s, the post update version is %s.',
+ '<strong>' . FRIENDICA_VERSION . '</strong>', System::baseUrl(), '<strong>' . DB_UPDATE_VERSION . '</strong>',
+ '<strong>' . Config::get("system", "post_update_version") . '</strong>');
+ $o .= '</p>' . PHP_EOL;
+
+ $o .= '<p>';
+ $o .= L10n::t('Please visit <a href="https://friendi.ca">Friendi.ca</a> to learn more about the Friendica project.') . PHP_EOL;
+ $o .= '</p>' . PHP_EOL;
+
+ $o .= '<p>';
+ $o .= L10n::t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">'.L10n::t('the bugtracker at github').'</a>';
+ $o .= '</p>' . PHP_EOL;
+ $o .= '<p>';
+ $o .= L10n::t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca');
+ $o .= '</p>' . PHP_EOL;
+
+ $visible_addons = [];
+ if (is_array($a->addons) && count($a->addons)) {
+ $r = q("SELECT * FROM `addon` WHERE `hidden` = 0");
+ if (DBA::isResult($r)) {
+ foreach ($r as $rr) {
+ $visible_addons[] = $rr['name'];
+ }
+ }