phpNuke/CPG Bridge phpNuke/CPG Bridge
 

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

phpNuke/CPG Bridge

Started by TehBooster, April 28, 2005, 02:32:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TehBooster

Hi there.

Before i go any further i am fully aware of CPGNuke but it that is a non-option.

Im in the process of creating a bridge file that will be fully compatible of bridging a standalone Coppermine system with phpNuke for those people who like me cant switch over to cpgNuke for whatever reason.

I will admit now I'm not the best at coding these kinds of things but occaisionally i get lucky. At the moment however I am a little bit stuck. I have taken the decision to modify the phpBB bridge as this is already a fully functioning part of phpNuke. What is getting me stuck however is the login system, here is my code so far obviously with my site info deleted.

// ------------------------------------------------------------------------- //
// phpBB2 Integration for Coppermine                                         //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('PHPBB_DB_NAME', 'db'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'root'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'password'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/modules.php?name=Forums');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', '/modules.php?name=Forums$');
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'nuke_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'bbsessions'); // The session table
define('PHPBB_GROUP_TABLE', 'bbgroups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'bbuser_group'); // The group/user table

// ------------------------------------------------------------------------- //


Whats getting me stuck is the login coding

define('PHPBB_WEB_PATH', '/modules.php?name=Forums');

What would i put in here so it logs me into the coppermine gallery rather than just login and redirect to the forum as when i do that im still not logged in on coppermine.

Please help me with this as i really think many phpNuke users will find a good use for it.

If anyone would like to give me more direct help then please feel free to add me to msn messenger: tehbooster@iain-armitage.co.uk

Thank you for reading.

Booster