phbbb coppermine integration-Critical error constant phbbb coppermine integration-Critical error constant
 

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

phbbb coppermine integration-Critical error constant

Started by LMalnati, December 05, 2004, 11:22:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

LMalnati

I am trying to integrate phpBB, Coppermine, and all my protected pages.  Essentially when someone logins to Coppermine or a protected page I am trying to use the login sysyem of phpbb to check if someone is signed in.  If they are not I will prompt them with phbblogin info.

My problem is the photo gallery and phpbb are both defining a constant for the crtical function. How do I resolve this ? Also why is a constant declared for this function ? Does it refer to the constant or the name function ?

Error upon opening protected page;
Notice: Constant CRITICAL_ERROR already defined in /home/peter/www/gallery/include/init.inc.php on line 199

board/index.php
<?php
define
("IN_LOGIN"true);
define('IN_PHPBB'true);
$phpbb_root_path '/home/peter/www/board/';
include(
$phpbb_root_path 'extension.inc');
include(
$phpbb_root_path 'common.'.$phpEx);
$userdata session_pagestart($user_ipPAGE_LOGIN);
init_userprefs($userdata); 
include 
'accesscontrol.inc';
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.2                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //


phpbb
define('CRITICAL_ERROR', 204);

Coppermine; include/init.inc.php
define('CRITICAL_ERROR', 3);

I accidentally put this in general forum.  It should go to bridging/integration.  How do I move this topic to the other forum ?

Joachim Müller

undo your modification to index.php - the way you did this will not work. Simply enable integation and do all the checking for authentification on the "regular" permission settings (group manager and properties). Apply the mod posted in our faq session to disallow anonymous access and you should be fine.

Joachim

P.S. Your posting is clearly a support request, that's why it was not meant to go into "general discussion" in the first place. Moving this thread to the relevant board.

LMalnati

Quote from: GauGau on December 05, 2004, 11:51:58 PM
undo your modification to index.php - the way you did this will not work. Simply enable integation and do all the checking for authentification on the "regular" permission settings (group manager and properties). Apply the mod posted in our faq session to disallow anonymous access and you should be fine.

Joachim

P.S. Your posting is clearly a support request, that's why it was not meant to go into "general discussion" in the first place. Moving this thread to the relevant board.

Can you provide the link for the mod.  I looked in seacrh/anonymous and selected mod/hacks and could not fid the relevant mod. 

Joachim Müller


LMalnati

#4
Quote from: GauGau on December 06, 2004, 12:26:02 AM
yeah, I can tell you really searched very hard.... ::)
http://coppermine.sourceforge.net/faq.php#registeredUsersOnly
http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly

Joachim

Thanks I'll give this a try.  Please note I originally also went to FAQ and did a search on anonymous access and did not find anything.  However, now that I went to the link you referenced I realize if I had manually gone thru the pages I could have found this.  Thus, please accept my apology. 

Worked Great !!!!