Gallery and phpBB sessions.php

norv

Joined: 2004-03-12
Posts: 13
Posted: Tue, 2005-08-16 01:17

I am installing Gallery 1.5 as a module of phpBB in a running installation of phpBB/modules.
Instructions in gallery/contrib/phpBB2/phpBB2-manual_changes.txt are as follows:

Quote:
* File: phpBB2/includes/sessions.php
*******************************************************

Find:
{
$sessiondata = array();
$session_id = ( isset($_GET['sid']) ) ? $_GET['sid'] : '';
After add:
// Added for Gallery
if(!isset($_GET['sid'])) {
$session_id = ( isset($_POST['sid']) ) ? $_POST['sid'] : '';
}
//

But in latest sessions.php (v 2.0.17) the lines read

	{
		$sessiondata = array();
		$session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
		$sessionmethod = SESSION_METHOD_GET;
	}

I have tried using

	{

		$sessiondata = array();

		$session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
				// Added for Gallery
		if(!isset($HTTP_GET_VARS['sid'])) {
			$session_id = ( isset($HTTP_POST_VARS['sid']) ) ? $HTTP_POST_VARS['sid'] : '';
		}
		//

		$sessionmethod = SESSION_METHOD_GET;

	}

But when I try to access the gallery I get

Quote:
Forbidden
You don't have permission to access /phpBB/modules/gallery on this server.

How should I edit sessions.php?

 
norv

Joined: 2004-03-12
Posts: 13
Posted: Tue, 2005-08-16 02:24

Apologies for answering myself so quickly..
I sorted it out, I was using the wrong URL to access the gallery.

Those new edits I did in sessions.php seem to work, the phpBB permissions are inherited by Gallery when I access it thru phpBB.

FWIW I am using a running Gallery, not the new one I installed in phpBB/modules/