set_filenames(array(
'blog_header' => 'blog_header.tpl',
'sidevert' => 'sidevert.tpl',
'blog_body' => 'blog_body.tpl',
'footer' => 'footer.tpl',
'syndication' => 'syndication.tpl',
));
$template->assign_vars(array(
'CHAR_SET' => $charset,
'CONTENT_DIRECTION' => $content_direction,
'OWNER' => '', //2.1.4
'STYLE' => $style,
'TIME' => 'Time [GMT '.$sign.$timezone.'] : '.gmtdate('d M , H:i:s', time(), $timezone ),
'BLOG_NAME' => $myblogname,
'SYNDICATION' => $lang['Syndication'],
'RSS_URL' => self_url()."/rss/rss.php",
'RSS2_URL' => self_url()."/rss/rss2.php" ,
'BGCOLOR' => $blogbgcolor,
'BLOGGIE_PATH' => $mybloggie_root_path ,
'PINGBACK_SVR' => self_url()."/pingserver/pingsvr.php" ,
'VERSION' => $mb_version // //2.1.4
));
$timestamp = mktime(gmtdate('H', time(), $timezone ), gmtdate('i', time(), $timezone ), gmtdate('s', time(), $timezone ),
gmtdate('n', time(), $timezone ), gmtdate('d', time(), $timezone ), gmtdate('Y', time(), $timezone ));
if(isset($_SESSION['username']) && isset($_SESSION['passwd']))
{
$template->assign_vars(array(
'ADMIN_MENU' => '',
));
}
// Left Right side menu switch
if (!isset($mode)) { $search = true ; }
if ($right_menu){
$template->assign_block_vars('rightsidemenu', array( ));
}
else {
$template->assign_block_vars('leftsidemenu', array( ));
}
$template->pparse('blog_header');
$search = true ;
if (isset($_GET['mode'])) $mode=$_GET['mode'];
// if sidemenu is set on the right ==> $right_menu = true; in config.php
if ($right_menu){
if (isset($mode)) {
switch ($mode) {
case "viewid":
include 'view.php';
$search = false ;
break;
case "viewdate" :
include 'viewmode.php';
break;
case "viewmonth":
include 'viewmode.php';
break;
case "delcom":
include 'delcomment.php';
$search = false ;
break;
case "editcom":
include 'view.php';
$search = false ;
break;
case "viewcat":
include 'viewmode.php';
break;
case "search":
include 'search.php';
break;
case "viewuser":
include 'viewuser.php';
break;
default: include($mybloggie_root_path.'blog.php'); break;
}
}
if (!isset($mode)) {
include($mybloggie_root_path.'blog.php');
}
$template->pparse('sidevert');
}
// End right sidemenu condition
// Sidemenu menu items. You can change the menu item order here
include($mybloggie_root_path.'calendar.php');
include($mybloggie_root_path.'spacer.php');
include($mybloggie_root_path.'category.php');
include($mybloggie_root_path.'spacer.php');
include($mybloggie_root_path.'recent.php');
include($mybloggie_root_path.'spacer.php');
include($mybloggie_root_path.'archives.php');
include($mybloggie_root_path.'spacer.php');
include($mybloggie_root_path.'user.php');
include($mybloggie_root_path.'spacer.php');
if ($search) {
include($mybloggie_root_path.'searchform.php');
include($mybloggie_root_path.'spacer.php');
}
$template->pparse('syndication');
// End sidemenu menu items
// if sidemenu is set on the left ==> $right_menu = false; in config.php
if (!$right_menu){
$template->pparse('sidevert');
if (isset($mode)) {
switch ($mode) {
case "viewid":
include 'view.php';
$search = false ;
break;
case "viewdate" :
include 'viewmode.php';
break;
case "viewmonth":
include 'viewmode.php';
break;
case "delcom":
include 'delcomment.php';
$search = false ;
break;
case "editcom":
include 'view.php';
$search = false ;
break;
case "viewcat":
include 'viewmode.php';
break;
case "search":
include 'search.php';
break;
case "viewuser":
include 'viewuser.php';
break;
}
}
if (!isset($mode)) {
include($mybloggie_root_path.'blog.php');
}
}
// End left sidemenu condition
$template->pparse('footer');
?>