b2evolution PHP Cross Reference Blogging Systems

Source: /index_multi.php - 47 lines - 1456 bytes - Text - Print

Description: This is an alternative index.php file. This one is optimized for a multiblog setup where each blog can be identified by its URL. This file will ignore any ?blog= parameter. b2evolution - {@link http://b2evolution.net/} Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

   1  <?php
   2  /**
   3   * This is an alternative index.php file.
   4   * This one is optimized for a multiblog setup where each blog can be identified by its URL.
   5   * This file will ignore any ?blog= parameter.
   6   *
   7   * b2evolution - {@link http://b2evolution.net/}
   8   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
   9   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
  10   *
  11   * {@internal Note: we need at least one file in the main package}}
  12   *
  13   * @package main
  14   */
  15  
  16  /**
  17   * First thing: Do the minimal initializations required for b2evo:
  18   */
  19  require_once dirname(__FILE__).'/conf/_config.php';
  20  
  21  require_once $inc_path.'_main.inc.php';
  22  
  23  if( !init_requested_blog() )
  24  { // No specific blog to be displayed:
  25      echo 'No default blog is set.';
  26      exit();
  27  }
  28  
  29  // Memorize that blog param as DEFAULT so that it doesn't get passed in regenerate_url()
  30  memorize_param( 'blog', 'integer', $blog );
  31  
  32  // A blog has been requested... Let's set a few default params:
  33  
  34  # You could *force* a specific skin here with this setting:
  35  # $skin = 'basic';
  36  
  37  # This setting retricts posts to those published, thus hiding drafts.
  38  # You should not have to change this.
  39  $show_statuses = array();
  40  
  41  # Additionnaly, you can set other values (see URL params in the manual)...
  42  # $order = 'ASC'; // This for example would display the blog in chronological order...
  43  
  44  // That's it, now let b2evolution do the rest! :)
  45  require $inc_path.'_blog_main.inc.php';
  46  
  47  ?>

title

Description

title

Description

title

Description

title

title

Body