Ejemplo n.º 1
0
        }
        //subscriptions manual control
        if (wf_CheckGet(array('subview'))) {
            $subId = $_GET['subid'];
            if (wf_CheckGet(array('subid', 'maction'))) {
                $mactionResult = $interface->catchManualAction();
                if (!$mactionResult) {
                    rcms_redirect($interface::URL_ME . '&' . $interface::URL_SUBVIEW . '&subid=' . $subId);
                } else {
                    show_window(__('Something went wrong'), $mactionResult);
                }
            }
            show_window(__('Edit'), $interface->renderSubManagerForm($subId));
            show_window('', wf_Link($interface::URL_ME . '&' . $interface::URL_SUBS, __('Back'), false, 'ubButton'));
        }
        //subscriptions report
        if (wf_CheckGet(array('reports'))) {
            if ($altCfg['MG_SPREAD']) {
                //daily accounting report
                show_window(__('Subscriptions report'), $interface->renderSubscribtionsReportDaily());
            } else {
                //montly accounting report
                show_window(__('Subscriptions report'), $interface->renderSubscribtionsReportMonthly());
            }
        }
    } else {
        show_error(__('You cant control this module'));
    }
} else {
    show_error(__('This module disabled'));
}