Error - let unregistered users see the thumbnails only Error - let unregistered users see the thumbnails only
 

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

Error - let unregistered users see the thumbnails only

Started by scottking, October 09, 2006, 01:55:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scottking

I did as followed to displayimage.php and get an error

if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before
/**************************************************************************
* Local functions definition
**************************************************************************/

Error

Parse error: syntax error, unexpected T_DNUMBER in /home/nicholeh/public_html/photogallery/displayimage.php on line 97


Here is line 97

$ipinfo = ' (' . $CURRENT_PIC_DATA['pic_hdr_ip'] . '[' . $CURRENT_PIC_DATA['pic_raw_ip'] . ']) / ';

lookking for assistance on this error

Thanks
Scott

Sami

- Re-upload meded file again
- Rename it to displayimage.txt and attach it to this thread
‍I don't answer to PM with support question
Please post your issue to related board

scottking

Here is the displayimage.txt

Should of mentioned too I am running 1.49 with no mods

Sami

‍I don't answer to PM with support question
Please post your issue to related board

scottking

Solved.

Hmm strange. when I upload the displayimage.php I get the Parse error. If I delete the displayimage.php and upload the displayimage.txt and then rename it to .php everything works fine.

Sami

‍I don't answer to PM with support question
Please post your issue to related board