⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header_inc.php

📁 自己写的一个网络日志(BLOG)系统
💻 PHP
字号:
<?php
!function_exists('readover') && exit('Forbidden');
include_once(D_P.'data/cache/itemnav_cache.php');

if (file_exists(D_P."data/style/$skin.php") && strpos($skin,'..')===false) {
	@include Pcv(D_P."data/style/$skin.php");
} elseif (file_exists(D_P."data/style/$db_defaultstyle.php") && strpos($db_defaultstyle,'..')===false) {
	@include Pcv(D_P."data/style/$db_defaultstyle.php");
} else {
	@include D_P.'data/style/wind.php';
}
$cid = GetGP('cid','G');

$title = $tkey = '';
list($db_metatitle,$db_metakeyword,$db_metadescrip) = explode('@:wind:@',$db_metadata);

if($db_dir=='.php?'){
	$pos = strrpos($_SERVER['PHP_SELF'],'.');
}else{
	$pos = strpos($_SERVER['PHP_SELF'],$db_dir);
}

!$phpfile && $phpfile = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1,$pos-strrpos($_SERVER['PHP_SELF'],'/')-1);
if (!$type) {
	$phpfile == 'cate' && $type = 'blog';
	$phpfile == 'team' && $type = 'team';
}

$catedb = $showheader = $catedb = $showcate = array();
$typedb = array('index' => 'index.php','cblog' => 'cate.php?type=blog','cphoto' => 'cate.php?type=photo','cmusic' => 'cate.php?type=music','cgoods' => 'cate.php?type=goods','cfile' => 'cate.php?type=file','cbookmark' => 'cate.php?type=bookmark','team' => 'team.php','member' => 'member.php');
if($db_teamifopen == 0){
	unset($typedb[team]);
}
$headerdb = array_keys($typedb);
foreach ($headerdb as $value) {
	if ($value[0]=='c' && strpos("\t$db_showcate\t","\t".substr($value,1)."\t")===false) {
		continue;
	}
	!$tkey && (($phpfile == 'cate' && $value=='c'.$type) || $value==$phpfile) && $tkey = $value;
	if ($phpfile == 'team' && $value==$type && $db_teamifopen) {
		@include D_P.'data/cache/forum_cache_team.php';
		foreach ($_TEAM as $v) {
			!$cid && $cid = $v['cid'];
			$showcate['team'][] = array('cid' => $v['cid'],'name' => $v['name'],'url' => "$typedb[$value]?cid=$v[cid]");
		}
	}
	if ($phpfile == 'cate' && $value=='c'.$type) {
		$cate = substr($value,1);
		include Pcv(D_P."data/cache/forum_cache_$cate.php");
		$catedb = ${'_'.strtoupper($cate)};
		foreach ($catedb as $v) {
			if ($v['_ifshow']) {
				!$cid && $cid = $v['cid'];
				$showcate[$cate][] = array('cid' => $v['cid'],'name' => $v['name'],'url' => "$typedb[$value]&cid=$v[cid]");
			}
		}
	}
	$showheader[] = array('name' => $ilang[$value],'url' => $typedb[$value],'sign' => $value);
}
unset($headerdb);
if (!$tkey) {
	if ($lxheader) {
		$tkey = $lxheader;
		$showheader[] = array('name' => $hlang[$tkey]['name'],'url' => $hlang[$tkey]['url'],'sign' => $tkey);
	} else {
		$tkey = 'index';
	}
}
foreach ((array)$_HEADNAV as $key => $value) {
	if ($db_teamifopen == 0 && ereg($value['url'],'team.php')) {
		unset($_HEADNAV[$key]);
	}
}
$showcate[$type] && $showcate[$type] = array_slice($showcate[$type],0,11);
$articleurl = $db_articleurl ? 'article.php?' : 'blog.php?do=showone&';
require PrintEot('header');
unset($_HEADNAV);
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -