<?php $altCfg = $ubillingConfig->getAlter(); if ($altCfg['DEALWITHIT_ENABLED']) { if (cfr('DEALWITHIT')) { $dealWithIt = new DealWithIt(); if (wf_CheckGet(array('username'))) { $login = $_GET['username']; //creating new task if (wf_CheckPost(array('newschedlogin'))) { $createResult = $dealWithIt->catchCreateRequest(); if ($createResult) { show_error($createResult); } else { rcms_redirect(DealWithIt::URL_ME . '&username='******'deletetaskid'))) { $dealWithIt->deleteTask($_GET['deletetaskid']); rcms_redirect(DealWithIt::URL_ME . '&username='******'Create new task'), $dealWithIt->renderCreateForm($login)); show_window(__('Held jobs for this user'), $dealWithIt->renderTasksList($login)); show_window('', web_UserControls($login)); } else { if (wf_CheckGet(array('ajinput'))) { $dealWithIt->catchAjRequest(); } else { show_error(__('Something went wrong') . ': EX_GET_NO_USERNAME');
die('ERROR:NO_USERSIDE_API_ENABLED'); } } 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); }
<?php $altCfg = $ubillingConfig->getAlter(); if ($altCfg['DEALWITHIT_ENABLED']) { if (cfr('DEALWITHIT')) { $dealWithIt = new DealWithIt(); show_window(__('Available Held jobs for all users'), $dealWithIt->renderTasksList()); } else { show_error(__('Access denied')); } } else { show_error(__('This module is disabled')); }