<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
/*
  MailBeez Automatic Trigger Email Campaigns
  http://www.mailbeez.com

  Copyright (c) 2010 MailBeez

  inspired and in parts based on
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License

  v2.5
 */


// this page is not in the context of the shopping system
// you can't use the shop systems functions
//
// if you would like to redirect to a shop page
// please specify you url here
// the target page needs to use the logic below 
// to display a confirmation message
/*
  $url = 'http://www.yourshop.com/block_confirmation_page.php'; // example
  header('Location: ' . $url . '?p=' . $_GET['p'] . '&result=' . $_GET['result'] . '&module=' . mh_get('module'));
  exit();
 */

list($customers_id, $email_address, $mode, $behaviour) = explode('|', base64_decode(mh_get('p')));

$result = mh_get('result');

$msg = 0;
switch ($result) {
  case 'ok':
    $msg = 1;
    break;
  case '-1':
    $msg = 2;
    break;
  case 'failed':
    $msg = 3;
    break;
}
?>
<html>
  <head>
    <title>MailHive Un-Block</title>
  </head>

  <style>

    .mailbeez_message {
      margin: auto;
      width: 500px;
      padding: 30px;
      font-family: arial;
      border: 1px solid red;

    }

  </style>

  <body>

    <div class="mailbeez_message">
      Dear Customer,<br />
      <br />
      <?php if ($msg == 1) { ?>
        you will again receive MailBeez Emails.
      <?php } ?>
      <?php if ($msg == 2) { ?>
        you will again receive MailBeez Emails.
        <br />
        We have already unblocked MailBeez for you.
      <?php } ?>
      <?php if ($msg == 3) { ?>
        we can't find your email in our system, please contact our support.
      <?php } ?>
      <br />
      <br />
<!--      your email: --><?php //echo $email_address ?>
      <br />
      <br />
      <br />
      <!-- please keep this link - or donate on www.mailbeez.com -->
      powered by <a href="http://www.MailBeez.com" target="_blank">MailBeez.com</a>

      <div>

        </body>
        </html>
