📄 header.php
字号:
<?php
//**********************************************
// Easy Talk V1.1
// 作者:郑君毅(仙踪云影)
// 网址:http://www.tonsenz.com
// 日期:2007-9-26
//**********************************************
date_default_timezone_set('PRC');
//*****************************
// 缓存
//*****************************
require_once('system/Cache.inc.php');
$cachedir = './Cache/'; //设定缓存目录
$cache = new Cache($cachedir,10); //省略参数即采用缺省设置, $cache = new Cache($cachedir);
if ($_GET['cacheact'] != 'rewrite') //此处为一技巧,通过xx.php?cacheact=rewrite更新缓存,以此类推,还可以设定一些其它操作
$cache->load(); //装载缓存,缓存有效则不执行以下页面代码
//页面代码开始
//*****************************
// 缓存
//*****************************
include("config.php");
mysql_query("set names gbk");
$query = "select * from ".$DBprefix."settings";
$result=mysql_query($query);
$data = @mysql_fetch_array($result);
$web_name=$data[0];
$web_name2=$data[1];
$web_miibeian=$data[2];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="<?php echo $webaddr;?>style.css" type="text/css" media="screen" />
<title><?php echo $web_name;?> - <?php echo $web_name2;?></title>
<SCRIPT language="javascript">
<!--
function checktext(text)
{
allValid = true;
for (i = 0; i < text.length; i++)
{
if (text.charAt(i) != " ")
{
allValid = false;
break;
}
}
return allValid;
}
function gbcount(message,total,used,remain)
{
var max;
max = total.value;
if (message.value.length > max) {
message.value = message.value.substring(0,max);
used.value = max;
remain.value = 0;
alert("留言不能超过 140 个字!");
}
else {
used.value = message.value.length;
remain.value = max - used.value;
}
}
-->
</script>
<style type="text/css">
<!--
.inputtext {border:none; background:#fff;}
-->
</style>
</head>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -