aboutsummaryrefslogblamecommitdiffstats
path: root/mod/post.php
blob: c5430d46e8c2dfdb3e042e5a17cbb6de08c4e848 (plain) (tree)
1
2
3
4
5
6
7
8






               
                                


                         
                                                         
 
                                                                    
 
                                   
 

                                           
 


                                          
 

 
 
<?php

/**
 * Zot endpoint
 */


require_once('include/zot.php');
	
function post_post(&$a) {

	$ret = array('result' => false, 'message' => '');

	$msgtype = ((x($_REQUEST,'type')) ? $_REQUEST['type'] : '');

	if($msgtype === 'notify') {

		// add to receive queue
		// qreceive_add($_REQUEST);

		$ret['result'] = true;
		json_return_and_die($ret);
	}

}