This morning I logged onto my site, www.asia-connect-th.com and went to check my mail. This is what I got:
Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '$' in /home/connect/public_html/mail.php on line 268
I checked the mail.php from the boonex zip file and there are is no code above line 265. I replaced the server mail.php with this one and everything is now working fine.
Having checked the other mail.php I found this additional code:
$aReplace['ID'] = $aMsg['ID'];
$aReplace['CheckBox'] = '<input type="checkbox" class="td_mailbox_checkbox" id="sel_msg_'.$aMsg['ID'].'" name="m['.$aMsg['ID'].']" value="on" />';
$aReplace['Flag'] = '<img class="mailbox_flag_img" src="'.getTemplateIcon( $aMsg['New'] ? 'not_readed.gif' : 'readed.gif' ).'" title="'._t( $aMsg['New'] ? '_New Message' : '_Readed' ).'" />';
--- here some change -------------
$aReplace['From'] = '<center><div style="width:45px;">' . get_member_icon($aMsg['Recipient']) . "<div class=\"clear_both\"></div><!--{$aMsg['RecipientNickName']}--> <a href=\"".getProfileLink($aMsg['Recipient'])."\">{$aMsg['RecipientNickName']}</a>" . '</center>';
--- end of change ----------------
$aReplace['Date'] = "<!--{$aMsg['timestamp']}--> {$aMsg['Date']}";
$aReplace['Subject'] = "<!--$sSubject--> <a href=\"{$site['url']}messages_outbox.php?message={$aMsg['ID']}\">$sSubject</a>";
$sInsertRow = $tmplRow;
foreach( $aReplace as $key => $val )
$sInsertRow = str_replace( "{{$key}}", $val, $sInsertRow );
$sInsertRows .= $sInsertRow;
$tr_class = ( $tr_class == 'odd' ? 'even' : 'odd' );
}
$ret = str_replace( "{InsertRows /}", $sInsertRows, $ret );
$ret =
'<form name="mailbox_form" action="'.$_SERVER['PHP_SELF'].'?mode=outbox" method="post">'.$ret.'</form>';
return $ret;
}
I have not edited or updated mail.php so how did this code get there? Does anyone recognise this code? Dolphin 6.1.4
Your help would be appreciated.
Regards,
Stuart