Example #1
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');
 }