phpBB Anonymous registers as a User FIXED. phpBB Anonymous registers as a User FIXED.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

phpBB Anonymous registers as a User FIXED.

Started by krkeegan, August 02, 2005, 07:39:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

krkeegan

I am not sure if this was ever solved I have seen a number of questions but no real answer.

The Problem
Bridging Coppermine with phpBB causes coppermine to think that all guests are logged in as Anonymous and will not display the Login option.

Quick Solution
Edit udb_base.inc.php

Find
define('USER_ID', $USER_DATA['user_id']);

Add above the previous line the following code
if($USER_DATA['user_name'] == "Anonymous"){
     $this->load_guest_data();
}


This will cause coppermine to associate the username Anonymous as not logged in.
There are no stupid questions, only stupid people. -Mr. Mackey, South Park

Joachim Müller

udb_base.inc.php only exists in cpg1.4.x, not in cpg1.3.x, so your posting shouldn't have gone into "CPG 1.3 Standalone Support". Moving accordingly.

Nibbler