projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759f94f
)
MessagePreview.php
author
edward
<edward@roojs.com>
Mon, 18 Jul 2016 08:21:26 +0000
(16:21 +0800)
committer
edward
<edward@roojs.com>
Mon, 18 Jul 2016 08:21:26 +0000
(16:21 +0800)
MessagePreview.php
patch
|
blob
|
history
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
5447e92
..
87f2af8
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-40,6
+40,10
@@
class Pman_Core_MessagePreview extends Pman
$this->jerr('Missing Options');
}
+ if(!empty($_REQUEST['_send_test'])){
+ $this->sendTest();
+ }
+
$mid = $_REQUEST['_id'];
$mlq = DB_DataObject::factory($_REQUEST['_table']);
@@
-60,4
+64,15
@@
class Pman_Core_MessagePreview extends Pman
$this->jerr('error!!:' . $sent->toString());
}
+
+ function sendTest()
+ {
+ $table = DB_DataObject::factory($_REQUEST['_table']);
+
+ if($table->get($_REQUEST['_id'])){
+ $this->jerr('Invalid Message ID');
+ }
+
+
+ }
}