Changeset 14056 for trunk/administration
- Timestamp:
- 06/01/10 02:56:46 (2 years ago)
- File:
-
- 1 edited
-
trunk/administration/profiles.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/profiles.php
r13886 r14056 34 34 bx_import('BxTemplFunctions'); 35 35 bx_import('BxDolAlerts'); 36 bx_import('BxDolEmailTemplates'); 36 37 37 38 define('BX_DOL_ADM_MP_CTL', 'qlinks'); … … 49 50 if(isset($_POST['adm-mp-activate']) && (bool)$_POST['members']) { 50 51 $GLOBALS['MySQL']->query("UPDATE `Profiles` SET `Status`='Active' WHERE `ID` IN ('" . implode("','", $_POST['members']) . "')"); 52 53 $oEmailTemplate = new BxDolEmailTemplates(); 51 54 foreach($_POST['members'] as $iId) { 52 55 createUserDataFile((int)$iId); 53 56 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 54 62 $oAlert = new BxDolAlerts('profile', 'change_status', (int)$iId, 0, array('status' => 'Active')); 55 63 $oAlert->alert();
Note: See TracChangeset
for help on using the changeset viewer.