index.php 461 B

123456789101112131415161718
  1. <?php
  2. if (cfr('REPORTNOSWPORT')) {
  3. /*
  4. * controller and view section
  5. */
  6. $altercfg = $ubillingConfig->getAlter();
  7. if ($altercfg['SWITCHPORT_IN_PROFILE']) {
  8. $noSwitchPortReport = new SwitchPortReport();
  9. show_window(__('Users without port assigned'), $noSwitchPortReport->renderNoSwitchPort());
  10. } else {
  11. show_error(__('This module disabled'));
  12. }
  13. } else {
  14. show_error(__('You cant control this module'));
  15. }