streams/mod/post.php

35 lines
525 B
PHP
Raw Normal View History

<?php
2011-09-26 09:25:43 +00:00
/**
* @file mod/post.php
*
* @brief Zot endpoint.
*
2011-09-26 09:25:43 +00:00
*/
2012-08-09 01:50:04 +00:00
require_once('include/zot.php');
function post_init(&$a) {
if (array_key_exists('auth', $_REQUEST)) {
2015-12-09 02:31:33 +00:00
require_once('Zotlabs/Zot/Auth.php');
$x = new Zotlabs\Zot\Auth($_REQUEST);
exit;
}
2015-12-09 02:31:33 +00:00
}
2015-12-07 03:59:46 +00:00
2011-09-26 09:25:43 +00:00
function post_post(&$a) {
2015-12-07 03:16:38 +00:00
require_once('Zotlabs/Zot/Receiver.php');
2015-12-08 00:01:54 +00:00
require_once('Zotlabs/Zot/ZotHandler.php');
2015-12-07 03:16:38 +00:00
2015-12-08 00:01:54 +00:00
$z = new Zotlabs\Zot\Receiver($_REQUEST['data'],get_config('system','prvkey'), new Zotlabs\Zot\ZotHandler());
2015-12-07 03:16:38 +00:00
// notreached;
2015-12-07 03:59:46 +00:00
exit;
2011-09-26 09:25:43 +00:00
}