';
// Check and Remove current page url:
$index_url = substr( $baseurl, strlen( $baseurlroot ) ) . '/index.php';
# echo 'Seeking ['.$index_url.'] in ['.$ReqPath.']...
';
if( ($pos = strpos( $ReqPath, $index_url )) !== false )
{ // note: $pos will typically be 0
# echo 'Matched index.php path...
';
$path_string = substr( $ReqPath, $pos+strlen( $index_url ) );
// echo "path=$path_string
";
$path_elements = explode( '/', $path_string, 20 ); // slice it
if( isset($path_elements[1]) && (($Blog = $BlogCache->get_by_stub( $path_elements[1], false )) !== false) )
{ // We found a matching blog:
$blog = $Blog->ID;
}
}
}
if( empty($blog) )
{ // Still no blog requested,
$blog = $Settings->get('default_blog_ID');
}
if( empty($blog) )
{ // No specific blog to be displayed:
// we are going to display the default page:
require dirname(__FILE__).'/default.php';
exit();
}
// A blog has been requested... Let's set a few default params:
# You could *force* a specific skin here with this setting:
# $skin = 'basic';
# This setting retricts posts to those published, thus hiding drafts.
# You should not have to change this.
$show_statuses = array();
# You could *force* a specific link blog here with this setting: (otherwise, default will be used)
# $linkblog = 4;
# This is the list of categories to restrict the linkblog to (cats will be displayed recursively)
# Example: $linkblog_cat = '4,6,7';
$linkblog_cat = '';
# This is the array if categories to restrict the linkblog to (non recursive)
# Example: $linkblog_catsel = array( 4, 6, 7 );
$linkblog_catsel = array( );
# Here you can set a limit before which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the past
$timestamp_min = '';
# Here you can set a limit after which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the future
$timestamp_max = 'now';
# Additionnaly, you can set other values (see URL params in the manual)...
# $order = 'ASC'; // This for example would display the blog in chronological order...
// That's it, now let b2evolution do the rest! :)
require dirname(__FILE__)."/$core_subdir/_blog_main.php";
?>