diff --git a/index.php b/index.php index ceb6a37..46c9e87 100644 --- a/index.php +++ b/index.php @@ -6,8 +6,7 @@ $mytime = new Datetime("now"); $timestamp = $mytime->format('U'); // CREATE 6 G1BILLETS in /tmp/g1billet/$timestamp -$bashbillet= dirname(__FILE__)."/G1BILLETS.sh"; -shell_exec($bashbillet $_REQUEST['montant'] $timestamp"); +$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."'"); $attachment_location = "/tmp/g1billet/".$timestamp.".pdf"; if (file_exists($attachment_location)) {