aboutsummaryrefslogtreecommitdiffstats
path: root/mod/post.php
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2014-01-30 20:41:40 +0100
committerMichael Meer <michael@meer.name>2014-01-30 20:41:40 +0100
commitc0f02d774a0af0f0959a7690dadb30586ee0b6b1 (patch)
tree670e6bc3fdd9604acd8b21a3ea48dda1b18cde7a /mod/post.php
parentda1e7cc211b7d74c81c942c4eece392b603ecc59 (diff)
downloadvolse-hubzilla-c0f02d774a0af0f0959a7690dadb30586ee0b6b1.tar.gz
volse-hubzilla-c0f02d774a0af0f0959a7690dadb30586ee0b6b1.tar.bz2
volse-hubzilla-c0f02d774a0af0f0959a7690dadb30586ee0b6b1.zip
started analysis of ping response and clean up more logger
Diffstat (limited to 'mod/post.php')
-rw-r--r--mod/post.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/post.php b/mod/post.php
index cce183e46..cb0dc8302 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -9,8 +9,6 @@ require_once('include/zot.php');
function post_init(&$a) {
- logger('POST inside',LOGGER_DEBUG);
- logger('POST given parameter: ' . print_r($_REQUEST,true), LOGGER_DEBUG);
// Most access to this endpoint is via the post method.
// Here we will pick out the magic auth params which arrive
@@ -257,6 +255,11 @@ function post_init(&$a) {
$a->set_groups(init_groups_visitor($_SESSION['visitor_id']));
info(sprintf( t('Welcome %s. Remote authentication successful.'),$x[0]['xchan_name']));
logger('mod_zot: auth success from ' . $x[0]['xchan_addr']);
+ q("update hubloc set hubloc_status = (hubloc_status | %d ) where hubloc_id = %d ",
+ intval(HUBLOC_WORKS),
+ intval($x[0]['hubloc_id'])
+ );
+
} else {
if($test) {
@@ -447,14 +450,12 @@ function post_init(&$a) {
function post_post(&$a) {
- logger('mod_zot: ' . print_r($_REQUEST,true), LOGGER_DEBUG);
$encrypted_packet = false;
$ret = array('success' => false);
$data = json_decode($_REQUEST['data'],true);
- logger('mod_zot: data: ' . print_r($data,true), LOGGER_DATA);
/**
* Many message packets will arrive encrypted. The existence of an 'iv' element
@@ -483,7 +484,6 @@ function post_post(&$a) {
$data = array('type' => 'bogus');
}
- logger('mod_zot: decoded data: ' . print_r($data,true), LOGGER_DATA);
$msgtype = ((array_key_exists('type',$data)) ? $data['type'] : '');