[Hide Content]--- ../phplist-2.10.4/lists/admin/messages.php Mon Nov 19 18:22:26 2007
+++ lists/admin/messages.php Mon Nov 19 18:38:40 2007
@@ -77,6 +77,11 @@
print "<hr /><br />\n";
}
+if (isset($_GET['duplicate'])) {
+ $result = Sql_query("insert into phplist_message (id,subject,fromfield,tofield,replyto,message,textmessage,footer,entered,modified,embargo,repeatuntil,status,htmlformatted,sendformat,template,owner) select NULL,subject,fromfield,tofield,replyto,message,textmessage,footer,now(),now(),now(),now(),'draft',htmlformatted,sendformat,template,owner from phplist_message where id=".intval($_GET['duplicate']));
+}
+
+
if (isset($_GET['resend'])) {
$resend = sprintf('%d',$_GET['resend']);
# requeue the message in $resend
@@ -93,6 +98,8 @@
print"<br /><hr /><br /><p>\n";
}
+
+
if (isset($_GET['suspend'])) {
$suspend = sprintf('%d',$_GET['suspend']);
print $GLOBALS['I18N']->get('Suspending')." $suspend ..";
@@ -269,7 +276,8 @@
%s<br />
%s<br />
%s
- <a href="javascript:deleteRec(\'%s\');">'.$GLOBALS['I18N']->get("delete").'</a>
+ <a href="javascript:deleteRec(\'%s\');">'.$GLOBALS['I18N']->get("delete").'</a><br>
+ %s
</td>
</tr>',
$status.
@@ -278,7 +286,9 @@
$msg['status'] != 'inprocess' ? PageLink2("messages",$GLOBALS['I18N']->get("Requeue"),"resend=".$msg["id"]) : $totalsent." ".$GLOBALS['I18N']->get("sent"),
$msg["status"] != 'prepared' ? PageLink2("send",$GLOBALS['I18N']->get("Edit"),"id=".$msg["id"]) : PageLink2("preparesend",$GLOBALS['I18N']->get("Edit"),"id=".$msg["id"]),
$clicks[0] && CLICKTRACK ? PageLink2("mclicks",$GLOBALS['I18N']->get("click stats"),"id=".$msg["id"]).'<br/>':'',
- PageURL2("messages$url_keep","","delete=".$msg["id"])
+ PageURL2("messages$url_keep","","delete=".$msg["id"]),
+ PageLink2("messages",'Duplicate','type=draft&duplicate='.$msg["id"])
+
);
}
}