HomeHelpTrac

Changeset 14056 for trunk/administration


Ignore:
Timestamp:
06/01/10 02:56:46 (2 years ago)
Author:
Anton Lesnikov
Message:

Ticket #2043

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/profiles.php

    r13886 r14056  
    3434bx_import('BxTemplFunctions'); 
    3535bx_import('BxDolAlerts'); 
     36bx_import('BxDolEmailTemplates'); 
    3637 
    3738define('BX_DOL_ADM_MP_CTL', 'qlinks'); 
     
    4950if(isset($_POST['adm-mp-activate']) && (bool)$_POST['members']) { 
    5051    $GLOBALS['MySQL']->query("UPDATE `Profiles` SET `Status`='Active' WHERE `ID` IN ('" . implode("','", $_POST['members']) . "')"); 
     52 
     53    $oEmailTemplate = new BxDolEmailTemplates(); 
    5154    foreach($_POST['members'] as $iId) { 
    5255        createUserDataFile((int)$iId); 
    5356        reparseObjTags('profile', (int)$iId); 
     57 
     58        $aProfile = getProfileInfo($iId); 
     59        $aMail = $oEmailTemplate->parseTemplate('t_Activation', array(), $iId); 
     60        sendMail($aProfile['Email'], $aMail['subject'], $aMail['body']); 
     61 
    5462        $oAlert = new BxDolAlerts('profile', 'change_status', (int)$iId, 0, array('status' => 'Active')); 
    5563        $oAlert->alert(); 
Note: See TracChangeset for help on using the changeset viewer.