ability to hide profile and wall from unknown people

This commit is contained in:
Friendika 2011-05-24 16:30:52 -07:00
commit e3d1ef8ef7
10 changed files with 63 additions and 7 deletions

View file

@ -51,11 +51,14 @@ function profile_init(&$a) {
function profile_content(&$a, $update = 0) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
if(get_config('system','block_public') && (! local_user()) && (! remote_user())) {
return login();
}
if($a->profile['hidewall'] && (! local_user()) && (! remote_user())) {
notice( t('Access to this profile has been restricted.') . EOL);
return;
}
require_once("include/bbcode.php");
require_once('include/security.php');