PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Bug Reports (http://www.photopost.com/forum/classifieds-bug-reports/)
-   -   Payment.php error (http://www.photopost.com/forum/classifieds-bug-reports/144193-payment-php-error.html)

Simka October 8th, 2010 06:32 PM

Payment.php error
 
Hi Chuck.

I get this error:
Parse error: syntax error, unexpected T_STRING, expecting ']' in /classifieds/payment.php on line 89

in payment.php (classifieds 4.1)

Chuck S October 8th, 2010 06:43 PM

Maybe try reuploading that file. I do not see any issues in that actual file that are of issue.

Simka October 9th, 2010 03:46 AM

I tryed to upload a fresh file, same problem.

If I remove this code snip, file is working:

$email = $Globals['adminemail'];
$subject = $pp_phrase['paysub'];
$letter = $pp_phrase['payltr'];
$subject = trim($subject);

list( , $aduser ) = get_userinfo("", $aduserid);
list( $getuserid ) = get_admin( $Globals['admninemail );

$letter = str_replace("^aduser","$aduser",$letter);
$letter = str_replace("^adid","$adid",$letter);
$letter = str_replace("^adamount","$adamount",$letter);
$letter = str_replace("^csymbol","$csymbol",$letter);
$letter = str_replace("^Globals['maindir']","{$Globals['maindir']}",$letter);
$subject = str_replace("^adid","$adid",$subject);

send_ppemail( "$email", "$subject", "$letter", $getuserid, $getuserid );

Can you see what is wrong in that code?

Simka October 9th, 2010 03:59 AM

I found the problem.

list( $getuserid ) = get_admin( $Globals['admninemail );

Should be:
list( $getuserid ) = get_admin( $Globals['admninemail'] );

Your package is broken.

Chuck S October 9th, 2010 09:10 AM

Code:

Content visible to verified customers only.


All times are GMT -5. The time now is 03:31 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97