合作网站:废铝回收 搬家黄道吉日 癫痫治疗 上海家庭保洁 抑郁症吧 深圳小姐 上海搬迁公司 乙肝病毒携带者 天津卫星电视维修 衣裤透视眼镜 白癜风传染吗 脑萎缩 甲亢 白癜风治疗 甲减 糖尿病并发症 深圳小姐按摩 白癜风的治疗方法 牛皮癣的治疗方法 癫痫病治疗 上海外墙清洗 上海搬家价格 牛皮癣偏方 搬场公司上海 阳澄湖大闸蟹团购 上海清洗公司 吊装公司 低温试验箱 六合彩开奖 六合采 浦东搬场公司 尖锐湿疣图片 郑州癫痫 癫痫病能治愈吗 北京癫痫 南京上门按摩 保洁公司 杭州按摩 透视扑克 游戏机上分器
PHP /* ----------------------------------------------------- Bo-Blog 2 : The Blog Reloaded. <> 绂佹浣跨敤Windows璁颁簨鏈慨鏀规枃浠讹紝鐢辨閫犳垚鐨勪竴鍒囦娇鐢ㄤ笉姝e父鎭曚笉瑙g瓟锛? PHP+MySQL blog system. Code: Bob Shen Offical site: http://www.bo-blog.com Copyright (c) Bob Shen In memory of my university life ------------------------------------------------------- */ define('isIndex', 1); $begintime=getmicrotime(); $blogplugin=$section_header=$section_footer=$section_sidebar=$section_prebody=$dlstat=$blogitem=$flset=array(); require_once ("global.php"); include_once ("data/allmods.php"); include_once ("data/weather.php"); include_once ("data/cache_emot.php"); include_once ("data/cache_emsel.php"); include_once("data/cache_adminlist.php"); $isSafeMode=($_REQUEST['safemode']==1 || $_COOKIE['safemode']==1) ? true : false; if (!$isSafeMode) { include_once ("data/modules.php"); include_once("data/plugin_enabled.php"); } acceptrequest('act,go,page,part'); if (!$page) $page=1; elseif (!is_numeric($page) || $page<=0) { getHttp404($lnc[313]); } else $page=floor($page); if (!$part) $part=1; elseif (!is_numeric($part) || $part<=0) { getHttp404($lnc[313]); } else $page=floor($page); $pageitems=''; if ($config['blogopen']!=1 && !defined('isLogin')) { if ($permission['CP']==1) $config['message_off'].="
"; catcherror($config['message_off']); } if ($go) @list($job, $itemid)=@explode('_', basename($go)); if (!$act) $act='main'; else $act=basename($act); $itemid=safe_convert($itemid); //Load Template info for ($i=0; $i\n"; } $mbcon['images']=$template['images']; if ($permission['CP']=='1') define("ADMIN_LOGIN", 1); //Scheduled publishing scheduledpublish(); //Start Template Analyzing $t=new template; //Start Loading Modules if (file_exists("inc/mod_{$act}.php")) include ("inc/mod_{$act}.php"); else { $valid_plugins=@explode(',', $blogplugin['page']); if (@in_array($act, $valid_plugins) && is_file("plugin/{$act}/page.php")) { //Load whole page plugin include ("plugin/{$act}/page.php"); if ($plugin_closesidebar==1) $elements['mainpage']=str_replace("class=\"content\"", "class=\"content-wide\"", $elements['mainpage']); $bodymenu=$t->set('mainpage', array('pagebar'=>'', 'iftoppage'=>'none', 'ifbottompage'=>'none', 'ifannouncement'=>'none', 'topannounce'=>'', 'mainpart'=>$plugin_return, 'previouspageexists'=>'', 'nextpageexists'=>'')); } else include ("inc/mod_main.php"); } //Section: .. $ajax_js="\n"; $ajax_js.="\n"; $ajax_js.="\n"; $ajax_js.="\n"; $shutajax=($config['closeajax']=='1') ? 1 : 0; $ajax_js.="\n"; $ajax_js.="\n"; $ajax_js=plugin_walk ('firstheader', $ajax_js); include_once ("inc/mod_basic.php"); include_once ("data/mods.php"); $extraheader=$mbcon['extraheader']."\n".@implode("\n", $section_prebody); $headerhtml=$t->set('header', array('blogname'=>$config['blogname'], 'blogdesc'=>$config['blogdesc'], 'csslocation'=>$csslocation, 'pagetitle'=>$pagetitle, 'ajax_js'=>$ajax_js, "extraheader"=>$extraheader, "blogkeywords"=>''.$config['blogkeywords'], 'baseurl'=>$baseurl, 'language'=>$langname['languagename'], 'codeversion'=>$codeversion)); //Admin notification //$headerhtml.=$headerhtml_notifyadmin; //Section: Top $section_head_components="
  • ".@implode("
  • \r\n
  • ", $section_header)."
  • "; $headmenu=$t->set('displayheader', array('blogname'=>$config['blogname'], 'blogdesc'=>$config['blogdesc'], 'section_head_components'=>$section_head_components)); //Where am I now? if (defined('whereAmI')) $currentpagelocation=whereAmI; else { $nav=$_SERVER["REQUEST_URI"]; $currentpagelocation=strrchr($nav, '/'); @list($currentpagelocation, $unused)=@explode('.', substr($currentpagelocation, 1)); if ($currentpagelocation=='') $currentpagelocation='index'; } $headmenu_tmp=str_replace(array("", ""), array("", ""), $headmenu); $headmenu=($headmenu_tmp==$headmenu) ? str_replace(array("", ""), array("", ""), $headmenu) : $headmenu_tmp; //Assign an ID for current page $currentpage_cssid='pagelocation-'.$currentpagelocation; $headerhtml=str_replace('{pageID}', $currentpage_cssid, $headerhtml); //Section: Side if ($plugin_closesidebar!=1) { if (is_array($section_sidebar)) { $siderbarcounter=0; $sidebarcolumn=1; foreach ($section_sidebar as $blocker) { if ($blocker['name']=='columnbreak') { $sidebarcolumn=2; continue; } $blockname="sideblock_{$blocker['name']}"; if (isset($elements[$blockname])) $sideblock=$blockname; else $sideblock="sideblock"; $ifextend=$blocker['extend'] ? 'block' : 'none'; $decodedcontent=evalmycode($blocker['content']); $section_side_column[$sidebarcolumn][]=$t->set($sideblock, array('title'=>$blocker['title'], 'content'=>$decodedcontent, 'id'=>$blocker['name'], 'ifextend'=>$ifextend)); $tptvalue["block_{$blocker['name']}"]=$decodedcontent; $siderbarcounter+=1; unset($decodedcontent); } $section_side_components_one=@implode('', $section_side_column[1]); $section_side_components_two=@implode('', $section_side_column[2]); $section_side_components=$section_side_components_one.$section_side_components_two; } $sidemenu=$t->set('displayside', array('section_side_components_one'=>$section_side_components_one, 'section_side_components_two'=>$section_side_components_two, 'section_side_components'=>$section_side_components, 'siderbarcounter'=>$siderbarcounter)); } else $sidemenu=''; //Section: Bottom $section_foot_components=@implode('', $section_footer); $footmenu=$t->set('displayfooter', array('section_foot_components'=>$section_foot_components)); //Section: .. $footerhtml=$t->set('footer', array()); $displayall=array('headerhtml'=>$headerhtml, 'headmenu'=>$headmenu, 'footmenu'=>$footmenu, 'bodymenu'=>$bodymenu, 'sidemenu'=>$sidemenu, 'footerhtml'=>$footerhtml); $tt=$t->set('displayall', $displayall); //Supplementary elements $tptvalue['categoryplainshow']=$categoryplainshow; //Download time displayer if (count($dlstat)!=0) { $dlchecker=@implode(',', $dlstat); $dlstatarray=$blog->getarraybyquery("SELECT * FROM `{$db_prefix}upload` WHERE `fid` in ($dlchecker)"); foreach ($dlstat as $dlfid) { $tmp_fid=floor(array_search($dlfid, $dlstatarray['fid'])); $tptvalue["dlstat_{$dlfid}"]=$dlstatarray['dltime'][$tmp_fid]; $tptvalue["dlfname_{$dlfid}"]=urldecode($dlstatarray['originalname'][$tmp_fid]); } } $tt=$t->publish($tt); //2006-10-20 Add global setting support //die($tt); @header("Content-Type: text/html; charset=utf-8"); if ($config['gzip']==1 && $act!='tag') ob_start("ob_gzhandler"); //Running time if ($mbcon['runtime']==1) { $endtime=getmicrotime(); $runtimeamount=$endtime-$begintime; $runtimeamount=floor($runtimeamount*1000); $gzipplus=($config['gzip']==1) ? ', Gzip enabled' : ''; $runtimedisplay=""; $tt=str_replace('', $runtimedisplay.'', $tt); } echo $tt; if ($config['gzip']==1 && $act!='tag') ob_end_flush(); function getmicrotime() { //Time Counting list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); }