Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
706B

  1. <?php
  2. namespace Friendica\Module\Search;
  3. use Friendica\Content\Widget;
  4. use Friendica\Core\L10n;
  5. use Friendica\Module\BaseSearchModule;
  6. use Friendica\Module\Login;
  7. use Friendica\Util\Strings;
  8. /**
  9. * Directory search module
  10. */
  11. class Directory extends BaseSearchModule
  12. {
  13. public static function content()
  14. {
  15. if (!local_user()) {
  16. notice(L10n::t('Permission denied.'));
  17. return Login::form();
  18. }
  19. $search = Strings::escapeTags(trim(rawurldecode($_REQUEST['search'] ?? '')));
  20. $a = self::getApp();
  21. if (empty($a->page['aside'])) {
  22. $a->page['aside'] = '';
  23. }
  24. $a->page['aside'] .= Widget::findPeople();
  25. $a->page['aside'] .= Widget::follow();
  26. return self::performSearch($search);
  27. }
  28. }