// Blog Script - File Name : index.php // Copyright (C) myBloggie Sean // http://www.mywebland.com , http://mybloggie.mywebland.com // You are requested to retain this copyright notice in order to use // this software. //This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License //as published by the Free Software Foundation; either version 2 //of the License, or (at your option) any later version. //This program is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //GNU General Public License for more details. //You should have received a copy of the GNU General Public License //along with this program; if not, write to the Free Software //Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //error_reporting('E_ALL'); define('IN_MYBLOGGIE', true); session_start(); header("Cache-control: private"); //error_reporting (E_ERROR | E_WARNING | E_PARSE); set_magic_quotes_runtime(0); // changes for 2.1.3 $mybloggie_root_path = './'; include_once($mybloggie_root_path.'config.php'); include_once($mybloggie_root_path.'includes/db.php'); include_once($mybloggie_root_path.'includes/template.php'); include_once($mybloggie_root_path.'includes/function.php'); include_once($mybloggie_root_path.'language/'.$language); include_once($mybloggie_root_path.'common.php'); //214 $template = new Template('./templates/'.$style.'/') ; $template->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' => 'myBloggie '.$mb_version.' © 2005', //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' => '