Beispiel #1
0
 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 {
         die('ERROR:CRIMEANDPUNISHMENT_DISABLED');