( ( $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; } } } ?> Simple Screencasts with Screenr.com | Aaron Bailey

Simple Screencasts with Screenr.com

I created this screencast in less than a few minutes using nothing but my browser. Sure, the production could be improved (microphone, better script, smaller window to show only what matters, etc.) but for capturing quick screencasts, Screenr.com looks like a winner.

Leave a comment

Close