[Phplogcon-dev] phplogcon without user managment

Brian Shea bgshea at gmail.com
Wed Dec 14 04:07:13 CET 2005


Michael,

Please fix this issue in /layout/bgs_theme on line 171 change :

echo substr($_SERVER['REQUEST_URI'], $i);

to

echo preg_replace("/&" . _SESSION_NAME . "=([a-z0-9]*){25,32}/i", "",
substr($_SERVER['REQUEST_URI'], $i) );

And also near line 168:

if ($_SESSION['refresh'] > 0)
    echo '<meta HTTP-EQUIV="REFRESH" CONTENT="', $_SESSION['refresh'], ';
URL=', $_SERVER['PHP_SELF'], '?', $_SERVER['QUERY_STRING'], '">';

with

if ($_SESSION['refresh'] > 0)
                if( defined('_SESS_NOCOOKIES') && _SESS_NOCOOKIES )
                    echo '<meta HTTP-EQUIV="REFRESH" CONTENT="' .
$_SESSION['refresh'] . '; URL=' . $_SERVER['REQUEST_URI'] . '">';
                else
                    echo '<meta HTTP-EQUIV="REFRESH" CONTENT="',
$_SESSION['refresh'], '; URL=', $_SERVER['PHP_SELF'], '?',
$_SERVER['QUERY_STRING'], '">';

This will fix the double sid in the url when _SESS_NOCOOKIES is set to 1 and
if auto refresh is turn on it will pass the sid in the url as required by
php.

Or just download 1.2.6a_bgs and replace /layout/bgs_theme.php in 1.2.6_bgsfrom
1.2.6a_bgs.

Oh, and one last small change, in index.php, move the
require_once("/debug/debug.php") to include.php just after the require_once
statement for config.php

I think that will get the last of the issues. I have not run into any other
problems, have you?

On 12/13/05, Michael Meckelein <mmeckelein at hq.adiscon.com> wrote:
>
> >
> > After adapting config.php I got an "Improper session table formatting"
> > (btw: formating is misspelled in your version) error.
> >
> > I think there is a bug in DB_PEAR_sess_drv.php in line 155.
>
> Forget about it, it was a config issue in my test lab.
>
> Michael
>
>
> _______________________________________________
> Phplogcon-dev mailing list
> http://lists.adiscon.net/mailman/listinfo/phplogcon-dev
>



More information about the Phplogcon-dev mailing list