/[LeafOK_CVS]/fenglin/www/log.inc.php
ViewVC logotype

Contents of /fenglin/www/log.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Sat Jul 29 03:20:51 2023 UTC (2 years, 7 months ago) by sysadm
Branch: MAIN
Changes since 1.2: +1 -1 lines
Fix bug

1 <?
2 require_once "../lib/client_addr.inc.php";
3 ?>
4 <?
5 $db_conn_log = include "./db_open.inc.php";
6 mysql_query("insert delayed into page_log (dt,ip,UID,tm,script,query) ".
7 "values(now(),'".Client_Address()."',0,0,"."'".
8 $_SERVER["SCRIPT_NAME"]."','".
9 (isset($_SERVER["QUERY_STRING"])?mysql_escape_string($_SERVER["QUERY_STRING"]):"").
10 "')",$db_conn_log)
11 or die("Add log error!");
12 mysql_close($db_conn_log);
13
14 session_cache_limiter("public");
15
16 /**
17 * Sends http headers
18 */
19 header('Content-Type: text/html; charset=gb2312');
20 ?>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1