( ( $blogs[0] == 'site' ) || ( $blogs[0] == 'children' ) || ( $blogs[0] == 'siblings' ) ) { $mt = MT::get_instance(); $ctx = $mt->context(); $blog = $ctx->stash('blog'); if (!empty($blog) && $blog->class == 'blog') { require_once('class.mt_blog.php'); $blog_class = new Blog(); $blogs = $blog_class->Find("blog_parent_id = " . $blog->parent_id); $allow = array(); foreach($blogs as $b) { if ($b->id == $this_blog || (isset($access_overrides[$b->id]) && ($access_overrides[$b->id] == MULTIBLOG_ACCESS_ALLOWED))) array_push($allow, $b->id); } } return count($allow) ? array('include_blogs', $allow) : null; } # include_blogs="1,2,3,4" elseif ($is_include && count($blogs)) { # Filter @blogs returning only those with allow override $allow = array(); foreach ($blogs as $b) if ($b == $this_blog || (isset($access_overrides[$b]) && ($access_overrides[$b] == MULTIBLOG_ACCESS_ALLOWED))) $allow[] = $b; return count($allow) ? array('include_blogs', $allow) : null; } # exclude_blogs="1,2,3,4" else { # Get allow override blogs and then omit # the specified excluded blogs. $allow = array(); foreach (array_keys($access_overrides) as $o) if (($o == $this_blog) || (isset($access_overrides[$o]) && ($access_overrides[$o] == MULTIBLOG_ACCESS_ALLOWED))) $allow[] = $o; if (!isset($access_overrides[$this_blog])) $allow[] = $this_blog; $seen = array(); foreach ($blogs as $b) $seen[$b] = 1; $blogs = array(); foreach ($allow as $a) if (!isset($seen[$a])) $blogs[] = $a; return count($blogs) ? array('include_blogs', $blogs) : null; } } } ?> RIP TheBrad | Aaron Bailey

RIP TheBrad

Brad Graham

Like so many many others, I was shocked by the death of Brad Graham. I was fortunate to imbibe with him three times (three different bars in three different cities) since we first met online in 2001. Each time, Brad made me feel like the center of the universe. He had a way of doing that -- with thousands and thousands of people.

You'll be missed, Brad.

Leave a comment

Close