Update of /cvsroot/fink/web
In directory sc8-pr-cvs1:/tmp/cvs-serv29379
Modified Files:
header.inc
Log Message:
add phpwebstats code
Index: header.inc
===================================================================
RCS file: /cvsroot/fink/web/header.inc,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- header.inc 25 Jun 2002 20:05:33 -0000 1.47
+++ header.inc 3 Dec 2002 02:46:02 -0000 1.48
@@ -45,6 +45,24 @@
$date = filemtime($PATH_TRANSLATED);
}
+
+// Log the access
+session_start();
+include("pws/stats.php");
+include("pws/bro.php");
+$conn = db_connect();
+// set the page id
+// we could set this variable to "Gallery" for photogallery, etc.
+$page_id = $REQUEST_URI;
+// set the visitor id
+// I'll set this variable to session id, which is the simpliest way
+// This way I won't be able to get information if the user has been on my
+// page before - the better way is the usage of cookies.
+$visitor_id = session_id();
+// and finaly log the access to the database
+log_access($conn,$page_id,$visitor_id);
+
+
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits