Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: [cpg1.4.x]: punbb 1.3 bridge  (Read 14805 times)

0 Members and 1 Guest are viewing this topic.

cuteseal

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[cpg1.4.x]: punbb 1.3 bridge
« on: April 28, 2009, 12:41:20 pm »

Hi guys,

I upgraded my punbb forum from 1.2 to 1.3 and found that the bridge is not working anymore.

However, I did some poking around in the 1.2 bridge and got some hints from Nibbler here:
http://forum.coppermine-gallery.net/index.php/topic,54446.0.html

I have changed the following lines:

Code: [Select]
list($id, $pass_hash) = unserialize($_COOKIE[$this->cookie_name]);to
Code: [Select]
list($id, $pass_hash) =@explode('|', base64_decode($_COOKIE[$this->cookie_name]));
and also

Code: [Select]
return md5($this->cookie_seed.$password);to
Code: [Select]
return $password;
And that seemed to do the trick.

I don't pretend to be a coder or know what the internals of the code, so I was wondering if someone could please verify what I've done to make sure that it's all ok?


I've done some preliminary testing:
- Login as user 1 in forums, I'm logged in as user 1 in gallery
- Logout user 1 in forums, I'm logged out in gallery
- Login as user 2 in forums, I'm logged in as user 2 in gallery
etc.

The only problem so far I can see is that when I click on the logout link in the gallery, it redirects to the forums with a message:

Quote
Please confirm or cancel your last action

Unable to confirm security token. A likely cause for this is that some time passed between when you first entered the page and when you submitted a form or clicked a link. If that is the case and you would like to continue with your action, please click the Confirm button. Otherwise, you should click the Cancel button to return to where you were.

If I click on the confirm button, it logs me out successfully - but this message would no doubt be confusing to users.


Thanks,
Julian
« Last Edit: May 01, 2009, 05:02:20 pm by Nibbler »
Logged

cuteseal

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: punbb 1.3 bridge
« Reply #1 on: May 01, 2009, 05:35:47 am »

Anyone?
Logged

Nibbler

  • Guest
Re: punbb 1.3 bridge
« Reply #2 on: May 01, 2009, 05:01:47 pm »

Thanks. Attached is a bridge file for punbb 1.3 that includes your changes and fixes logging out.

To use, unzip and upload the attached file into the bridge directory and add the following code (verbatim) into bridgemgr.php to enable it in the bridge manager.

Code: [Select]
$default_bridge_data['punbb13'] = array(
  'full_name' => 'PunBB v1.3',
  'short_name' => 'punbb13',
  'support_url' => 'http://punbb.informer.com/',
  'full_forum_url_default' => '',
  'full_forum_url_used' => '',
  'relative_path_to_config_file_default' => '../board/',
  'relative_path_to_config_file_used' => 'lookfor,config.php',
  'use_post_based_groups_default' => '0',
  'use_post_based_groups_used' => 'radio,1,0',
);
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #3 on: May 01, 2009, 11:46:17 pm »

@Nibbler: Should this be added to the core package?
Logged

cuteseal

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #4 on: May 02, 2009, 01:54:24 pm »

Thanks Nibbler!  Just tested the code and it works a treat! It looks like the "please confirm or cancel your last action" message is gone now. :D


Just wondering though - when you successfully login or logout, it doesn't redirect back to the coppermine page.  Is that supposed to happen?
Logged

Nibbler

  • Guest
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #5 on: May 02, 2009, 04:41:29 pm »

Yeah. The PunBB code doesn't allow us to do that. If you need it you'll need to hack the punbb code (or better: write an extension for punbb).
Logged

cuteseal

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #6 on: May 03, 2009, 02:16:28 am »

Cool... thanks again! :D
Logged

Studia

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #7 on: May 08, 2009, 10:23:04 am »

Hi!
I have one problem: After integration with PunBB 1.3, users (from database PunBB 1.3) with names in russian language incorrect are displayed.
Without integration all work fine.

my forum: http://yreconom.ru/
my gallery http://yreconom.ru/cpg/
Logged

Studia

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #8 on: May 08, 2009, 10:33:12 am »

ops...

it's test forum

login - test
pasword - test
Logged

Nibbler

  • Guest
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #9 on: May 08, 2009, 01:12:36 pm »

I think there's a solution for this posted in the Russian language section. It's not punbb specific.
Logged

tanzy

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 3
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #10 on: June 29, 2011, 06:33:43 am »

I too was having the same problem. I was not sure as to why the bridge wasn’t working when I upgraded from PUNBB forum from 1.2 to 1.3 but so many other users have also been reportedly said to be having the same issue. Anyway, I am glad to see that you have solved the issue by editing the lines. I was thinking of reverting back to 1.2 but now thanks to you, the issue is solved.

polak

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: [cpg1.4.x]: punbb 1.3 bridge
« Reply #11 on: November 03, 2013, 02:20:57 pm »

welcome
please help my coppermine 1.5 punbb 1.4.2 integration
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.