pubkey from dunikey

This commit is contained in:
qo-op 2020-05-28 20:00:30 +02:00
parent b270216e4d
commit 3d2be75fec
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ if (!empty($_GET['pubkey'])){
// ASTROPORT UGGLY PATCH.... MMMMmmmm. but it should works.
$YOU = shell_exec('ps auxf --sort=+utime | grep -w ipfs | grep -v -E "color=auto|grep" | tail -n 1 | cut -d " " -f 1');
$pubkey = shell_exec('cat /home/'.$YOU.'/secret.astroport.key | grep G1PUB | cut -d \'"\' -f 2');
$pubkey = shell_exec('cat /home/'.$YOU.'/.ssb/secret.dunikey | grep "pub:" | cut -d " " -f 2');
$contribution_url = 'https://' . $api_node . '/api/#/v1/payment/' . $pubkey . '?amount=10|20|50|100|1000&comment=don&redirect_url=https%3A%252F%252F' . $api_node . '&cancel_url=https%3A%252F%252F' . $api_node;
$display_pubkey = (!empty($_GET['display_pubkey']));
if ($display_qrcode){