aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Zfinger.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-27 08:19:22 +0000
committerMario <mario@mariovavti.com>2021-05-27 08:19:22 +0000
commit43ef82aaaa78cf5b11325183d1a05af1e6888fd0 (patch)
tree2c965c2d2dc9d3a08c77e44143c53b5f2d57edd8 /Zotlabs/Module/Zfinger.php
parent7171d790f46e48f1cd7c1d7fe638610faab86b82 (diff)
downloadvolse-hubzilla-43ef82aaaa78cf5b11325183d1a05af1e6888fd0.tar.gz
volse-hubzilla-43ef82aaaa78cf5b11325183d1a05af1e6888fd0.tar.bz2
volse-hubzilla-43ef82aaaa78cf5b11325183d1a05af1e6888fd0.zip
remove zfinger
Diffstat (limited to 'Zotlabs/Module/Zfinger.php')
-rw-r--r--Zotlabs/Module/Zfinger.php43
1 files changed, 0 insertions, 43 deletions
diff --git a/Zotlabs/Module/Zfinger.php b/Zotlabs/Module/Zfinger.php
deleted file mode 100644
index ce7117ad8..000000000
--- a/Zotlabs/Module/Zfinger.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-namespace Zotlabs\Module;
-
-use Zotlabs\Web\HTTPSig;
-use Zotlabs\Lib\Libzot;
-
-class Zfinger extends \Zotlabs\Web\Controller {
-
- function init() {
-
- require_once('include/zot.php');
- require_once('include/crypto.php');
-
- $x = zotinfo($_REQUEST);
-
- if($x && $x['guid'] && $x['guid_sig']) {
- $chan_hash = make_xchan_hash($x['guid'],$x['guid_sig']);
- if($chan_hash) {
- $chan = channelx_by_hash($chan_hash);
- }
- }
-
- $headers = [];
- $headers['Content-Type'] = 'application/json' ;
- $ret = json_encode($x);
-
- if($chan) {
- $headers['Digest'] = HTTPSig::generate_digest_header($ret);
- $h = HTTPSig::create_sig($headers,$chan['channel_prvkey'], channel_url($chan));
- HTTPSig::set_headers($h);
- }
- else {
- foreach($headers as $k => $v) {
- header($k . ': ' . $v);
- }
- }
-
- echo $ret;
- killme();
-
- }
-
-}