[Solved]: Confirmation email missing URL [Solved]: Confirmation email missing URL
 

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

[Solved]: Confirmation email missing URL

Started by Chunky C, June 08, 2004, 06:48:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chunky C

I just installed the lastest version of Coppermine .  When a new user registers, the confirmation email does not enclude the the url.  Any ideas / work arounds / missconfigured CPG?

Under the Confirguration Page for "Target address for the 'See more pictures' link in e-cards" I have http://www.mycpg.com (note the actual url is not mycpg lol)  This is the only place that I have found to enter in the CPG URL.

Thanks,

Chunk
What's the point of wearing your favorite rocketship underpants if nobody ever asks to see 'em?" --Calvin

Chunky C

#1
I done a little digging in the code and here is what I surmised so far.

In REGISTER.PHP

   if ($CONFIG['reg_requires_valid_email']) {
       $act_link = "http://" . $HTTP_SERVER_VARS['HTTP_HOST'] . $PHP_SELF . '?activate=' . $act_key;


This would the culprit => $HTTP_SERVER_VARS['HTTP_HOST']  and from looking, I'm betting that the e-card address too is missing or incorrect.  Where is the information stored?  Not in the DB.  Is the HTTP_*_VARS polled from PHP?  Maybe from the Web server?

Also, the web server (OminHTTPd) is behind a FW and assigned to a "C CLASS" IP address (192.168.10.3)

Thanks,

Chunk

One other tidbit:

PHP version: 4.3.4


mySQL version: 3.23.55-nt
What's the point of wearing your favorite rocketship underpants if nobody ever asks to see 'em?" --Calvin

Joachim Müller

Quote from: Chunky C on June 08, 2004, 06:48:24 PM
I just installed the lastest version of Coppermine .  
What version do you consider as "latest version"?

GauGau

Chunky C

What's the point of wearing your favorite rocketship underpants if nobody ever asks to see 'em?" --Calvin

Casper

the 'http://www.mycpg.com' is the bit you need to get correct.  Make sure it includes the coppermine directory, but not a final slash.
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

Nibbler

Try replacing $HTTP_SERVER_VARS['HTTP_HOST'] with $HTTP_SERVER_VARS['SERVER_NAME']


Chunky C

Quote from: Casper on June 09, 2004, 04:51:50 PM
the 'http://www.mycpg.com' is the bit you need to get correct.  Make sure it includes the coppermine directory, but not a final slash.

Eh?  That's the part that's not getting entered in the confirmation email.

Here is how the email looks:

Thank you for registering at SPAD Photo Gallery

Your username is : "[removed]"
Your password is : "[removed]"

In order to activate your account, you need to click on the link below
or copy and paste it in your web browser.

http:///register.php?activate=949a8f3e0271fc8a48ed7567fcd949d5

Regards,

The management of ******


See, the url is missing.

Nibbler,

I'll try the change you suggested.

Chunk
What's the point of wearing your favorite rocketship underpants if nobody ever asks to see 'em?" --Calvin

Chunky C

Nibbler,

Worked like a charm.  I'll make the mod to the other files in the Gallery that uses the $HTTP_SERVER_VARS['HTTP_HOST']  as well.

Thanks for your help!

Chunk

What's the point of wearing your favorite rocketship underpants if nobody ever asks to see 'em?" --Calvin