Quote:
Originally Posted by FRDS
|
The code is very similar, because the original code of vBulletin is this:
Code:
if (!empty($alt_email))
{
if ($destemail == $vbulletin->options['webmasteremail'])
{
$ip = IPADDRESS;
}
else
{
$ip =& $vbphrase['n_a'];
}
$destemail =& $alt_email;
}
else
{
$ip = IPADDRESS;
$destemail =& $vbulletin->options['webmasteremail'];
}
and to replace email (
$vbulletin->options['webmasteremail']), it is necessary to replace all code.
You can view the original code in sendmessage.php in lines 283-299, above the hook sendmessage_docontactus_complete.