<?php global $ubillingConfig; $altCfg = $ubillingConfig->getAlter(); if ($altCfg['VLANMACHISTORY']) { if (cfr('VLANMACHISTORY')) { $login = $_GET['username']; $history = new VlanMacHistory(); $history->RenderHistory($login); show_window('', web_UserControls($login)); } else { show_error(__('You cant control this module')); } } else { show_error(__('This module is disabled')); }
/** * Returns Vlan online detection form * * @return string */ protected function getVlanOnline() { $result = ''; if ($this->alterCfg['VLAN_ONLINE_IN_PROFILE']) { $vlanGen = new VlanGen(); $vlan = $vlanGen->GetVlan($this->login); if (!empty($vlan)) { $history = new VlanMacHistory(); $cells = wf_TableCell(__('Detect online'), '30%', 'row2'); $cells .= wf_TableCell($history->GetUserVlanOnline($this->login, $vlanGen->GetVlan($this->login))); $rows = wf_TableRow($cells, 'row3'); $result = wf_TableBody($rows, '100%', '0'); } } return $result; }
die('OK:FREEZEMONTH'); } /** * UserSide get API handling */ if ($_GET['action'] == 'userside') { if ($alterconf['USERSIDE_API']) { $usersideapi = new UserSideApi(); $usersideapi->catchRequest(); } else { 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'); }