coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Oldiesmann on May 17, 2005, 10:32:05 PM

Title: SMF Integration Issues
Post by: Oldiesmann on May 17, 2005, 10:32:05 PM
I am having fits trying to get Coppermine integrated with my SMF 1.0.3 board at www.christianindieforums.com. Because the gallery is located in a sub-directory of the directory that the forum is located in, I set the path to .. ($path = '..';). After uncommenting the appropriate line in init.inc.php and uploading both files to the proper location, I now get hit with the following error everytime I try to access the gallery:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /.../christianindieforums/gallery/include/init.inc.php on line 184

Line 184:
        $hdr_ip = stripslashes($HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR']);
Title: Re: SMF Integration Issues
Post by: Oldiesmann on May 18, 2005, 12:12:19 AM
Figured out what the problem was. After editing the files with Dreamweaver, the FTP client (I guess) assumed they were plain text and uploaded them in ASCII format, which resulted in line breaks getting stripped out from both files (ie the code for the entire file was on a single line).