<?php
/*
  MailBeez Automatic Trigger Email Campaigns
  http://www.mailbeez.com

  Copyright (c) 2010 - 2014 MailBeez

  Licensing Terms & Other Conditions of this
  Mailbeez Module:

  Unless you have our prior written consent, you must NOT directly or indirectly license,
  sub-license, sell, resell, or provide for free or make an offer to do any of these things.
  All of these things are strictly prohibited with this MailBeez Pro Module.

  One Purchase for one Shop - please contact cord@mailbeez.com for volume discounts and
  reseller agreements.

  OpenSource but not free - please respect this license agreement.

 */

//$cloudbeez_refresh_button = mb_admin_button(, MAILBEEZ_BUTTON_LIST_RECIPIENTS);
$cloudbeez_refresh_button = mb_admin_button(mh_href_link(FILENAME_MAILBEEZ, 'app=load_app&app_path=config_cloudbeez/admin_application_plugins/cloudbeez_refresh.php'), mh_lng('MAILBEEZ_CONFIG_CLOUDBEEZ_REFRESH_BUTTON'), '', 'link') . '';

$msg = '';
$refresh_msg = '';

if (mh_get('refresh') == 'ok') {
    $refresh_msg = '<b>' . mh_lng('MAILBEEZ_CONFIG_CLOUDBEEZ_REFRESH_OK') . '</b><br />';
    $msg = $refresh_msg;
}

$status_msg = $_SESSION['cache_cloudbeez_status_handler_time'];

if (mh_cfg('CLOUDLOADER_API_KEY') == '') {
    $msg = '<b>' . mh_lng('MAILBEEZ_CONFIG_CLOUDBEEZ_NO_APIKEY') . '</b><br />';
}


$contents[] = array('text' =>
    '<div class="mb_action_box text"><div align="center">' . mh_lng('MAILBEEZ_CONFIG_CLOUDBEEZ_REFRESH_AGO') . ' <abbr class="timeago" title="">' . date(DATE_ISO8601, $_SESSION['cache_cloudbeez_status_handler_time']) . '</abbr>' . '</div></div>' .
    '<div class="mb_action_box buttons" style="clear: both"><div align="center">' . $cloudbeez_refresh_button . '</div></div>' .
    '<div class="mb_action_box text"><div align="center">' . $msg . '</div></div>'
);
/*
 *     {if $smarty.session.language == 'german'}
         <script language="javascript" src="{$MH_CATALOG_URL}{$MH_ROOT_PATH}common/js/timeago/locales/jquery.timeago.de.js?ver={$MAILBEEZ_VERSION}"></script>
     {/if}
 */
