diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-22 02:32:04 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-22 02:32:04 -0700 |
commit | 0b1b11ea53ee3fd466eb338ac5ce67e62af87413 (patch) | |
tree | 7bdda0d64e1bf27f860af620dcab160c470664cc /mod | |
parent | 146ff6f70308647b27374a1bba386c156498bd2e (diff) | |
download | volse-hubzilla-0b1b11ea53ee3fd466eb338ac5ce67e62af87413.tar.gz volse-hubzilla-0b1b11ea53ee3fd466eb338ac5ce67e62af87413.tar.bz2 volse-hubzilla-0b1b11ea53ee3fd466eb338ac5ce67e62af87413.zip |
heavy lifting for delivery reports
Diffstat (limited to 'mod')
-rw-r--r-- | mod/dreport.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/dreport.php b/mod/dreport.php new file mode 100644 index 000000000..7e245fbe0 --- /dev/null +++ b/mod/dreport.php @@ -0,0 +1,32 @@ +<?php + +function dreport_content(&$a) { + + if(! local_channel()) { + notice( t('Permission denied') . EOL); + return; + } + + $channel = $a->get_channel(); + + $mid = ((argc() > 1) ? argv(1) : ''); + + if(! $mid) { + notice( t('Invalid message') . EOL); + return; + } + + $r = q("select * from dreport where dreport_xchan = '%s' and dreport_mid = '%s'", + dbesc($channel['channel_hash']), + dbesc($mid) + ); + + if(! $r) { + notice( t('no results') . EOL); + return; + } + + return print_r($r,true); + + +}
\ No newline at end of file |