checkPermission('SITE', 'DEACTIVATED') || $profile->data['password_algo'] == 'nologin' || ($profile->checkPermission('SITE', 'RESTRICTED') && ($profile->data['id'] != $currentUser->data['id'] && !$currentUser->checkPermission('MANAGE', 'USE_MANAGE'))) ? 'User not found!' : 'Profile of '. $profile->data['username'] ); // Print page contents print Templates::render('main/profile.tpl', $renderData);