[geeklog-cvs] geeklog-2/public_html glcore.php,1.2,1.3
tony at geeklog.net
tony at geeklog.net
Sat Jan 11 00:24:19 EST 2003
Update of /usr/cvs/geeklog/geeklog-2/public_html
In directory internal.geeklog.net:/tmp/cvs-serv31710
Modified Files:
glcore.php
Log Message:
Minor edits, added some necessary comments.
Index: glcore.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-2/public_html/glcore.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** glcore.php 21 Oct 2002 04:13:47 -0000 1.2
--- glcore.php 11 Jan 2003 05:24:16 -0000 1.3
***************
*** 19,23 ****
* used by literally all of our pages
*
! * @author Tony Bibbs <tony at tonybibbs.com>
* @package net.geeklog.common
*/
--- 19,23 ----
* used by literally all of our pages
*
! * @author Tony Bibbs <tony AT tonybibbs DOT com>
* @package net.geeklog.common
*/
***************
*** 26,33 ****
* This is the Geeklog configuration file
*/
! include_once('/var/www/geeklog-2/config.php');
! // Set name of session (i.e. cookie)
! session_name($_CONF['session_name']);
/**
--- 26,40 ----
* This is the Geeklog configuration file
*/
! include_once('/path/to/geeklog2/config.php');
! // VERY IMPORTANT: to support people who want to use PEAR but ISP or host will
! // not install the correct version, this bit a code below will temporarily add
! // the path to PEAR to the PHP include_path. This way you can download a copy
! // of Geeklog_PEAR distribution and have PEAR work despite any restrictions your
! // ISP or host may have.
! if ($_CONF['have_pear']) {
! $curPHPIncludePath = ini_get('include_path');
! ini_set('include_path', $curPHPIncludePath . ':' . $_CONF['path_pear']);
! }
/**
***************
*** 46,49 ****
--- 53,64 ----
require_once($_CONF['path_lib'] . 'sessions/lib-sessions.php');
+ // Set name of session (i.e. cookie)
+ session_name($_CONF['session_name']);
+
+ // NOTE: just because we have included the session code and set the name
+ // of the session cookie you can't call session_start(). This is mainly
+ // because we plan on serializing PHP objects to the session and you *must*
+ // include all class definitions before calling session_start().
+
/**
* This is a pass-thru error handler. PHP's set_error_handler can't handle a
***************
*** 54,57 ****
--- 69,73 ----
* Geeklog::errorLog(), Geeklog::debugLog(), Geeklog::accessLog().
*
+ * @author Tony Bibbs <tony AT geeklog DOT net>
* @param int $errNo Error Number
* @param string $errStr Error Message
More information about the geeklog-cvs
mailing list