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

📄 shop.php

📁 这个版本只是修正了一些BUG
💻 PHP
字号:
<?
/**********************************************
	shop.php - base function for VITCIE
	 		  前台支持函数库

	Version  : 1.0.0
	Author   : Tracemouse (tracemouse@msn.com)
	Copyright:
	Writed   : 2003/08/07
	Modified : 2003/03/18
*********************************************/

//取摸板函数,返回生成的摸板页面文件名(含路径)
function template($file, $styleid=1, $tpldir = '') 
{
	global $shop_root, $tplrefresh,$TPLDIR,$STYLEID;
    	
    	//changed by tracemouse in 2004.3.18.
    	/*
    	if($file=="PARAMETER")
    	{
    		$file=$PARA_TPLFILE;
    	}
    	*/
    	
    	$tpldir = $tpldir ? $tpldir : $TPLDIR;
	$styleid = $STYLEID ? $STYLEID :$styleid;
	
	$tplfile = $tpldir.'/'.$file.'.htm';
	$objfile = './tempdata/templates/'.$file.'_'.$styleid.'.tpl.php';

	if($STYLEID != 1 && $styleid != 1 && !file_exists($tplfile)) 
	{
		return template($file, 1, './templates/default/');
	}
    	elseif (!file_exists($objfile))
    	{
        	require_once $shop_root.'./include/template.php';
		//parse_template($file, $templateid, $tpldir);
        	parse_template($tplfile,$objfile);
        	return $objfile;
	}

   	// $tplrefresh = 1;
  	// if($tplrefresh == 1 ) {
	if(@filemtime($tplfile) > @filemtime($objfile)) 
	{
		require_once $shop_root.'./include/template.php';
		//parse_template($file, $templateid, $tpldir);
            	parse_template($tplfile,$objfile);
	}
  //	}
	return $objfile;
}

function showmessage($show_message, $url_forward = '') 
{
	extract($GLOBALS, EXTR_SKIP);
    	include language('messages');
	if(isset($language[$show_message])) 
	{
		eval("\$show_message = \"".$language[$show_message]."\";");
	}
	$url_redirect = $url_forward ? '<meta http-equiv="refresh" content="2;url='.$url_forward.'">' : NULL;
    	if ($url_forward == '') unset($url_forward);
	include template('showmessage');
    	exit;
}



?>

⌨️ 快捷键说明

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