<?php if (cfr('CUDISCOUNTS')) { if (isset($_GET['username'])) { $login = $_GET['username']; $alterconfig = $ubillingConfig->getAlter(); if ($alterconfig['CUD_ENABLED']) { $discounts = new CumulativeDiscounts(); $discounts->setLogin($login); show_window(__('Cumulative discount'), $discounts->renderReport()); show_window('', web_UserControls($login)); } else { show_error(__('This module disabled')); } } else { show_error(__('Strange exeption')); } } else { show_error(__('You cant control this module')); }
*/ if ($_GET['action'] == 'discountprocessing') { if ($alterconf['DISCOUNTS_ENABLED']) { //default debug=true zb_DiscountProcessPayments(true); die('OK:DISCOUNTS_PROCESSING'); } else { die('ERROR:DISCOUNTS_DISABLED'); } } /* * Cumulatiove discounts processing */ if ($_GET['action'] == 'cudiscounts') { if ($alterconf['CUD_ENABLED']) { $discounts = new CumulativeDiscounts(); $discounts->processDiscounts(); die('OK:CUDISCOUNTS'); } else { die('ERROR:CUDISCOUNTS_DISABLED'); } } /* * Crime And Punishment processing */ if ($_GET['action'] == 'crimeandpunishment') { if ($alterconf['CAP_ENABLED']) { $dostoevsky = new CrimeAndPunishment(); $dostoevsky->processing(); die('OK:CRIMEANDPUNISHMENT'); } else {