Source for file b2browse.php
Documentation is available at b2browse.php
* Browsing posts for editing
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
require_once (dirname(__FILE__
).
'/_header.php');
$admin_pagetitle =
T_('Browse blog:');
param( 'blog', 'integer', 0 );
if( ($blog ==
0) &&
$current_User->check_perm( 'blog_ismember', 1, false, $default_to_blog ) )
{ // Default blog is a valid choice
$blog =
$default_to_blog;
require
(dirname(__FILE__
).
'/_menutop.php');
// ---------------------------------- START OF BLOG LIST ----------------------------------
if( ! $current_User->check_perm( 'blog_ismember', 1, false, $curr_blog_ID ) )
{ // Current user is not a member of this blog...
{ // If no selected blog yet, select this one:
if( $curr_blog_ID ==
$blog )
{ // This is the blog being displayed on this page ?>
<a href="
<?php echo
$pagenow ?>?blog=
<?php echo
$curr_blog_ID ?>" class="CurrentBlog">
<?php blog_list_iteminfo('shortname') ?></a>
{ // This is another blog ?>
<a href="
<?php echo
$pagenow ?>?blog=
<?php echo
$curr_blog_ID ?>" class="OtherBlog">
<?php blog_list_iteminfo('shortname') ?></a>
} // --------------------------------- END OF BLOG LIST ---------------------------------
require
(dirname(__FILE__
).
'/_menutop_end.php');
{ // No blog could be selected
<?php printf( T_('Since you\'re a newcomer, you\'ll have to wait for an admin to authorize you to post. You can also <a %s>e-mail the admin</a> to ask for a promotion. When you\'re promoted, just reload this page and you\'ll be able to blog. :)'), 'href="mailto:'.
$admin_email.
'?subject=b2-promotion"' ); ?>
{ // We could select a blog:
$current_User->check_perm( 'blog_ismember', 1, true, $blog );
require
dirname(__FILE__
).
'/_edit_showposts.php';
require
( dirname(__FILE__
).
'/_footer.php' );