📄 visit.php
字号:
<?php
session_start();
include "include/query.php";
include "include/functions.php";
$db = new db_query;
$db->connect();
if(!isset($_SESSION["visited"]))
{
session_register("visited");
$_SESSION["visited"] = 1;
$db->query("update `config` set `value`=`value`+1 where `name` = 'visit_number'");
}
?>
<html>
<head>
<Style>
body
{
font-size:14px;
color:#5252AA;
}
</style>
</head>
<body leftmargin=0 topmargin=0 bgcolor="<?=getConfig("page_bgcolor")?>">
<center>您是本站第 <?=$db->result($db->query("select `value` from `config` where `name` ='visit_number'"),0,"value")?> 位客人</center>
</body>
</html>
<?php
$db->close()
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -