2003-11-07 16:16:12 -05:00
|
|
|
<?php /* Don't remove these lines, they call the b2 function files ! */
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
require_once( 'Smarty.class.php' );
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty = new Smarty;
|
2003-11-11 20:30:40 -05:00
|
|
|
$wpsmarty->template_dir = './wp-blogs/main/templates';
|
|
|
|
$wpsmarty->compile_dir = './wp-blogs/main/templates_c';
|
|
|
|
$wpsmarty->cache_dir = './wp-blogs/main/smartycache';
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->plugin_dir = './wp-plugins';
|
2004-01-10 08:11:32 -05:00
|
|
|
require_once( 'wp-includes/class-smarty.php' );
|
2003-11-07 16:16:12 -05:00
|
|
|
$blog = 1;
|
2003-12-10 19:22:36 -05:00
|
|
|
require_once('wp-blog-header.php');
|
2003-12-18 04:36:13 -05:00
|
|
|
// not on by default: require_once(ABSPATH.'wp-links/links.weblogs.com.php');
|
2003-11-07 16:16:12 -05:00
|
|
|
|
|
|
|
define( 'NODISPLAY', false );
|
|
|
|
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->assign( 'siteurl', $siteurl );
|
2003-12-18 04:36:13 -05:00
|
|
|
$wpsmarty->assign( 'b2_version', $wp_version );
|
2003-11-07 16:16:12 -05:00
|
|
|
|
|
|
|
if($posts)
|
|
|
|
{
|
|
|
|
foreach ($posts as $post)
|
|
|
|
{
|
2003-12-18 04:36:13 -05:00
|
|
|
start_wp();
|
2003-11-10 18:47:28 -05:00
|
|
|
$content .= $wpsmarty->fetch( 'post.html' );
|
2003-11-07 16:16:12 -05:00
|
|
|
ob_start();
|
2003-12-18 04:36:13 -05:00
|
|
|
include(ABSPATH . 'wp-comments.php');
|
2003-11-07 16:16:12 -05:00
|
|
|
$txt = ob_get_contents();
|
|
|
|
ob_end_clean();
|
|
|
|
$content .= $txt;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$content = 'No posts made';
|
|
|
|
}
|
|
|
|
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->assign( 'content', $content );
|
|
|
|
$wpsmarty->display( 'top.html' );
|
2003-11-07 16:16:12 -05:00
|
|
|
|
2003-11-10 18:47:28 -05:00
|
|
|
$wpsmarty->display( 'end.html' );
|
2003-11-07 16:16:12 -05:00
|
|
|
|
|
|
|
?>
|