From 8211a0fc403c1a81e45a4e27f5f9acdd2b1e1bee Mon Sep 17 00:00:00 2001 From: qo-op Date: Sun, 24 Jan 2021 20:47:31 +0100 Subject: [PATCH] bashbillet --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index f958b23..ceb6a37 100644 --- a/index.php +++ b/index.php @@ -6,7 +6,8 @@ $mytime = new Datetime("now"); $timestamp = $mytime->format('U'); // CREATE 6 G1BILLETS in /tmp/g1billet/$timestamp -shell_exec(dirname(__FILE__)."./G1BILLETS.sh $_REQUEST['montant'] $timestamp"); +$bashbillet= dirname(__FILE__)."/G1BILLETS.sh"; +shell_exec($bashbillet $_REQUEST['montant'] $timestamp"); $attachment_location = "/tmp/g1billet/".$timestamp.".pdf"; if (file_exists($attachment_location)) {