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

📄 index.php

📁 服务饿沃尔沃饿 威尔威尔威尔威尔沃尔沃而我额外而我而 威尔威尔威尔威尔威尔威尔而 威尔
💻 PHP
字号:
<?php
	/*
	+-------------------------------------------
	|
	|   Technology of Wane netware
	|   ========================================
	|   Powered by wan-e.net inc 
	|   (c) 2004 wane.net Power Services
	|   http://www.wan-e.net
	|   ========================================
	|   Web: http://www.wan-e.net
	|
	+-------------------------------------------
	|   Autohr	:	wsfuyibing
	+-------------------------------------------
	*/
	$file_announce	=	$wane_root.'globals/cache/cache_announce.php';	//	announcement
	$file_news		=	$wane_root.'globals/cache/cache_news.php';		//	index news
	$file_category	=	$wane_root.'globals/cache/cache_category.php';	//	index sp category
	$file_made		=	$wane_root.'globals/cache/cache_made.php';		//	index sp made
	$file_spnew		=	$wane_root.'globals/cache/cache_spnew.php';		//	index sp new
	$file_sptop		=	$wane_root.'globals/cache/cache_sptop.php';		//	index sp top
	$file_spper		=	$wane_root.'globals/cache/cache_spper.php';		//	index sp per
	if (!file_exists($file_announce) || !file_exists($file_news) || !file_exists($file_category) || !file_exists($file_made) || !file_exists($file_spnew) || !file_exists($file_sptop) || !file_exists($file_spper))
	{
		unset($file_announce,$file_news,$file_category,$file_made);
		$file_array	=	array(
			'announce','news','category','made','spnew','sptop','spper'
		);
		require $wane_root.'globals/class_cache.php';
		$cache=new wanecache;
		$cache->update_cache($file_array);
		echo 'Creating cache file.<BR>Please refresh the page.';
		exit;		
	}
	eval($tpl->set_var(array("WEBTITLE"		=>	$function->headtitle('['.$webtitle.']'))));
	eval($function->load_lang('index'));
	/*
	+-----------------------------------------------
	+	config announcement
	+-----------------------------------------------
	*/	
	require $file_announce;
	$num_announce	=	count($cache_announce);
	if (!$num_announce)
	{
		$announce_info=$LANG['NO_ANNOUNCE'];
	}
	else
	{
		$comma=$announces="";
		foreach ($cache_announce as $announce)
		{
			$announces	.=	$comma."<a href='".$tpl->linkurl($announce['nid'],$announce['htmlroot'],'news')."' class='navigata'>$announce[title] ($announce[addtime])</a>";
			$comma="&nbsp;&nbsp;&nbsp;&nbsp;";
		}
		$announce_info	=	"<marquee direction='left' scrollamount='3' onMouseOver='this.stop();' onMouseOut='this.start();' width='98%'>$announces</marquee>";
	}
	unset($file_announce,$announces,$cache_announce,$announce,$comma);
	/*
	+-----------------------------------------------
	+	config news
	+-----------------------------------------------
	*/	
	require $file_news;
	/*
	+-----------------------------------------------
	+	config category
	+-----------------------------------------------
	*/
	require $file_category;
	$num_cate = 0;
	$num_cates = count($cache_category);
	$num_cate_width = ceil(100*(1/$category_line)).'%';
	/*
	+-----------------------------------------------
	+	config made
	+-----------------------------------------------
	*/
	require $file_made;	
	$num_made = 0;
	$num_mades = count($cache_made);
	$num_made_width =  ceil(100*(1/$made_line)).'%';
	/*
	+-----------------------------------------------
	+	config spnew 
	+-----------------------------------------------
	*/
	require $file_spnew;
	$num_spnew	=	0;
	$num_spnews = count($cache_spnew);
	$num_spnew_width = ceil(100*(1/$num_index_spnew_line)).'%';
	/*
	+-----------------------------------------------
	+	config sptop
	+-----------------------------------------------
	*/
	require $file_sptop;
	$num_sptop = 0;
	$num_sptops = count($cache_sptop);
	$num_sptop_width = ceil(100*(1/$num_index_sptop_line)).'%';
	/*
	+-----------------------------------------------
	+	config spper
	+-----------------------------------------------
	*/
	require $file_spper;
	$num_spper	=	0;
	$num_sppers = count($cache_spper);
	$num_spper_width = ceil(100*(1/$num_index_spper_line)).'%';
	/*
	+-----------------------------------------------
	+	config freelink
	+-----------------------------------------------
	*/
	if (file_exists($wane_root.'globals/cache/cache_freelink.php') && $show_link)
	{
		eval($function->load_cache('freelink'));
		$wordlink = 0;
		foreach ($cache_freelink as $link)
		{
			if (!$link['img'])
			{
				$wordlink++;
			}
			$imglinks.=$link['img'] ? "<a href='$link[url]' target='_blank' title='$link[title]\r\n$link[context]'> <img src='$link[img]' border='0' width='$show_link_width' height='$show_link_height'> </a>" : "";
			$txtlinks.=!$link['img'] ? "<a href='$link[url]' target='_blank' title='$link[title]\r\n$link[context]'>[$link[title]]</a>&nbsp; " : "";
		}
		$freelinks=$imglinks.($worklink ? '</td></tr><tr class=\'contentground\'><td>'.$txtlinks : '');
	}
	/*
	+-----------------------------------------------
	+	config end
	+-----------------------------------------------
	*/
	eval($tpl->set_var(array(
		"WEBTITLE"		=>	$function->headtitle('['.$webtitle.']'),
		"NAVIGATA"		=>	$announce_info,
		"FREELINKS"		=>	$show_link ? $freelinks : "",
		"USERINFO_HIDDEN"	=>	in_array('userinfo',$userinfo_display) ? 'show' : 'none',
		"USERINFO_SHOW"		=>	!in_array('userinfo',$userinfo_display) ? 'show' : 'none',
	)));
	$tplfiles = $show_link ? array('header','index','freelink','footer') : array('header','index','footer');
?>

⌨️ 快捷键说明

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