Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1635
Modified Files:
index.php serendipity_config.inc.php
Log Message:
Save HTTP referrer for a user when entering a comment.
Discussed in http://thread.gmane.org/gmane.comp.serendipity.devel/3215
(I think user-agent logging is not neccessary, can be drawn out of usual access logs...)
Index: serendipity_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_config.inc.php,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- serendipity_config.inc.php 2 Dec 2004 20:57:44 -0000 1.107
+++ serendipity_config.inc.php 3 Dec 2004 10:07:37 -0000 1.108
@@ -15,7 +15,7 @@
include_once(S9Y_INCLUDE_PATH . 'include/compat.inc.php');
-$serendipity['version'] = '0.8-alpha4';
+$serendipity['version'] = '0.8-alpha5';
$serendipity['defaultTemplate'] = 'default'; // Name of folder for the default theme
$serendipity['production'] = true; // Setting this to 'false' will enable debugging output
$serendipity['rewrite'] = 'none';
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- index.php 28 Nov 2004 21:07:08 -0000 1.61
+++ index.php 3 Dec 2004 10:07:37 -0000 1.62
@@ -28,6 +28,10 @@
$track_referer = true;
$uri = $_SERVER['REQUEST_URI'];
+if (isset($_SERVER['HTTP_REFERER']) && empty($_SESSION['HTTP_REFERER'])) {
+ $_SESSION['HTTP_REFERER'] = $_SERVER['HTTP_REFERER'];
+}
+
if (preg_match(PAT_UNSUBSCRIBE, $uri, $res)) {
if (serendipity_cancelSubscription(urldecode($res[1]), $res[2])) {
define('DATA_UNSUBSCRIBED', urldecode($res[1]));
|