aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-28 04:45:07 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-28 04:45:07 -0700
commitda766f1159b7f2dbc5a83fab6fa1a68d2294ed93 (patch)
tree1872ac28de9fa192215c672dcc6fb9d41a5465df /mod
parentaaa06c57e609a0c57dec355ff0db95938dd40b25 (diff)
downloadvolse-hubzilla-da766f1159b7f2dbc5a83fab6fa1a68d2294ed93.tar.gz
volse-hubzilla-da766f1159b7f2dbc5a83fab6fa1a68d2294ed93.tar.bz2
volse-hubzilla-da766f1159b7f2dbc5a83fab6fa1a68d2294ed93.zip
starting on email
Diffstat (limited to 'mod')
-rw-r--r--mod/message.php55
1 files changed, 55 insertions, 0 deletions
diff --git a/mod/message.php b/mod/message.php
new file mode 100644
index 000000000..b2cfcf402
--- /dev/null
+++ b/mod/message.php
@@ -0,0 +1,55 @@
+<?php
+
+require_once('view/acl_selectors.php');
+
+function message_init(&$a) {
+
+
+}
+
+
+
+
+
+
+
+function message_content(&$a) {
+
+ if(! local_user()) {
+ notice( t('Permission denied.') . EOL);
+ return;
+ }
+
+ if(($a->argc > 1) && ($a->argv[1] == 'new')) {
+
+ $tpl = file_get_contents('view/jot-header.tpl');
+
+ $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl()));
+
+ $select .= contact_select('messageto','message-to-select');
+ $tpl = file_get_contents('view/prv_message.tpl');
+ $o = replace_macros($tpl,array(
+ '$select' => $select
+
+ ));
+
+ return $o;
+ }
+
+ if($a->argc == 1) {
+
+ $r = q("SELECT * FROM `mail` WHERE `seen` = 0 AND `uid` = %d LIMIT %d , %d ",
+ intval($_SESSION['uid']),
+ intval($a->pager['start']),
+ intval($a->pager['itemspage'])
+ );
+ if(! count($r)) {
+ notice( t('No messages.') . EOL);
+ return;
+ }
+
+
+ }
+
+
+} \ No newline at end of file