本文整理汇总了PHP中setMessageData函数的典型用法代码示例。如果您正苦于以下问题:PHP setMessageData函数的具体用法?PHP setMessageData怎么用?PHP setMessageData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setMessageData函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: repeatMessage
function repeatMessage($msgid)
{
# if (!USE_REPETITION && !USE_rss) return;
$data = loadMessageData($msgid);
## do not repeat when it has already been done
if ($data['repeatinterval'] == 0 || !empty($data['repeatedid'])) {
return;
}
# calculate the future embargo, a multiple of repeatinterval minutes after the current embargo
$msgdata = Sql_Fetch_Array_Query(sprintf('SELECT *,
embargo +
INTERVAL (FLOOR(TIMESTAMPDIFF(MINUTE, embargo, GREATEST(embargo, NOW())) / repeatinterval) + 1) * repeatinterval MINUTE AS newembargo
FROM %s
WHERE id = %d AND now() < repeatuntil', $GLOBALS['tables']['message'], $msgid));
if (!$msgdata) {
logEvent("Message {$msgid} not repeated due to reaching the repeatuntil date");
return;
}
# check whether the new embargo is not on an exclusion
if (isset($GLOBALS['repeat_exclude']) && is_array($GLOBALS['repeat_exclude'])) {
$loopcnt = 0;
while (excludedDateForRepetition($msgdata['newembargo'])) {
if (++$loopcnt > 15) {
logEvent("Unable to find new embargo date too many exclusions? for message {$msgid}");
return;
}
$result = Sql_Fetch_Array_Query(sprintf("SELECT '%s' + INTERVAL repeatinterval MINUTE AS newembargo\n FROM %s\n WHERE id = %d", $msgdata['newembargo'], $GLOBALS['tables']['message'], $msgid));
$msgdata['newembargo'] = $result['newembargo'];
}
}
# copy the new message
Sql_Query(sprintf('
insert into %s (entered) values(now())', $GLOBALS['tables']['message']));
$newid = Sql_Insert_id();
require dirname(__FILE__) . '/structure.php';
if (!is_array($DBstruct['message'])) {
logEvent("Error including structure when trying to duplicate message {$msgid}");
return;
}
foreach ($DBstruct['message'] as $column => $rec) {
if ($column != 'id' && $column != 'entered' && $column != 'sendstart') {
Sql_Query(sprintf('update %s set %s = "%s" where id = %d', $GLOBALS['tables']['message'], $column, addslashes($msgdata[$column]), $newid));
}
}
$req = Sql_Query(sprintf("SELECT *\n FROM %s\n WHERE id = %d AND name NOT IN ('id')", $GLOBALS['tables']['messagedata'], $msgid));
while ($row = Sql_Fetch_Array($req)) {
setMessageData($newid, $row['name'], $row['data']);
}
Sql_Query(sprintf('update %s set embargo = "%s",status = "submitted",sent = "" where id = %d', $GLOBALS['tables']['message'], $msgdata['newembargo'], $newid));
list($e['year'], $e['month'], $e['day'], $e['hour'], $e['minute'], $e['second']) = sscanf($msgdata['newembargo'], '%04d-%02d-%02d %02d:%02d:%02d');
unset($e['second']);
setMessageData($newid, 'embargo', $e);
foreach (array('processed', 'astext', 'ashtml', 'astextandhtml', 'aspdf', 'astextandpdf', 'viewed', 'bouncecount') as $item) {
Sql_Query(sprintf('update %s set %s = 0 where id = %d', $GLOBALS['tables']['message'], $item, $newid));
}
# lists
$req = Sql_Query(sprintf('select listid from %s where messageid = %d', $GLOBALS['tables']['listmessage'], $msgid));
while ($row = Sql_Fetch_Row($req)) {
Sql_Query(sprintf('insert into %s (messageid,listid,entered) values(%d,%d,now())', $GLOBALS['tables']['listmessage'], $newid, $row[0]));
}
# attachments
$req = Sql_Query(sprintf('select * from %s,%s where %s.messageid = %d and %s.attachmentid = %s.id', $GLOBALS['tables']['message_attachment'], $GLOBALS['tables']['attachment'], $GLOBALS['tables']['message_attachment'], $msgid, $GLOBALS['tables']['message_attachment'], $GLOBALS['tables']['attachment']));
while ($row = Sql_Fetch_Array($req)) {
if (is_file($row['remotefile'])) {
# if the "remote file" is actually local, we want to refresh the attachment, so we set
# filename to nothing
$row['filename'] = '';
}
Sql_Query(sprintf('insert into %s (filename,remotefile,mimetype,description,size)
values("%s","%s","%s","%s",%d)', $GLOBALS['tables']['attachment'], addslashes($row['filename']), addslashes($row['remotefile']), addslashes($row['mimetype']), addslashes($row['description']), $row['size']));
$attid = Sql_Insert_id();
Sql_Query(sprintf('insert into %s (messageid,attachmentid) values(%d,%d)', $GLOBALS['tables']['message_attachment'], $newid, $attid));
}
logEvent("Message {$msgid} was successfully rescheduled as message {$newid}");
## remember we duplicated, in order to avoid doing it again (eg when requeuing)
setMessageData($msgid, 'repeatedid', $newid);
if (getConfig('pqchoice') == 'phplistdotcom') {
activateRemoteQueue();
}
}
开发者ID:gillima,项目名称:phplist3,代码行数:80,代码来源:connect.php
示例2: getConfig
if (!isset($_SESSION['fckeditor_height'])) {
$_SESSION['fckeditor_height'] = getConfig('fckeditor_height');
}
#actions and store in database#######################
if ($send || $sendtest || $prepare || $save || $savedraft) {
if ($savedraft || $save || $sendtest) {
// We're just saving, not sending.
if (!isset($messagedata['status']) || $messagedata['status'] == '') {
// No status - move to draft state
$messagedata['status'] = 'draft';
}
} elseif ($send) {
// We're sending - change state to "send-it" status!
if (is_array($messagedata['targetlist']) && count($messagedata['targetlist']) && !empty($messagedata['subject']) && !empty($messagedata['fromfield']) && !empty($messagedata['message']) && empty($duplicate_attribute)) {
$messagedata['status'] = 'submitted';
setMessageData($id, 'status', 'submitted');
} else {
if (USE_PREPARE) {
$messagedata['status'] = 'prepared';
} else {
$messagedata['status'] = 'draft';
}
}
}
### allow plugins manipulate data or save it somewhere else
$plugintabs = array();
foreach ($GLOBALS['plugins'] as $pluginname => $plugin) {
# print "Saving ".$plugin->name;
$resultMsg = $plugin->sendMessageTabSave($id, $messagedata);
}
if (!$htmlformatted && strip_tags($messagedata['message']) != $messagedata['message']) {
开发者ID:hktang,项目名称:phplist3,代码行数:31,代码来源:send_core.php
示例3: date
if ($counters['sent'] > 0) {
$msgperhour = 3600 / $totaltime * $counters['sent'];
$secpermsg = $totaltime / $counters['sent'];
$timeleft = ($counters['total_users_for_message ' . $messageid] - $counters['sent']) * $secpermsg;
$eta = date('D j M H:i', time() + $timeleft);
} else {
$msgperhour = 0;
$secpermsg = 0;
$timeleft = 0;
$eta = $GLOBALS['I18N']->get('unknown');
}
setMessageData($messageid, 'ETA', $eta);
setMessageData($messageid, 'msg/hr', "{$msgperhour}");
cl_progress('sent ' . $counters['sent'] . ' ETA ' . $eta . ' sending ' . sprintf('%d', $msgperhour) . ' msg/hr');
setMessageData($messageid, 'to process', $counters['total_users_for_message ' . $messageid] - $counters['sent']);
setMessageData($messageid, 'last msg sent', time());
# setMessageData($messageid,'totaltime',$GLOBALS['processqueue_timer']->elapsed(1));
if (!empty($getspeedstats)) {
processQueueOutput('end process user ' . "\n" . '-----------------------------------' . "\n" . $userid);
}
}
$processed = $notsent + $counters['sent'] + $counters['invalid'] + $unconfirmed + $cannotsend + $counters['failed_sent'];
processQueueOutput(s('Processed %d out of %d subscribers', $counters['processed_users_for_message ' . $messageid], $counters['total_users_for_message ' . $messageid]), 1, 'progress');
if ($counters['total_users_for_message ' . $messageid] - $counters['sent_users_for_message ' . $messageid] <= 0 || $stopSending) {
# this message is done
if (!$someusers) {
processQueueOutput($GLOBALS['I18N']->get('Hmmm, No users found to send to'), 1, 'progress');
}
if (!$counters['failed_sent']) {
repeatMessage($messageid);
$status = Sql_query(sprintf('update %s set status = "sent",sent = now() where id = %d', $GLOBALS['tables']['message'], $messageid));
开发者ID:pedru,项目名称:phplist3,代码行数:31,代码来源:processqueue.php
示例4: output
output('AR' . $affrows . ' N ' . $num_users . ' P' . $processed . ' S' . $sent . ' N' . $notsent . ' I' . $invalid . ' U' . $unconfirmed . ' C' . $cannotsend . ' F' . $failed_sent);
$rn = $reload * $num_per_batch;
output('P ' . $processed . ' N' . $num_users . ' NB' . $num_per_batch . ' BT' . $batch_total . ' R' . $reload . ' RN' . $rn);
}
$totaltime = $GLOBALS['processqueue_timer']->elapsed(1);
$msgperhour = 3600 / $totaltime * $sent;
if ($sent) {
$secpermsg = $totaltime / $sent;
} else {
$secpermsg = 0;
}
$timeleft = ($num_users - $sent) * $secpermsg;
$eta = date('D j M H:i', time() + $timeleft);
setMessageData($messageid, 'ETA', $eta);
setMessageData($messageid, 'msg/hr', $msgperhour);
setMessageData($messageid, 'to process', $num_users - $sent);
}
$processed = $notsent + $sent + $invalid + $unconfirmed + $cannotsend + $failed_sent;
output($GLOBALS['I18N']->get('Processed') . ' ' . $processed . ' ' . $GLOBALS['I18N']->get('out of') . ' ' . $num_users . ' ' . $GLOBALS['I18N']->get('users'));
if ($num_users - $sent <= 0) {
# this message is done
if (!$someusers) {
output($GLOBALS['I18N']->get('Hmmm, No users found to send to'));
}
if (!$failed_sent) {
repeatMessage($messageid);
$status = Sql_query(sprintf('update %s set status = "sent",sent = now() where id = %d', $GLOBALS['tables']['message'], $messageid));
if (!empty($msgdata['notify_end']) && !isset($msgdata['end_notified'])) {
$notifications = explode(',', $msgdata['notify_end']);
foreach ($notifications as $notification) {
sendMail($notification, $GLOBALS['I18N']->get('Message Sending has finished'), sprintf($GLOBALS['I18N']->get('phplist has finished sending the message with subject %s'), $message['subject']));
开发者ID:alancohen,项目名称:alancohenexperience-com,代码行数:31,代码来源:processqueue.php
示例5: foreach
## checkboxes cannot be detected when unchecked, so they need registering in the "cb" array
## to be identified as listed, but not checked
## find the "cb" array and uncheck all checkboxes in it
## then the processing below will re-check them, if they were
if (isset($_REQUEST['cb']) && is_array($_REQUEST['cb'])) {
foreach ($_REQUEST['cb'] as $cbname => $cbval) {
## $cbval is a dummy
setMessageData($id, $cbname, '0');
}
}
## remember all data entered
foreach ($_REQUEST as $key => $val) {
/*
print $key .' '.$val;
*/
setMessageData($id, $key, $val);
if (get_magic_quotes_gpc()) {
if (is_string($val)) {
$messagedata[$key] = stripslashes($val);
} else {
$messagedata[$key] = $val;
}
} else {
$messagedata[$key] = $val;
}
}
unset($GLOBALS['MD']);
$messagedata = loadMessageData($id);
/*
if (!empty($_REQUEST["criteria_attribute"])) {
include dirname(__FILE__).'/addcriterion.php';
开发者ID:dehvCurtis,项目名称:phplist,代码行数:31,代码来源:storemessage.php
示例6: sendEmail
//.........这里部分代码省略.........
if (!$isTestMail) {
Sql_Query("update {$GLOBALS['tables']['message']} set astextandhtml = astextandhtml + 1 where id = {$messageid}");
}
# dbg("Adding HTML ".$cached[$messageid]["templateid"]);
if (WORDWRAP_HTML) {
## wrap it: http://mantis.phplist.com/view.php?id=15528
## some reports say, this fixes things and others say it breaks things https://mantis.phplist.com/view.php?id=15617
## so for now, only switch on if requested.
## it probably has to do with the MTA used
$htmlmessage = wordwrap($htmlmessage, WORDWRAP_HTML, "\r\n");
}
$mail->add_html($htmlmessage, $textmessage, $cached[$messageid]['templateid']);
if (!addAttachments($messageid, $mail, 'HTML')) {
return 0;
}
} else {
if (!$isTestMail) {
Sql_Query("update {$GLOBALS['tables']['message']} set astext = astext + 1 where id = {$messageid}");
}
$mail->add_text($textmessage);
# $mail->setText($textmessage);
# $mail->Encoding = TEXTEMAIL_ENCODING;
if (!addAttachments($messageid, $mail, 'text')) {
return 0;
}
}
}
break;
}
# print htmlspecialchars($htmlmessage);exit;
if (!TEST) {
if ($hash != 'forwarded' || !count($forwardedby)) {
$fromname = $cached[$messageid]['fromname'];
$fromemail = $cached[$messageid]['fromemail'];
$subject = $cached[$messageid]['subject'];
} else {
$fromname = '';
$fromemail = $forwardedby['email'];
$subject = $GLOBALS['strFwd'] . ': ' . $cached[$messageid]['subject'];
}
if (!empty($cached[$messageid]['replytoemail'])) {
$mail->AddReplyTo($cached[$messageid]['replytoemail'], $cached[$messageid]['replytoname']);
}
if ($getspeedstats) {
output('build End ' . $GLOBALS['processqueue_timer']->interval(1));
}
if ($getspeedstats) {
output('send Start ' . $GLOBALS['processqueue_timer']->interval(1));
}
if (!empty($GLOBALS['developer_email'])) {
$destinationemail = $GLOBALS['developer_email'];
}
$sendOK = false;
if (!$mail->compatSend('', $destinationemail, $fromname, $fromemail, $subject)) {
foreach ($GLOBALS['plugins'] as $pluginname => $plugin) {
$plugin->processSendFailed($messageid, $userdata, $isTestMail);
}
output(sprintf(s('Error sending message %d (%d/%d) to %s (%s) '), $messageid, $counters['batch_count'], $counters['batch_total'], $email, $destinationemail), 0);
} else {
$sendOK = true;
foreach ($GLOBALS['plugins'] as $pluginname => $plugin) {
$plugin->processSendSuccess($messageid, $userdata, $isTestMail);
}
}
if ($getspeedstats) {
output('send End ' . $GLOBALS['processqueue_timer']->interval(1));
}
if (!empty($mail->mailsize)) {
$sizename = $htmlpref ? 'htmlsize' : 'textsize';
if (empty($cached[$messageid][$sizename])) {
setMessageData($messageid, $sizename, $mail->mailsize);
$cached[$messageid][$sizename] = $mail->mailsize;
if (isset($cached[$messageid]['htmlsize'])) {
output(sprintf(s('Size of HTML email: %s ', formatBytes($cached[$messageid]['htmlsize']))), 0, 'progress');
}
if (isset($cached[$messageid]['textsize'])) {
output(sprintf(s('Size of Text email: %s ', formatBytes($cached[$messageid]['textsize']))), 0, 'progress');
}
}
}
if (defined('MAX_MAILSIZE') && isset($cached[$messageid]['htmlsize']) && $cached[$messageid]['htmlsize'] > MAX_MAILSIZE) {
logEvent(s('Message too large (%s is over %s), suspending', $cached[$messageid]['htmlsize'], MAX_MAILSIZE));
if ($isTestMail) {
$_SESSION['action_result'] = s('Warning: the final message exceeds the sending limit, this campaign will fail sending. Reduce the size by removing attachments or images');
} else {
Sql_Query(sprintf('update %s set status = "suspended" where id = %d', $GLOBALS['tables']['message'], $messageid));
logEvent(s('Campaign %d suspended. Message too large', $messageid));
foreach ($GLOBALS['plugins'] as $pluginname => $plugin) {
$plugin->processError(s('Campaign %d suspended, message too large', $messageid));
}
}
}
$sqlCount = $GLOBALS['pagestats']['number_of_queries'] - $sqlCountStart;
if ($getspeedstats) {
output('It took ' . $sqlCount . ' queries to send this message');
}
return $sendOK;
}
return 0;
}
开发者ID:MarcelvC,项目名称:phplist3,代码行数:101,代码来源:sendemaillib.php
示例7: repeatMessage
function repeatMessage($msgid)
{
# if (!USE_REPETITION && !USE_rss) return;
$data = loadMessageData($msgid);
## do not repeat when it has already been done
if (!empty($data['repeatedid'])) {
return;
}
# get the future embargo, either "repeat" minutes after the old embargo
# or "repeat" after this very moment to make sure that we're not sending the
# message every time running the queue when there's no embargo set.
$msgdata = Sql_Fetch_Array_Query(sprintf('select *,date_add(embargo,interval repeatinterval minute) as newembargo,
date_add(now(),interval repeatinterval minute) as newembargo2, date_add(embargo,interval repeatinterval minute) > now() as isfuture
from %s where id = %d and repeatuntil > now()', $GLOBALS["tables"]["message"], $msgid));
if (!$msgdata["id"] || !$msgdata["repeatinterval"]) {
return;
}
# copy the new message
$query = ' insert into ' . $GLOBALS['tables']['message'] . ' (entered)' . ' values' . ' (current_timestamp)';
Sql_Query($query);
$newid = Sql_Insert_Id($GLOBALS['tables']['message'], 'id');
require dirname(__FILE__) . '/structure.php';
if (!is_array($DBstruct["message"])) {
logEvent("Error including structure when trying to duplicate message {$msgid}");
return;
}
foreach ($DBstruct["message"] as $column => $rec) {
if ($column != "id" && $column != "entered" && $column != "sendstart") {
Sql_Query(sprintf('update %s set %s = "%s" where id = %d', $GLOBALS["tables"]["message"], $column, addslashes($msgdata[$column]), $newid));
}
}
$req = Sql_Query(sprintf('select * from %s where id = %d', $GLOBALS['tables']['messagedata'], $msgid));
while ($row = Sql_Fetch_Array($req)) {
setMessageData($newid, $row['name'], $row['data']);
}
# check whether the new embargo is not on an exclusion
if (isset($GLOBALS["repeat_exclude"]) && is_array($GLOBALS["repeat_exclude"])) {
$repeatinterval = $msgdata["repeatinterval"];
$loopcnt = 0;
while (excludedDateForRepetition($msgdata["newembargo"])) {
$repeat += $msgdata["repeatinterval"];
$loopcnt++;
$msgdata = Sql_Fetch_Array_Query(sprintf('select *,date_add(embargo,interval %d minute) as newembargo,
date_add(current_timestamp,interval %d minute) as newembargo2, date_add(embargo,interval %d minute) > current_timestamp as isfuture
from %s where id = %d and repeatuntil > current_timestamp', $repeatinterval, $repeatinterval, $repeatinterval, $GLOBALS["tables"]["message"], $msgid));
if ($loopcnt > 15) {
logEvent("Unable to find new embargo date too many exclusions? for message {$msgid}");
return;
}
}
}
# correct some values
if (!$msgdata["isfuture"]) {
$msgdata["newembargo"] = $msgdata["newembargo2"];
}
Sql_Query(sprintf('update %s set embargo = "%s",status = "submitted",sent = "" where id = %d', $GLOBALS["tables"]["message"], $msgdata["newembargo"], $newid));
list($e['year'], $e['month'], $e['day'], $e['hour'], $e['minute'], $e['second']) = sscanf($msgdata["newembargo"], '%04d-%02d-%02d %02d:%02d:%02d');
unset($e['second']);
setMessageData($newid, 'embargo', $e);
foreach (array("processed", "astext", "ashtml", "astextandhtml", "aspdf", "astextandpdf", "viewed", "bouncecount") as $item) {
Sql_Query(sprintf('update %s set %s = 0 where id = %d', $GLOBALS["tables"]["message"], $item, $newid));
}
# lists
$req = Sql_Query(sprintf('select listid from %s where messageid = %d', $GLOBALS["tables"]["listmessage"], $msgid));
while ($row = Sql_Fetch_Row($req)) {
Sql_Query(sprintf('insert into %s (messageid,listid,entered) values(%d,%d,current_timestamp)', $GLOBALS["tables"]["listmessage"], $newid, $row[0]));
}
# attachments
$req = Sql_Query(sprintf('select * from %s,%s where %s.messageid = %d and %s.attachmentid = %s.id', $GLOBALS["tables"]["message_attachment"], $GLOBALS["tables"]["attachment"], $GLOBALS["tables"]["message_attachment"], $msgid, $GLOBALS["tables"]["message_attachment"], $GLOBALS["tables"]["attachment"]));
while ($row = Sql_Fetch_Array($req)) {
if (is_file($row["remotefile"])) {
# if the "remote file" is actually local, we want to refresh the attachment, so we set
# filename to nothing
$row["filename"] = "";
}
Sql_Query(sprintf('insert into %s (filename,remotefile,mimetype,description,size)
values("%s","%s","%s","%s",%d)', $GLOBALS["tables"]["attachment"], addslashes($row["filename"]), addslashes($row["remotefile"]), addslashes($row["mimetype"]), addslashes($row["description"]), $row["size"]));
$attid = Sql_Insert_Id($GLOBALS['tables']['attachment'], 'id');
Sql_Query(sprintf('insert into %s (messageid,attachmentid) values(%d,%d)', $GLOBALS["tables"]["message_attachment"], $newid, $attid));
}
logEvent("Message {$msgid} was successfully rescheduled as message {$newid}");
## remember we duplicated, in order to avoid doing it again (eg when requeuing)
setMessageData($msgid, 'repeatedid', $newid);
}
开发者ID:dehvCurtis,项目名称:phplist,代码行数:84,代码来源:connect.php
示例8: verifyCsrfGetToken
<?php
verifyCsrfGetToken();
# generate text content
$msgid = sprintf('%d', $_GET['id']);
$messagedata = loadMessageData($msgid);
//sleep(10); // to test the busy image
if (preg_match('/\\[URL:(.+)\\]/', $messagedata['message'], $regs)) {
$content = fetchUrl($regs[1]);
# $textversion = 'Fetched '.$regs[1];
$textversion = HTML2Text($content);
} else {
$textversion = HTML2Text($messagedata['message']);
}
setMessageData($msgid, 'textmessage', $textversion);
## convert to feedback in the textarea
## @@FIXME this fails when the text is large, or contains £
$textversion = trim($textversion);
$textversion = preg_replace("/\n/", '\\n', $textversion);
$textversion = preg_replace("/\r/", '', $textversion);
$textversion = htmlentities($textversion, ENT_IGNORE, 'UTF-8', true);
$status = '<script type="text/javascript">
$("#textmessage").html("' . str_replace('"', '"', $textversion) . '");
//$("#textmessage").load("./?page=pageaction&action=messagedata&field=textmessage&id=' . $msgid . '");
$("#generatetextversion").hide();
</script>
';
开发者ID:gillima,项目名称:phplist3,代码行数:29,代码来源:generatetext.php
示例9: date
}
if ($sent > 0 && $totaltime > 0) {
$msgperhour = (int) (3600 / $totaltime) * $sent;
$secpermsg = $totaltime / $sent;
$timeleft = ($num_users - $sent) * $secpermsg;
$eta = date('D j M H:i', time() + $timeleft);
} else {
$msgperhour = 0;
$secpermsg = 0;
$timeleft = 0;
$eta = $GLOBALS['I18N']->get('unknown');
}
## 16850 - convert to string, to avoid an SQL error
$msgperhour = "{$msgperhour} ";
setMessageData($id, 'ETA', $eta);
setMessageData($id, 'msg/hr', $msgperhour);
if ($message['status'] != 'inprocess') {
$html = $GLOBALS['I18N']->get($message['status']);
if ($message['secstowait'] > 0) {
$secstowait = secs2time($message['secstowait']);
$html .= '<br/>' . sprintf($GLOBALS['I18N']->get('%s left until embargo'), $secstowait);
}
foreach ($GLOBALS['plugins'] as $plname => $plugin) {
$html .= $plugin->messageStatus($id, $message['status']);
}
if ($message['status'] != 'submitted' && $message['status'] != 'draft') {
$html .= '<br/>' . PageLinkButton('messages', $GLOBALS['I18N']->get('requeue'), 'resend=' . $message['id'], '', s('Requeue'));
}
if (!empty($messagedata['to process'])) {
$html .= '<br/>' . $messagedata['to process'] . ' ' . $GLOBALS['I18N']->get('still to process') . '<br/>' . $GLOBALS['I18N']->get('sent') . ': ' . $totalsent;
}
开发者ID:gillima,项目名称:phplist3,代码行数:31,代码来源:msgstatus.php
示例10: processSendingCampaignFinished
function processSendingCampaignFinished($messageid, array $messagedata)
{
$fixDates = getConfig('dateplaceholder_fixdatesonarchive');
if ($fixDates) {
setMessageData($messageid, 'subject', $this->dateParse($messagedata['subject']));
setMessageData($messageid, 'message', $this->dateParse($messagedata['message']));
setMessageData($messageid, 'textmessage', $this->dateParse($messagedata['textmessage']));
setMessageData($messageid, 'footer', $this->dateParse($messagedata['footer']));
}
}
开发者ID:bramley,项目名称:phplist-plugin-dateplaceholder,代码行数:10,代码来源:dateplaceholder.php
示例11: replaceMessageAreas
public function replaceMessageAreas($new)
{
setMessageData($this->messageId, $this->name, $new);
}
开发者ID:bramley,项目名称:phplist-plugin-contentareas,代码行数:4,代码来源:MessageModel.php
注:本文中的setMessageData函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论