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

📄 faq.php

📁 用PHP和MSSQL开发的sspace商城系统
💻 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
	+-------------------------------------------
	*/

	$cache_file	=	$wane_root.'./globals/cache/cache_faq.php';

	if (!file_exists($cache_file))
	{
		unset($cache_file);
		require $wane_root.'globals/class_cache.php';
		$cache=new wanecache;
		$cache->cache_faq();
		echo 'Create faq cache.<BR>Please refresh the page.';
		exit;
	}
	else
	{
		require $cache_file;
		unset($cache_file);
	}
	eval($function->load_lang('view/faq'));
	if (!isset($info) || !is_numeric($info))
	{
		$function->clickback($VIEW_FAQ['UNDEFINED']);
	}
	else
	{
		$query=$db->query("SELECT * FROM {$tablepre}faq where upfid!='0' and fid='$info'");
		if (!$db->num($query))
		{
			$function->clickback($VIEW_FAQ['UNEXISTS']);
		}
		else
		{
			require $wane_root.'globals/class_code.php';
			$row=$db->row($query);
			eval($tpl->set_var(array(
				'WEBTITLE'	=>	$function->headtitle('[ '.$webtitle.' ] | '.$LANG['FAQ'].' | '.$cache_faqpos[$row[upfid]].' | '.$row['title']),
				'NAVIGATA'	=>	"<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a>&nbsp;$category_separate&nbsp;<a class='navigata' href='{$default_url}index.php?action=faq'>$LANG[FAQ]</a>&nbsp;$category_separate&nbsp;<a class='navigata' href='{$default_url}index.php?action=faq&cid=$row[upfid]'>".$cache_faqpos[$row[upfid]]."</a>",
			)));
			$tplfiles	=	array('header','faq_show','footer');	
			if ($html_onoff && $html_faq)
			{
				$newsubmit	=	$newsubmit	?	'1'	:	'0';
				$createhtml	=	array($dirhtml_faq,$row['upfid'],$row['fid'],$newsubmit);
			}			
		}	
	}
?>

⌨️ 快捷键说明

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