|
楼主 |
发表于 2015-12-23 17:45:53
|
显示全部楼层
感谢 回答
打开那个 文件 傻眼了。。。 不知道修改哪里 能否指出呢
thank. u
- <?php class Personalization extends Core{function GetSubscriberPersonalizationTags($UserID, $ListID, $ArrayAliases, $CustomFieldPrefix, $ArrayExcludeList = array(), $ArrayLanguageStrings = array()){Core::LoadObject('subscribers');$ArrayPersonalizationTags = array();$ArraySubscriberFields = Subscribers::GetSubscriberFields($UserID, $ListID, $ArrayAliases, $CustomFieldPrefix, $ArrayExcludeList);foreach ($ArraySubscriberFields as $Field=>$FieldName){$ArrayPersonalizationTags['%Subscriber:'.$Field.'%'] = $FieldName;}$ArrayPersonalizationTags['[condition1<>condition2,true_value,false_value]'] = $ArrayAliases['Conditional'];return $ArrayPersonalizationTags;}function GetPersonalizationLinkTags($ArrayLanguage, $Category = 'All'){$ArrayAvailableLinkTags = array('Opt'=> array('%Link:Confirm%'=> $ArrayLanguage['%Link:Confirm%'],'%Link:Reject%'=> $ArrayLanguage['%Link:Reject%'],),'Campaign'=> array('%Link:Forward%'=> $ArrayLanguage['%Link:Forward%'],'%Link:WebBrowser%'=> $ArrayLanguage['%Link:WebBrowser%'],'%Link:ReportAbuse%'=> $ArrayLanguage['%Link:ReportAbuse%'],'%Link:SocialShare:Twitter%' => $ArrayLanguage['%Link:SocialShare:Twitter%'],'%Link:SocialShare:Facebook%' => $ArrayLanguage['%Link:SocialShare:Facebook%'],'%RemoteContent=http://%'=> $ArrayLanguage['%RemoteContent%'],),'List'=> array('%Link:Unsubscribe%'=> $ArrayLanguage['%Link:Unsubscribe%'],'%Link:SubscriberArea%'=> $ArrayLanguage['%Link:SubscriberArea%'],),);if ($Category == 'Opt'){return $ArrayAvailableLinkTags['Opt'];}elseif ($Category == 'Campaign'){return $ArrayAvailableLinkTags['Campaign'];}elseif ($Category == 'List'){return $ArrayAvailableLinkTags['List'];}else{return array_merge($ArrayAvailableLinkTags['Opt'], $ArrayAvailableLinkTags['Campaign'], $ArrayAvailableLinkTags['List']);}}function GetPersonalizationUserTags($ArrayLanguage){$ArrayAvailableUserTags = array('%User:FirstName%'=> $ArrayLanguage['%User:FirstName%'],'%User:LastName%'=> $ArrayLanguage['%User:LastName%'],'%User:EmailAddress%'=> $ArrayLanguage['%User:EmailAddress%'],'%User:CompanyName%'=> $ArrayLanguage['%User:CompanyName%'],'%User:Website%'=> $ArrayLanguage['%User:Website%'],'%User:Street%'=> $ArrayLanguage['%User:Street%'],'%User:City%'=> $ArrayLanguage['%User:City%'],'%User:State%'=> $ArrayLanguage['%User:State%'],'%User:Zip%'=> $ArrayLanguage['%User:Zip%'],'%User:Country%'=> $ArrayLanguage['%User:Country%'],'%User:Phone%'=> $ArrayLanguage['%User:Phone%'],'%User:Fax%'=> $ArrayLanguage['%User:Fax%'],'%User:TimeZone%'=> $ArrayLanguage['%User:TimeZone%'],);return $ArrayAvailableUserTags;}function GetPersonalizationListTags($ArrayLanguage){$ArrayAvailableUserTags = array('%List:ID%'=> $ArrayLanguage['%List:ID%'],'%List:Name%'=> $ArrayLanguage['%List:Name%']);return $ArrayAvailableUserTags;}function GetOtherPersonalizationTags($ArrayLanguage){$ArrayAvailableUserTags = array('%Date=...%'=> $ArrayLanguage['Date']);return $ArrayAvailableUserTags;}function IsSystemLink($Link){$Result = false;$ArraySystemLinks = array('linktag.php','track_open.php','track_link.php','unsubscribe.php','opt_confirm.php','web_browser.php','report_abuse.php','forward_email.php','subscriber/','to.php','tl.php','u.php','oc.php','wb.php','f.php');foreach ($ArraySystemLinks as $EachLink){if (substr($Link, 0, strlen(APP_URL.$EachLink)) == APP_URL.$EachLink){$Result = true;break;}}return $Result;}function FindAllLinksInHTML($String){$ArrayLinks= array();$NewString = str_replace("</a>", "</a>\n", $String);$TMPPattern = "/<a(.*)>.*<\/a>/isU";preg_match_all($TMPPattern, $NewString, $ArrayMatches, PREG_SET_ORDER);$TMPCounter = 0;foreach ($ArrayMatches as $EachIndex=>$ArrayEachMatch){$SearchOn = $ArrayEachMatch[1];$TMPPattern = "/title="([^\r\n]*)"/iU";preg_match_all($TMPPattern, $SearchOn, $ArraySubMatches, PREG_SET_ORDER);$ArrayLinks[$TMPCounter]['Title']= $ArraySubMatches[0][1];$ArrayLinks[$TMPCounter]['FullTitle']= $ArraySubMatches[0][0];$TMPPattern = "/href="([^\r\n]*)"/iU";preg_match_all($TMPPattern, $SearchOn, $ArraySubMatches, PREG_SET_ORDER);$ArrayLinks[$TMPCounter]['Link']= $ArraySubMatches[0][1];$ArrayLinks[$TMPCounter]['FullLink']= $ArraySubMatches[0][0];$TMPPattern = "/class="([^\r\n]*)"/iU";preg_match_all($TMPPattern, $SearchOn, $ArraySubMatches, PREG_SET_ORDER);if (count($ArraySubMatches) > 0){if (strpos('no-link-track', $ArraySubMatches[0][1]) !== true){$ArrayLinks[$TMPCounter]['NoLinkTrack']= true;}}$ArrayLinks[$TMPCounter]['AllLink']= $ArrayEachMatch[0];$TMPCounter++;}$TMPPattern = "/<area(.*)>/isU";preg_match_all($TMPPattern, $NewString, $ArrayMatches, PREG_SET_ORDER);foreach ($ArrayMatches as $EachIndex=>$ArrayEachMatch){$SearchOn = $ArrayEachMatch[1];$TMPPattern = "/title="([^\r\n]*)"/iU";preg_match_all($TMPPattern, $SearchOn, $ArraySubMatches, PREG_SET_ORDER);$ArrayLinks[$TMPCounter]['Title']= $ArraySubMatches[0][1];$ArrayLinks[$TMPCounter]['FullTitle']= $ArraySubMatches[0][0];$TMPPattern = "/href="([^\r\n]*)"/iU";preg_match_all($TMPPattern, $SearchOn, $ArraySubMatches, PREG_SET_ORDER);$ArrayLinks[$TMPCounter]['Link']= $ArraySubMatches[0][1];$ArrayLinks[$TMPCounter]['FullLink']= $ArraySubMatches[0][0];$TMPPattern = "/class="([^\r\n]*)"/iU";preg_match_all($TMPPattern, $SearchOn, $ArraySubMatches, PREG_SET_ORDER);if (count($ArraySubMatches) > 0){if (strpos('no-link-track', $ArraySubMatches[0][1]) !== false){$ArrayLinks[$TMPCounter]['NoLinkTrack']= true;}}$ArrayLinks[$TMPCounter]['AllLink']= $ArrayEachMatch[0];$TMPCounter++;}return $ArrayLinks;}function ConditionalPersonalization($StringToPersonalize){$StringToPersonalize = str_replace("\\,","&,",$StringToPersonalize);$TMPArraySearchList= array();$TMPArrayReplaceList= array();$TMPPattern = "/\[([^\[\]]+,[^\[\]]+)\]/iU"; preg_match_all($TMPPattern, $StringToPersonalize, $ArrayMatches, PREG_SET_ORDER);foreach ($ArrayMatches as $EachMatch){$ConditionalSet = $EachMatch[1];$ConditionalSet = str_replace("&,", "||", $ConditionalSet);$ArrayConditionParts = explode(',', $ConditionalSet);preg_match('/(.*?)([!<>][=]|[<>=])(.*)/i', $ArrayConditionParts[0], $TMPArray);$LeftCondition= $TMPArray[1];$RightCondition= $TMPArray[3];$Operator= $TMPArray[2];$ArrayConditionParts[1] = str_replace("||", ",", $ArrayConditionParts[1]);$ArrayConditionParts[2] = str_replace("||", ",", $ArrayConditionParts[2]);if (($Operator == '=') && ($LeftCondition == $RightCondition)){$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[1];}elseif (($Operator == '>') && ($LeftCondition > $RightCondition)){$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[1];}elseif (($Operator == '<') && ($LeftCondition < $RightCondition)){$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[1];}elseif (($Operator == '!=') && ($LeftCondition != $RightCondition)){$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[1];}elseif (($Operator == '<=') && ($LeftCondition <= $RightCondition)){$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[1];}elseif (($Operator == '>=') && ($LeftCondition >= $RightCondition)){$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[1];}else{$TMPArraySearchList[]= $EachMatch[0];$TMPArrayReplaceList[]= $ArrayConditionParts[2];}}foreach ($TMPArraySearchList as $Index=>$Val){$TMPArraySearchList[$Index] = '/'.preg_quote($Val, '/').'/';}$StringToPersonalize = preg_replace($TMPArraySearchList, $TMPArrayReplaceList, $StringToPersonalize);return $StringToPersonalize;}function Personalize($StringToPersonalize, $ArrayPersonalizationScope, $ArraySubscriber, $ArrayUser, $ArrayList, $ArrayCampaign, $ArrayAutoResponder, $IsPreview = false, $ArrayEmail = array(), $DisablePersonalization = false){$StringToPersonalize = self::StandardTagPersonalization($StringToPersonalize);$TMPArraySearchList= array();$TMPArrayReplaceList= array();if (count($ArrayList) > 0){$TMPArraySearchList[] = '/%List:ID%/';$TMPArrayReplaceList[] = $ArrayList['ListID'];$TMPArraySearchList[] = '/%List:Name%/';$TMPArrayReplaceList[] = $ArrayList['Name'];}foreach ($ArrayPersonalizationScope as $EachScope){if ($EachScope == 'Subscriber'){foreach (array_keys($ArraySubscriber) as $Field){$TMPArraySearchList[]= '/%Subscriber:'.$Field.'%/';$TMPArrayReplaceList[]= $ArraySubscriber[$Field];}}elseif ($EachScope == 'User'){$ArrayReplaceList = array('FirstName'=> $ArrayUser['FirstName'],'LastName'=> $ArrayUser['LastName'],'EmailAddress'=> $ArrayUser['EmailAddress'],'CompanyName'=> $ArrayUser['CompanyName'],'Website'=> $ArrayUser['Website'],'Street'=> $ArrayUser['Street'],'City'=> $ArrayUser['City'],'State'=> $ArrayUser['State'],'Zip'=> $ArrayUser['Zip'],'Country'=> $ArrayUser['Country'],'Phone'=> $ArrayUser['Phone'],'Fax'=> $ArrayUser['Fax'],'TimeZone'=> $ArrayUser['TimeZone'],);foreach ($ArrayReplaceList as $Field=>$Value){$TMPArraySearchList[]= '/%User:'.$Field.'%/';$TMPArrayReplaceList[]= $Value;}}elseif ($EachScope == 'List'){$ArrayReplaceList = array('Name'=> $ArrayList['Name'],);foreach ($ArrayReplaceList as $Field=>$Value){$TMPArraySearchList[]= '/%List:'.$Field.'%/';$TMPArrayReplaceList[]= $Value;}}elseif ($EachScope == 'OptLinks'){if (strpos($StringToPersonalize, '%Link:Confirm%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayList['ListID'], $ArraySubscriber['SubscriberID'], 1, ($IsPreview == true ? 1 : 0) ));$TMPArraySearchList[]= '/%Link:Confirm%/';if ($DisablePersonalization == true){$TMPArrayReplaceList[]= '#';}else{$TMPArrayReplaceList[]= APP_URL.'oc.php?p='.$EncryptedQuery;}}if (strpos($StringToPersonalize, '%Link:Reject%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayList['ListID'], $ArraySubscriber['SubscriberID'], 0, ($IsPreview == true ? 1 : 0) ));$TMPArraySearchList[]= '/%Link:Reject%/';if ($DisablePersonalization == true){$TMPArrayReplaceList[]= '#';}else{$TMPArrayReplaceList[]= APP_URL.'oc.php?p='.$EncryptedQuery;}}}elseif ($EachScope == 'Links'){if (strpos($StringToPersonalize, '%Link:Unsubscribe%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], $ArrayAutoResponder['AutoResponderID'], $ArraySubscriber['SubscriberID'], $ArrayList['ListID'], (isset($ArrayEmail['EmailID']) == true ? $ArrayEmail['EmailID'] : 0), ($IsPreview == true ? 1 : 0) ));$TMPArraySearchList[]= '/%Link:Unsubscribe%/';if ($DisablePersonalization == true){$TMPArrayReplaceList[]= '#';}else{$TMPArrayReplaceList[]= APP_URL.'u.php?p='.$EncryptedQuery;}}if (strpos($StringToPersonalize, '%Link:Forward%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], (isset($ArrayEmail['EmailID']) == FALSE ? $ArrayEmail['EmailID'] : 0), $ArrayAutoResponder['AutoResponderID'], $ArraySubscriber['SubscriberID'], $ArrayList['ListID'], ($IsPreview == true ? 1 : 0) ));$TMPArraySearchList[]= '/%Link:Forward%/';if ($DisablePersonalization == true){$TMPArrayReplaceList[]= '#';}else{$TMPArrayReplaceList[]= APP_URL.'f.php?p='.$EncryptedQuery;}}if (strpos($StringToPersonalize, '%Link:WebBrowser%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], (isset($ArrayEmail['EmailID']) == true ? $ArrayEmail['EmailID'] : 0), $ArrayAutoResponder['AutoResponderID'], $ArraySubscriber['SubscriberID'], $ArrayList['ListID'], ($IsPreview == true ? 1 : 0) ));$TMPArraySearchList[]= '/%Link:WebBrowser%/';$TMPArrayReplaceList[]= APP_URL.'wb.php?p='.$EncryptedQuery;}if (strpos($StringToPersonalize, '%Link:SocialShare:Twitter%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], (isset($ArrayEmail['EmailID']) == true ? $ArrayEmail['EmailID'] : 0), 0, ));$Hash = Core::ShortenLink(APP_URL.'wb.php?p='.$EncryptedQuery);$CampaignPublicLink = APP_URL.'link.php?p='.rawurlencode($Hash);$TMPArraySearchList[] = '/%Link:SocialShare:Twitter%/';$TMPArrayReplaceList[] = 'http://twitter.com/intent/tweet/?url='.rawurlencode($CampaignPublicLink);}if (strpos($StringToPersonalize, '%Link:SocialShare:Facebook%') !== false){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], (isset($ArrayEmail['EmailID']) == true ? $ArrayEmail['EmailID'] : 0), 0, ));$Hash = Core::ShortenLink(APP_URL.'wb.php?p='.$EncryptedQuery);$CampaignPublicLink = APP_URL.'link.php?p='.rawurlencode($Hash);$TMPArraySearchList[] = '/%Link:SocialShare:Facebook%/';$TMPArrayReplaceList[] = 'http://www.facebook.com/sharer/sharer.php?u='.rawurlencode($CampaignPublicLink).'&t='.rawurlencode($ArrayEmail['Subject']);}if (strpos($StringToPersonalize, '%Link:ReportAbuse%') !== false){Core::LoadObject('queue');$CampaignID = isset($ArrayCampaign['CampaignID']) ? $ArrayCampaign['CampaignID']: 0;$AutoResponderID = isset($ArrayAutoResponder['AutoResponderID']) ? $ArrayAutoResponder['AutoResponderID']: 0;$AbuseMessageID = EmailQueue::GenerateAbuseMessageID($CampaignID, $ArraySubscriber['SubscriberID'], $ArraySubscriber['EmailAddress'], $ArrayList['ListID'], $ArrayList['RelOwnerUserID'], $AutoResponderID);$ReportAbuseURL = X_REPORT_ABUSE_URL.$AbuseMessageID;$TMPArraySearchList[]= '/%Link:ReportAbuse%/';$TMPArrayReplaceList[]= $ReportAbuseURL;}if (strpos($StringToPersonalize, '%Link:SubscriberArea%') !== false){$ArrayQueryParameters = array('SubscriberID'=> md5($ArraySubscriber['SubscriberID']),'EmailAddress'=> md5($ArraySubscriber['EmailAddress']),'ListID'=> $ArrayList['ListID'],);$EncryptedQuery = Core::EncryptURL($ArrayQueryParameters);$EncryptedQuery = rtrim($EncryptedQuery, '%3D');$TMPArraySearchList[]= '/%Link:SubscriberArea%/';if ($DisablePersonalization == true){$TMPArrayReplaceList[]= '#';}else{$TMPArrayReplaceList[]= APP_URL.APP_DIRNAME.(HTACCESS_ENABLED == false ? '/index.php?' : '').'/subscriber/login/'.$EncryptedQuery;}}}elseif ($EachScope == 'OpenTracking'){$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], (isset($ArrayEmail['EmailID']) == true ? $ArrayEmail['EmailID'] : 0), $ArrayAutoResponder['AutoResponderID'], $ArraySubscriber['SubscriberID'], $ArrayList['ListID'], ($IsPreview == true ? 1 : 0) ));if ($DisablePersonalization == false){$OpenTrackURL = '<img src="'.APP_URL.'to.php?p='.$EncryptedQuery.'" width="5" height="2" alt=".">';$TMPArraySearchList[]= '/<\/body>/';$TMPArrayReplaceList[]= "\n".$OpenTrackURL."\n\n</body>";}}}$StringToPersonalize = preg_replace($TMPArraySearchList, $TMPArrayReplaceList, $StringToPersonalize);if (in_array('RemoteContent', $ArrayPersonalizationScope) == true){$TMPPattern = "/%RemoteContent=(.*)%/isU";if (preg_match_all($TMPPattern, $StringToPersonalize, $ArrayMatches, PREG_SET_ORDER)){foreach ($ArrayMatches as $EachMatch){$TMPPattern = "%RemoteContent=".$EachMatch[1]."%";$TMPReplace = Core::FetchRemoteContent($EachMatch[1]);$StringToPersonalize = str_replace($TMPPattern, $TMPReplace, $StringToPersonalize);}}}if (in_array('LinkTracking', $ArrayPersonalizationScope) == true){$ArrayLinks = self::FindAllLinksInHTML($StringToPersonalize);foreach ($ArrayLinks as $EachIndex=>$ArrayEachLink){if ((((isset($ArrayEachLink['NoLinkTrack']) == false) || ($ArrayEachLink['NoLinkTrack'] != true))) && (substr($ArrayEachLink['Link'], 0, 1) != '#') && (strtolower(substr($ArrayEachLink['Link'], 0, 7)) != 'mailto:') && (self::IsSystemLink($ArrayEachLink['Link']) == false)){$TMPLinkTitle= rawurlencode($ArrayEachLink['Title']);$TMPLinkURL= rawurlencode($ArrayEachLink['Link']);$EncryptedQuery = Core::EncryptArrayAsQueryStringAdvanced(array($ArrayCampaign['CampaignID'], (isset($ArrayEmail['EmailID']) == true ? $ArrayEmail['EmailID'] : 0), $ArrayAutoResponder['AutoResponderID'], $ArraySubscriber['SubscriberID'], $ArrayList['ListID'], ($IsPreview == true ? 1 : 0) ));$EncryptedQuery .= '/'.$TMPLinkTitle.'/'.$TMPLinkURL;if ($DisablePersonalization == true){$ReplaceString = $ArrayEachLink['Link'];}else{$ReplaceString = APP_URL.'tl.php?p='.$EncryptedQuery;}$TMPPattern = $ArrayEachLink['FullLink'];$TMPAllLink = str_replace($TMPPattern, 'href="'.$ReplaceString.'"', $ArrayEachLink['AllLink']);$TMPPattern = $ArrayEachLink['AllLink'];$TMPReplace = $TMPAllLink;$StringToPersonalize = str_replace($TMPPattern, $TMPReplace, $StringToPersonalize);}}}$StringToPersonalize = self::ConditionalPersonalization($StringToPersonalize);return $StringToPersonalize;}function StandardTagPersonalization($StringToPersonalize){$TMPPattern = "/%Date=(.*)%/isU";if (preg_match_all($TMPPattern, $StringToPersonalize, $ArrayMatches, PREG_SET_ORDER)){foreach ($ArrayMatches as $EachMatch){$TMPPattern = "%Date=".$EachMatch[1]."%";$TMPReplace = date($EachMatch[1]);$StringToPersonalize = str_replace($TMPPattern, $TMPReplace, $StringToPersonalize);}}return $StringToPersonalize;}function GetTagsFor($Mode, $UserID, $ListID, $LanguageAliasesForSubscriberTags, $LanguageAliasesForLinkTags, $LanguageAliasesForUserTags, $LanguageAliasesForOtherTags, $CustomFieldPrefix, $LanguageAliasesForLabels){if ($Mode == 'campaign'){$array_subscriber_tags = Personalization::GetSubscriberPersonalizationTags($UserID, $ListID, $LanguageAliasesForSubscriberTags, $CustomFieldPrefix);$array_campaign_link_tags = Personalization::GetPersonalizationLinkTags($LanguageAliasesForLinkTags, 'Campaign');$array_list_link_tags = Personalization::GetPersonalizationLinkTags($LanguageAliasesForLinkTags, 'List');$array_list_tags = Personalization::GetPersonalizationListTags($LanguageAliasesForOtherTags);$array_user_tags = Personalization::GetPersonalizationUserTags($LanguageAliasesForUserTags);$array_other_tags = Personalization::GetOtherPersonalizationTags($LanguageAliasesForOtherTags);$array_content_tags = array($LanguageAliasesForLabels[0]=>$array_subscriber_tags,$LanguageAliasesForLabels[1]=>$array_campaign_link_tags,$LanguageAliasesForLabels[2]=>$array_list_link_tags,$LanguageAliasesForLabels[6]=>$array_list_tags,$LanguageAliasesForLabels[3]=>$array_user_tags,$LanguageAliasesForLabels[4]=>$array_other_tags);$array_subject_tags = array($LanguageAliasesForLabels[0]=>$array_subscriber_tags,$LanguageAliasesForLabels[6]=>$array_list_tags,$LanguageAliasesForLabels[3]=>$array_user_tags,$LanguageAliasesForLabels[4]=>$array_other_tags);}else if ($Mode == 'confirmation'){$array_subscriber_tags = Personalization::GetSubscriberPersonalizationTags($UserID, array($ListID), $LanguageAliasesForSubscriberTags, $CustomFieldPrefix);$array_opt_tags = Personalization::GetPersonalizationLinkTags($LanguageAliasesForLinkTags, 'Opt');$array_user_tags = Personalization::GetPersonalizationUserTags($LanguageAliasesForUserTags);$array_list_tags = Personalization::GetPersonalizationListTags($LanguageAliasesForOtherTags);$array_content_tags = array($LanguageAliasesForLabels[0]=>$array_subscriber_tags,$LanguageAliasesForLabels[5]=>$array_opt_tags,$LanguageAliasesForLabels[6]=>$array_list_tags,$LanguageAliasesForLabels[3]=>$array_user_tags,);$array_subject_tags = array($LanguageAliasesForLabels[0]=>$array_subscriber_tags,$LanguageAliasesForLabels[6]=>$array_list_tags,$LanguageAliasesForLabels[3]=>$array_user_tags,);}else if ($Mode == 'autoresponder'){$array_subscriber_tags = Personalization::GetSubscriberPersonalizationTags($UserID, array($ListID), $LanguageAliasesForSubscriberTags, $CustomFieldPrefix);$array_campaign_link_tags = Personalization::GetPersonalizationLinkTags($LanguageAliasesForLinkTags, 'Campaign');$array_list_link_tags = Personalization::GetPersonalizationLinkTags($LanguageAliasesForLinkTags, 'List');$array_user_tags = Personalization::GetPersonalizationUserTags($LanguageAliasesForUserTags);$array_other_tags =
复制代码
|
|