ugly patch.
This commit is contained in:
parent
3d2be75fec
commit
41f8ad49c8
|
@ -98,8 +98,8 @@ if (!empty($_GET['pubkey'])){
|
|||
$pubkey = $_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.'/.ssb/secret.dunikey | grep "pub:" | cut -d " " -f 2');
|
||||
// $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.'/.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']));
|
||||
|
|
|
@ -202,7 +202,7 @@
|
|||
<div class="row">
|
||||
<div class="col-xl-9 mx-auto">
|
||||
<div id="carte">
|
||||
<br><img src="./g1barre/image.php?pubkey=8qs69HriAdytcCLzvQGJ15XBwpjAVFx8JoVM2ahue1y7&target=15000&title=Compte%20Essaim%20G1sms%2B&node=g1.duniter.org&start_date=2019-01-01&display_pubkey=true&display_qrcode=true&logo=no-logo&background_color=000000&font_color=ffffff&progress_color=0777ff&border_color=98cbff">
|
||||
<br><img src="./g1barre/image.php?pubkey=6Wjem2gFeTRDBz9UvxxS1reVnDhNnjwny6AJJjTC5hDK&target=15000&title=Compte%20Essaim%20G1sms%2B&node=g1.duniter.org&start_date=2019-01-01&display_pubkey=true&display_qrcode=true&logo=no-logo&background_color=000000&font_color=ffffff&progress_color=0777ff&border_color=98cbff">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue