for profile and photos, detect contacts from local hub and auto-redir

This commit is contained in:
Zach Prezkuta 2012-10-09 09:50:24 -06:00
commit b9818185db
3 changed files with 68 additions and 0 deletions

View file

@ -4,14 +4,18 @@ require_once('include/items.php');
require_once('include/acl_selectors.php');
require_once('include/bbcode.php');
require_once('include/security.php');
require_once('include/redir.php');
function photos_init(&$a) {
if($a->argc > 1)
auto_redir($a, $a->argv[1]);
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
return;
}
$o = '';
if($a->argc > 1) {