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: Link at email notification  (Read 5561 times)

0 Members and 1 Guest are viewing this topic.

redlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Link at email notification
« on: October 27, 2006, 10:57:33 am »

in the email notification is following link to read at present the message:
http://www.s-bahn-berlin.de/erleben/foto-community/pms.php

user those announced do not get then however an error message

I find the following link better:
http://www.s-bahn-berlin.de/erleben/foto-community/login.php?referer=pms.php

how can I change that?
« Last Edit: November 06, 2006, 12:44:22 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Link at email notification
« Reply #1 on: October 27, 2006, 11:27:42 am »

easiest way would be to change thr error message... something like you need to login to use that feature or something similar.

What you want to do would lead to an error message if a user's already's logged in (Error. You are already logged in !)

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Link at email notification
« Reply #2 on: November 04, 2006, 06:50:07 pm »

can I mark this as solved or do you need help changing the error message?

redlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Link at email notification
« Reply #3 on: November 04, 2006, 06:57:45 pm »

sorry,
i need to help
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Link at email notification
« Reply #4 on: November 04, 2006, 07:08:08 pm »

find in pms.php

Code: [Select]
if (!USER_ID) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);and replace with
Code: [Select]
if (!USER_ID) cpg_die(ERROR, "Du musst Dich <a href='login.php?referer={$_SERVER['PHP_SELF']}'>einloggen</a>, um Deine PNs zu lesen ", __FILE__, __LINE__);

redlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Link at email notification
« Reply #5 on: November 04, 2006, 07:42:09 pm »

after the replace:

Parse error: parse error, unexpected ';' in /home/192839/html/erleben/foto-community/pms.php on line 13

any idea?
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Link at email notification
« Reply #6 on: November 04, 2006, 08:46:26 pm »

try again, works as expected for me. The line you're supposed to replace is no. 9

redlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Link at email notification
« Reply #7 on: November 06, 2006, 12:04:44 pm »

it works

thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 21 queries.