} } if ($_GET['action'] == 'writevlanmachistory') { if ($alterconf['VLANMACHISTORY']) { $history = new VlanMacHistory(); $history->WriteVlanMacData(); die('OK:WRITING NEW MACS'); } else { die('ERROR:NO_VLAN_MAC_HISTORY ENABLED'); } } //deal with it delayed tasks processing if ($_GET['action'] == 'dealwithit') { if ($alterconf['DEALWITHIT_ENABLED']) { $dealWithIt = new DealWithIt(); $dealWithIt->tasksProcessing(); die('OK:DEALWITHIT'); } else { die('ERROR:DEALWITHIT DISABLED'); } } //Megogo userstats control options if ($_GET['action'] == 'mgcontrol') { if ($alterconf['MG_ENABLED']) { if (wf_CheckGet(array('param', 'tariffid', 'userlogin'))) { if ($_GET['param'] == 'subscribe') { $mgIface = new MegogoInterface(); $mgSubResult = $mgIface->createSubscribtion($_GET['userlogin'], $_GET['tariffid']); die($mgSubResult); } if ($_GET['param'] == 'unsubscribe') {