forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaczotwpw-license.php
More file actions
39 lines (31 loc) · 1014 Bytes
/
maczotwpw-license.php
File metadata and controls
39 lines (31 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
if (empty($_REQUEST['name'])) {
error_log("Name is not set!");
die("Name is not set!");
}
if (empty($_REQUEST['email'])) {
error_log("Email is not set!");
die("Email is not set!");
}
if (empty($_REQUEST['orderID'])) {
error_log("OrderID is not set!");
die("Order ID is not set!");
}
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$orderID = $_REQUEST['orderID'];
$security_request_hash = md5($email.$name.$orderID.'719279c718955653ca17889cc6f7629d');
$postRequest = "name=" . $name . "&email=" . $email . "&reference=" . $orderID . "&security_request_hash=" . $security_request_hash;
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, 'http://wallwiz.com/secure/fastspringReceiver.php');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postRequest);
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
else {
$response = 'Connection failed';
}
echo $response;