aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 04:04:51 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 04:04:51 -0700
commit2869ccfe39cbda4974a82c303eeeb4e38966b126 (patch)
tree0038f63f531f8121e67a3931f19dfda019ab6044 /mod
parent8ead4745f82d113c943f79967e04ea985ec45ad0 (diff)
downloadvolse-hubzilla-2869ccfe39cbda4974a82c303eeeb4e38966b126.tar.gz
volse-hubzilla-2869ccfe39cbda4974a82c303eeeb4e38966b126.tar.bz2
volse-hubzilla-2869ccfe39cbda4974a82c303eeeb4e38966b126.zip
delivery reports - crude but mostly functional at least for zot deliveries
Diffstat (limited to 'mod')
-rw-r--r--mod/dreport.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/mod/dreport.php b/mod/dreport.php
index 7e245fbe0..3c74a9e33 100644
--- a/mod/dreport.php
+++ b/mod/dreport.php
@@ -26,7 +26,18 @@ function dreport_content(&$a) {
return;
}
- return print_r($r,true);
+
+ $o .= '<h2>' . sprintf( t('Delivery report for %1$s'),substr($mid,0,32)) . '...' . '</h2>';
+ $o .= '<table>';
+
+ foreach($r as $rr) {
+ $name = escape_tags(substr($rr['dreport_recip'],strpos($rr['dreport_recip'],' ')));
+ $o .= '<tr><td>' . $name . '</td><td>' . $rr['dreport_result'] . '</td><td>' . $rr['dreport_time'] . '</td></tr>';
+ }
+ $o .= '</table>';
+
+ return $o;
+
} \ No newline at end of file