Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Bug with xp_publish.php page (with a patch!)  (Read 4189 times)

0 Members and 1 Guest are viewing this topic.

epit

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Bug with xp_publish.php page (with a patch!)
« on: October 26, 2003, 03:56:10 am »

I have 2 completely different coppermine galleries on 2 different hosts. when I download and 'install' the .reg file from either page, it overwrites the other coppermine gallery's info on my XP machine.

the culprit is on line 553 of xp_publish.php (1.2.0 RC2):
    $lines[] = '[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers\CopperminePhotoGallery]';

if you change the line to
$lines[] = '[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers\\'. $CONFIG['gallery_name'] .']';
 
this will give the registry entry a 'unique' entry (well, more unique than the current method), rather than overwrite the entry each time. Oh, and the line needs the \\' in it (an extra \) cause PHP thinks its escaping the ', and therefore screws everything up :)

Hope that helps.
Thanks for the software, it rocks
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Bug with xp_publish.php page (with a patch!)
« Reply #1 on: October 26, 2003, 04:25:02 am »

Thanks - will test and fix in CVS

BTW would you have the info on creating XP wizards? a tutorial perhaps the one mentioned by the origianl author is no longer available
Logged
SANIsoft PHP applications for E Biz

epit

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Bug with xp_publish.php page (with a patch!)
« Reply #2 on: October 26, 2003, 04:27:21 am »

probably not, but what do you mean by 'wizards'? (I know what wizards are, but tying to web or php or whatnot? please clarify)
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Bug with xp_publish.php page (with a patch!)
« Reply #3 on: October 26, 2003, 04:42:39 am »

An XP web publishing wizard which allows upload just like the current one we have in CPG...

I want to understand how the client side image resizing is done....
Logged
SANIsoft PHP applications for E Biz

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
Bug with xp_publish.php page (with a patch!)
« Reply #4 on: October 26, 2003, 05:22:28 am »

tarique, the xp publishing wizard used by coppermine is built-in in windows XP, not created by the author.
What the author created was a login interface for the wizard that links it to coppermine (the xp_publish.php file).
It is only the question of having the correct parameters in the windows registry.

as far as I know, client side image resizing is done by windows, and not the xp_publish file...
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Bug with xp_publish.php page (with a patch!)
« Reply #5 on: October 26, 2003, 05:34:11 am »

Quote from: "oasis"
tarique, the xp publishing wizard used by coppermine is built-in in windows XP, not created by the author.

I know

Quote

as far as I know, client side image resizing is done by windows, and not the xp_publish file...

Since I say client side it obviously means Windows OR something in Windows :)

All I wanted to know was is it just selecting an Image brings up the needed resize interface OR something else is required...
Logged
SANIsoft PHP applications for E Biz

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Bug with xp_publish.php page (with a patch!)
« Reply #6 on: October 26, 2003, 11:16:37 am »

in other words: could someone using win xp make some screenshots to show the xp_publsihing wizard "in action" for those who do not have win xp?

GauGau :wink:
Logged

wormie_dk

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 73
Bug with xp_publish.php page (with a patch!)
« Reply #7 on: October 26, 2003, 11:45:58 am »

Screenshots can be found on http://alberg.dk/screenshots/

They are in danish so tell me if you need anything explained  :D
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Bug with xp_publish.php page (with a patch!)
« Reply #8 on: December 26, 2003, 01:08:08 pm »

I have just found the same problem as discussed at the start of this thread by epit .  
I installed xp_pub_wizard from a 1.2.1 gallery, and it overwrote my original account.  I fixed it for myself, but think it should be dynamic, as many users will not know how.
CPG is very popular now, and many users will have the same problem with xp_publish overwriting their other cpg xp_publish account.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.