Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2710
Modified Files:
index.php
Log Message:
autologin was not preserved for frontend
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- index.php 3 Feb 2004 19:09:13 -0000 1.29
+++ index.php 4 Feb 2004 20:13:42 -0000 1.30
@@ -3,7 +3,13 @@
// We need to set this to return a 200 since we use .htaccess ErrorDocument
// rules to handle archives.
header('HTTP/1.0 200\r\n');
+
+// Session and serendipity_login() are needed to also remember an autologin
+// user on the frontend
+session_start();
include_once('serendipity_config.inc.php');
+serendipity_login();
+
$track_referer = true;
$uri = $_SERVER['REQUEST_URI'];
|