HomeHelpTrac

Changeset 13278


Ignore:
Timestamp:
11/20/09 01:07:47 (2 years ago)
Author:
Alexander Ermashev
Message:
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolEmailTemplates.php

    r11082 r13278  
    121121            $aResultKeys = array_merge($aResultKeys, array( 
    122122                'recipientID' => $aProfile['ID'], 
    123                 'RealName' => $aProfile['NickName'], 
    124                 'NickName' => $aProfile['NickName'], 
    125                 'Email' => $aProfile['Email'], 
    126                 'Password' => $aProfile['Password'] 
     123                'RealName'    => $aProfile['NickName'], 
     124                'NickName'    => $aProfile['NickName'], 
     125                'Email'       => $aProfile['Email'], 
     126                'Password'    => $aProfile['Password'], 
     127                'SiteName'    => getParam('site_title'), 
    127128            )); 
    128129        } 
  • trunk/install/sql/v70.sql

    r13259 r13278  
    944944INSERT INTO `sys_email_templates` VALUES(51, 't_sbsProfileRates', 'Profile was rated', '<html><head></head><body style="font: 12px Verdana; color:#000000"> <p><b>Dear <RealName></b>,</p><br /><p>The profile you subscribed to was rated!</p><br /> <p>Click <a href="<ViewLink>">here</a> to view it.</p><br /> <p><b>Thank you for using our services!</b></p> <p>--</p> <p style="font: bold 10px Verdana; color:red"><SiteName> mail delivery system!!! <br />Auto-generated e-mail, please, do not reply!!!</p></body></html>', 'New profile rates subscription.', 0); 
    945945INSERT INTO `sys_email_templates` VALUES(53, 't_sbsProfileEdit', 'Profile info was updated', '<html><head></head><body style="font: 12px Verdana; color:#000000"> <p><b>Dear <RealName></b>,</p><br /><p>The profile you subscribed to has updated profile info!</p><br /> <p>Click <a href="<ViewLink>">here</a> to view it.</p><br /> <p><b>Thank you for using our services!</b></p> <p>--</p> <p style="font: bold 10px Verdana; color:red"><SiteName> mail delivery system!!! <br />Auto-generated e-mail, please, do not reply!!!</p></body></html>', 'Profile info subscription.', 0); 
     946INSERT INTO `sys_email_templates` VALUES(54, 't_FriendRequest', 'Friend request', '<html>\r\n<body style="font: 12px Verdana; color:#000000">\r\n    <p><b>Dear <Recipient></b>,</p>\r\n    <br />\r\n    <p><a href="<SenderLink>"><Sender></a> is inviting you to be friends. To accept/reject his/her invitation please \r\n    follow this <a href="<RequestLink>">link</a></p>\r\n    <br /> \r\n    <p><b>Thank you for using our services!</b></p> \r\n    <p>--</p>\r\n    <p style="font: bold 10px Verdana; color:red"><SiteName> mail delivery system!!! \r\n    <br />Auto-generated e-mail, please, do not reply!!!</p>\r\n</html>', 'Friend request message', 0); 
    946947 
    947948-- -------------------------------------------------------- 
  • trunk/list_pop.php

    r13043 r13278  
    309309            $oZ = new BxDolAlerts('friend', 'request', $targetID, $sourceID); 
    310310            $oZ->alert(); 
    311         } 
     311 
     312            // send email notification 
     313            $oEmailTemplate = new BxDolEmailTemplates(); 
     314            $aTemplate = $oEmailTemplate -> getTemplate('t_FriendRequest') ; 
     315 
     316            $aRecipient = getProfileInfo($targetID); 
     317 
     318            $aPlus = array( 
     319                'Recipient'     => $aRecipient['NickName'], 
     320                'SenderLink'    => getProfileLink($sourceID), 
     321                'Sender'        => getNickName($sourceID), 
     322                'RequestLink'   => BX_DOL_URL_ROOT . 'communicator.php?communicator_mode=friends_requests', 
     323            ); 
     324 
     325            sendMail( $aRecipient['Email'], $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus ); 
     326        } 
    312327        else 
    313328            $ret = _t_err('_Failed to apply changes'); 
Note: See TracChangeset for help on using the changeset viewer.