Changeset 10410
- Timestamp:
- 05/05/09 01:32:44 (3 years ago)
- Location:
- tags/6.1.5
- Files:
-
- 2 edited
-
inc/match.inc.php (modified) (2 diffs)
-
periodic/notifies.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/6.1.5/inc/match.inc.php
r10242 r10410 62 62 } 63 63 64 $sAllProfSQL = "SELECT DISTINCT ` Profiles`.* FROM `Profiles` WHERE `Status`='Active' AND (`Couple`='0' OR `Couple`>`ID`)";64 $sAllProfSQL = "SELECT DISTINCT `ID`, `NickName`, `Email`, 'HTML' as `EmailFlag` FROM `Profiles` WHERE `Status`='Active' AND (`Couple`='0' OR `Couple`>`ID`) AND `EmailNotify`='1'"; 65 65 $vAllProf = db_res($sAllProfSQL); 66 66 while ($aAnyProf = mysql_fetch_array($vAllProf)) { … … 94 94 $message = addslashes($message); 95 95 96 if ('Text' == $aAnyProf['EmailFlag']) { 97 $message = html2txt($message); 98 } 99 if ('HTML' == $aAnyProf['EmailFlag']) { 96 97 if ('HTML' == $aAnyProf['EmailFlag']) 100 98 $headers = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=UTF-8\r\n" . $headers; 101 } 99 else 100 $message = html2txt($message); 102 101 103 102 $sql = "INSERT INTO `NotifyQueue` SET `Email` = {$aAnyProf['ID']}, Msg = 0, `From` = 'ProfilesMsgText', Creation = NOW(), MsgText = '$message', MsgSubj = '$subject'"; -
tags/6.1.5/periodic/notifies.php
r10242 r10410 115 115 WHERE 116 116 NotifyQueue.`From` = 'Profiles' AND 117 Profiles.EmailNotify = ' NotifyMe'117 Profiles.EmailNotify = '1' 118 118 ",0 ); 119 119 … … 150 150 WHERE 151 151 NotifyQueue.`From` = 'ProfilesMsgText' AND 152 Profiles.EmailNotify = ' NotifyMe'152 Profiles.EmailNotify = '1' 153 153 ",0); 154 154
Note: See TracChangeset
for help on using the changeset viewer.