<?php $current_account = isset($_REQUEST['shub_account_id']) ? (int) $_REQUEST['shub_account_id'] : false; $shub_ucm = SupportHub::getInstance()->message_managers['ucm']; if ($current_account !== false) { $shub_ucm_account = new shub_ucm_account($current_account); if ($shub_ucm_account->get('shub_extension') != 'ucm') { die('Wrong extension:' . $shub_ucm_account->get('shub_extension')); } if (isset($_GET['manualrefresh'])) { $network_key = isset($_REQUEST['network_key']) ? (int) $_REQUEST['network_key'] : 0; if (!$network_key) { // update?? products? $shub_ucm_account->confirm_api(); $shub_ucm_account->load_available_items(); } else { /* @var $items shub_item[] */ $items = $shub_ucm_account->get('items'); if (!$network_key || !$items || !isset($items[$network_key])) { die('No items found to refresh'); } ?> Manually refreshing item data... please wait... <?php $items[$network_key]->run_cron(true); } } else { if (isset($_GET['do_connect'])) { // connect to ucm. and if that isnt' found ?> <div class="wrap">