From f4561c3c2a43561ba36ad8deac1de0f0add9b660 Mon Sep 17 00:00:00 2001 From: Eric Morris Date: Wed, 19 Feb 2014 10:23:58 -0800 Subject: [PATCH] Rename coming-soon page to dispatch.php --- coming-soon.php | 222 +--------------------------------------- dispatch.php | 221 +++++++++++++++++++++++++++++++++++++++ includes/_footer.php | 2 +- includes/_subscribe.php | 2 +- 4 files changed, 224 insertions(+), 223 deletions(-) create mode 100644 dispatch.php diff --git a/coming-soon.php b/coming-soon.php index e930ac3e..ada47f88 100644 --- a/coming-soon.php +++ b/coming-soon.php @@ -1,221 +1 @@ - $email, "Resubscribe" => TRUE); - $data_string = json_encode($data); - - $ch = curl_init("https://d275c8b5e96298ccb017e1c85bb47adb3dcfafbde61b53e5@api.createsend.com/api/v3/subscribers/5c6a55836de01f72133628c8343c520b.json"); - - curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); - curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_HTTPHEADER, array( - 'Content-Type: application/json', - 'Content-Length: ' . strlen($data_string)) - ); - - $result = curl_exec($ch); - $success = strstr($result, '@'); - curl_close($ch); - } -?> - - - -
- - - - - -
-
-
- Menu-wht

Ink

-
-

Ink

-

Quickly create responsive emails that work on any device & client. Even Outlook.

- -

Ink is here! Get monthly updates about all that is email-y and responsive.

-

Get monthly updates about all that is email-y.

-
- Thanks! We\'ve received your email, and we\'ll let you know when Ink launches.

'; - } else { - if (!$success) { - $resp = json_decode($result, true); - $error = '

' . $resp['Message'] . '

'; - echo $error; - } - echo '
-
-
- -
-
- -
-
-
'; - } - ?> -
-
-
-
-
- - - - - - - - - - - -
- - - - - - + \ No newline at end of file diff --git a/dispatch.php b/dispatch.php new file mode 100644 index 00000000..ab5518b6 --- /dev/null +++ b/dispatch.php @@ -0,0 +1,221 @@ + $email, "Resubscribe" => TRUE); + $data_string = json_encode($data); + + $ch = curl_init("https://d275c8b5e96298ccb017e1c85bb47adb3dcfafbde61b53e5@api.createsend.com/api/v3/subscribers/5c6a55836de01f72133628c8343c520b.json"); + + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); + curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_HTTPHEADER, array( + 'Content-Type: application/json', + 'Content-Length: ' . strlen($data_string)) + ); + + $result = curl_exec($ch); + $success = strstr($result, '@'); + curl_close($ch); + } +?> + + + +
+ + + + + +
+
+
+ Menu-wht

Ink

+
+

Ink

+

Quickly create responsive emails that work on any device & client. Even Outlook.

+ +

Ink is here! Get monthly updates about all that is email-y and responsive.

+

Get monthly updates about all that is email-y.

+
+ Thanks! We\'ve received your email, and we\'ll keep you up to date with news and responsive email resources.

'; + } else { + if (!$success) { + $resp = json_decode($result, true); + $error = '

' . $resp['Message'] . '

'; + echo $error; + } + echo '
+
+
+ +
+
+ +
+
+
'; + } + ?> +
+
+
+
+
+ + + + + + + + + + + +
+ + + + + + diff --git a/includes/_footer.php b/includes/_footer.php index 56666e22..372b49d2 100644 --- a/includes/_footer.php +++ b/includes/_footer.php @@ -31,7 +31,7 @@ diff --git a/includes/_subscribe.php b/includes/_subscribe.php index d00491fd..04fce842 100644 --- a/includes/_subscribe.php +++ b/includes/_subscribe.php @@ -5,7 +5,7 @@

Sign up to receive monthly Responsive Emails highlights.

-
+
-- 2.47.3