-require_once('include/Contact.php');
-require_once('include/contact_selectors.php');
-
-function viewcontacts_init(App &$a) {
-
- if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
+/**
+ * @file mod/viewcontacts.php
+ */
+use Friendica\App;
+use Friendica\Content\ContactSelector;
+use Friendica\Content\Nav;
+use Friendica\Core\Config;
+use Friendica\Core\L10n;
+use Friendica\Database\DBM;
+use Friendica\Model\Contact;
+use Friendica\Model\Profile;
+
+function viewcontacts_init(App $a)
+{
+ if ((Config::get('system', 'block_public')) && (! local_user()) && (! remote_user())) {