Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
airmobeuag
/
2020
/
commande_v2
/
admin
/
✏️
Editing: lv_surv.php
<meta http-equiv="Refresh" content="120; url=lv_surv.php?admin=<?=$_REQUEST['admin']?>"> <style> body,tr { font-size: 0.8em; font-family: arial; } </style> <?php error_reporting(E_ALL); ini_set("display_errors", 0); require '../vendor/autoload.php'; require ("../lib/gestion.lib.php"); echo "<h1>Surveillance</h1>"; echo "<h3>..STRIPE(Prod) / CdeV2 20 dernières commandes</h3>"; echo date('d/m/Y H:i').'<br>'; if(md5($_REQUEST['admin'])!="3e20fdb3880682a70e9482c30c7451f1") die('Err Auth !'); // \Stripe\Stripe::setApiKey('sk_test_wtOLZRJRmrRm5va5cDWUKeNl'); \Stripe\Stripe::setApiKey('sk_live_jmMEEsrBrru0qcmySOPhViz1'); $lstPaye = \Stripe\PaymentIntent::all(['limit' => 20]); $Class = new ClassCdeV2(); $T = $Class->Surv(); $TB[] = "<table width='100%' border='1'>"; foreach($lstPaye->data as $k=>$dtl) { //$bc = trim($dtl->description); //if(is_array($T[$bc]) ) { $TB[] = "<tr>"; $TB[] = "<td>" . date('d/m/Y H:i:s', $dtl->created ). "</td>"; $TB[] = "<td>" . $bc . "</td>"; $TB[] = "<td>" . $dtl->id . "</td>"; $TB[] = "<td>" . $dtl->object . "</td>"; $TB[] = "<td>" . $dtl->amount . "</td>"; $TB[] = "<td>" . $dtl->charges->data[0]->billing_details->email . "</td>"; $TB[] = "<td>" . $dtl->charges->data[0]->paid . "</td>"; $TB[] = "<td>" . $T[$bc]['paiement'] . "</td>"; $TB[] = "</tr>"; //} } $TB[] = "</table>"; echo join('',$TB); // Array echo "<pre>"; print_r($T); echo "</pre>"; ?>
💾 Save
❌ Cancel