is_cached("index.html",$smartyKey)==false) // index.html does not exist in smarty (smarty_c?) { // not on by default: require_once(ABSPATH.'bm-links/links.weblogs.com.php'); define('NODISPLAY',false); // set up a constant var if(isset($clear)) // var $clear ?? { header("location:".get_settings('siteurl')); $wpsmarty->clear_all_cache(); } $siteurl=get_settings('siteurl'); // extract dir name from url print $siteurl; $wpsmarty->assign('siteurl',$siteurl); $wpsmarty->assign('bm_version',$bm_version); $wpsmarty->assign('mailblog',$mailblog); if ($user_level>=10) { $islogged=1; } else { $islogged=0; } $wpsmarty->assign('islogged',$islogged); /* cache single post data */ // Required for caching single posts - useful to put it here anyway ?? requires explanation - mdl // as this code would be run multiple times including each bm-comments.php ?? if ($posts) { $count=0; $wpsmarty->assign_by_ref("count",$count); foreach($posts as $post) { start_wp(); $wpsmarty->caching=false; $content.=$wpsmarty->fetch('post.html'); $wpsmarty->caching=true; include(ABSPATH.'bm-comments.php'); $content.=$commentstext; $count++; } } else { $content='No posts made'; } $wpsmarty->assign('content',$content); } // end if $contents=$wpsmarty->fetch('index.html',$smartyKey); print $contents; // output index.html ?>