2015-08-23 22:38:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file mod/post.php
|
|
|
|
*
|
|
|
|
* @brief Zot endpoint.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once('include/zot.php');
|
|
|
|
|
|
|
|
function post_init(&$a) {
|
|
|
|
|
|
|
|
if (array_key_exists('auth', $_REQUEST)) {
|
2016-01-12 02:47:38 +01:00
|
|
|
require_once('Zotlabs/Zot/Auth.php');
|
|
|
|
$x = new Zotlabs\Zot\Auth($_REQUEST);
|
|
|
|
exit;
|
2015-08-23 22:38:18 +02:00
|
|
|
}
|
2016-01-12 02:47:38 +01:00
|
|
|
|
2015-08-23 22:38:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function post_post(&$a) {
|
|
|
|
|
2016-01-12 02:47:38 +01:00
|
|
|
require_once('Zotlabs/Zot/Receiver.php');
|
|
|
|
require_once('Zotlabs/Zot/ZotHandler.php');
|
2015-08-23 22:38:18 +02:00
|
|
|
|
2016-01-12 02:47:38 +01:00
|
|
|
$z = new Zotlabs\Zot\Receiver($_REQUEST['data'],get_config('system','prvkey'), new Zotlabs\Zot\ZotHandler());
|
2015-11-15 19:51:39 +01:00
|
|
|
|
2016-01-12 02:47:38 +01:00
|
|
|
// notreached;
|
2015-08-23 22:38:18 +02:00
|
|
|
|
2016-01-12 02:47:38 +01:00
|
|
|
exit;
|
2015-08-23 22:38:18 +02:00
|
|
|
|
|
|
|
}
|