Example #1
0
<?php

$altCfg = $ubillingConfig->getAlter();
if ($altCfg['EXHORSE_ENABLED']) {
    if (cfr('EXHORSE')) {
        $exhorse = new ExistentialHorse();
        if (wf_CheckPost(array('yearsel'))) {
            $exhorse->setYear($_POST['yearsel']);
        } else {
            $exhorse->setYear(date("Y"));
        }
        show_window(__('Existential horse'), $exhorse->renderReport());
    } else {
        show_error(__('Access denied'));
    }
} else {
    show_error(__('This module is disabled'));
}
Example #2
0
     }
     //Megogo fee processing (monthly)
     if ($_GET['action'] == 'mgprocessing') {
         if ($alterconf['MG_ENABLED']) {
             $mgIface = new MegogoInterface();
             $mgFeeProcessingResult = $mgIface->subscriptionFeeProcessing();
             die($mgFeeProcessingResult);
         } else {
             die('ERROR: MEGOGO DISABLED');
         }
     }
     //existential horse
     if ($_GET['action'] == 'exhorse') {
         if ($alterconf['EXHORSE_ENABLED']) {
             if (date("d") == date("t")) {
                 $exhorse = new ExistentialHorse();
                 $exhorse->runHorse();
             }
             die('OK: EXHORSE');
         } else {
             die('ERROR: EXHORSE DISABLED');
         }
     }
     ////
     //// End of actions
     ////
     /*
      * Exeptions handling
      */
 } else {
     die('ERROR:GET_NO_ACTION');