Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5624
Modified Files:
comment.php index.php serendipity.css.php
serendipity_admin.php serendipity_admin_image_selector.php
serendipity_config.inc.php serendipity_xmlrpc.php
wfwcomment.php
Log Message:
session_start() now put to a central place
Index: serendipity.css.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity.css.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- serendipity.css.php 26 Jan 2005 14:15:26 -0000 1.37
+++ serendipity.css.php 26 Jan 2005 16:03:27 -0000 1.38
@@ -2,8 +2,6 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-session_start();
-
/* This is a small hack to allow CSS display during installations and upgrades */
define('IN_installer', true);
define('IN_upgrader', true);
Index: serendipity_xmlrpc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_xmlrpc.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- serendipity_xmlrpc.php 26 Jan 2005 14:15:26 -0000 1.22
+++ serendipity_xmlrpc.php 26 Jan 2005 16:03:28 -0000 1.23
@@ -10,7 +10,6 @@
ob_start();
}
-session_start();
require_once 'serendipity_config.inc.php';
require_once 'bundled-libs/XML/RPC/Server.php';
Index: wfwcomment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/wfwcomment.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- wfwcomment.php 26 Jan 2005 14:15:26 -0000 1.5
+++ wfwcomment.php 26 Jan 2005 16:03:28 -0000 1.6
@@ -2,7 +2,6 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-session_start();
include_once('serendipity_config.inc.php');
if ($_REQUEST['cid'] != '' && $HTTP_RAW_POST_DATA != '') {
Index: serendipity_admin_image_selector.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_image_selector.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- serendipity_admin_image_selector.php 26 Jan 2005 14:15:26 -0000 1.38
+++ serendipity_admin_image_selector.php 26 Jan 2005 16:03:27 -0000 1.39
@@ -2,7 +2,6 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-session_start();
include('serendipity_config.inc.php');
if (IN_serendipity !== true) {
Index: serendipity_admin.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin.php,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- serendipity_admin.php 26 Jan 2005 14:15:26 -0000 1.65
+++ serendipity_admin.php 26 Jan 2005 16:03:27 -0000 1.66
@@ -2,8 +2,6 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-session_start();
-
define('IN_installer', true);
define('IN_upgrader', true);
define('IN_serendipity', true);
Index: serendipity_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_config.inc.php,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- serendipity_config.inc.php 26 Jan 2005 14:15:26 -0000 1.137
+++ serendipity_config.inc.php 26 Jan 2005 16:03:28 -0000 1.138
@@ -2,6 +2,8 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
+session_start();
+
if (!defined('S9Y_INCLUDE_PATH')) {
define('S9Y_INCLUDE_PATH', dirname(__FILE__) . '/');
}
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- comment.php 26 Jan 2005 14:15:26 -0000 1.57
+++ comment.php 26 Jan 2005 16:03:26 -0000 1.58
@@ -2,7 +2,6 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-session_start();
include_once('serendipity_config.inc.php');
header('Content-Type: text/html; charset=' . LANG_CHARSET);
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- index.php 26 Jan 2005 14:15:26 -0000 1.73
+++ index.php 26 Jan 2005 16:03:27 -0000 1.74
@@ -22,7 +22,6 @@
// Session and serendipity_login() are needed to also remember an autologin
// user on the frontend
ob_start();
-session_start();
include_once('serendipity_config.inc.php');
serendipity_login();
header('Content-Type: text/html; charset='. LANG_CHARSET);
|