product.php

来自「phpcms2007很好的cms内容管理系统,操作方便」· PHP 代码 · 共 27 行

PHP
27
字号
<?php
require './include/common.inc.php';

$lastedittime = @filemtime('product.html');
$lastedittime = $PHP_TIME-$lastedittime;
$autoupdatetime = intval($MOD['autoupdate']);
if(file_exists('product.html') && $lastedittime<$autoupdatetime)
{	
	include 'product.html';
}
else
{
	$head['title'] = $LANG['product'].$head['title'];
	require PHPCMS_ROOT."/include/formselect.func.php";
	require_once PHPCMS_ROOT."/include/tree.class.php";
	$tree = new tree();
	$category_select = category_select('catid', $LANG['select_category'],0);
	ob_start();
	include template($mod, 'product');
	$data .= ob_get_contents();
	ob_clean();
	file_put_contents('product.html', $data);
	@chmod('product.html', 0777);	
	echo $data;
}
?>

⌨️ 快捷键说明

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