OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
sendy
/
includes
/
helpers
/
integrations
/
zapier
/
actions
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/18/2021 09:42:08 AM
rwxr-xr-x
📄
create-send-campaign.php
1.88 KB
11/18/2021 09:42:47 AM
rw-r--r--
📄
functions.php
700 bytes
11/18/2021 09:42:46 AM
rw-r--r--
📄
subscribe.php
656 bytes
11/18/2021 09:42:47 AM
rw-r--r--
📄
unsubscribe.php
555 bytes
11/18/2021 09:42:48 AM
rw-r--r--
Editing: unsubscribe.php
Close
<?php include('functions.php'); include('../../../../config.php'); //Get raw body POSTed by Zapier if (!isset($HTTP_RAW_POST_DATA)) $HTTP_RAW_POST_DATA = file_get_contents('php://input'); //Format JSON data $obj = json_decode($HTTP_RAW_POST_DATA); $list = $obj->{'list'}; $email = $obj->{'email'}; $app_path = APP_PATH; //Unsubscribe $postdata = http_build_query( array( 'email' => $email, 'list' => $list, 'boolean' => 'true' ) ); $result = file_get_contents_curl_post($app_path.'/unsubscribe', $postdata); ?>