index.php 391 B

123456789101112131415
  1. <?php
  2. if (cfr('SWITCHESEDIT')) {
  3. if (ubRouting::checkGet('switchid')) {
  4. $history = new SwitchHistory(ubRouting::get('switchid', 'int'));
  5. $report = $history->renderReport();
  6. show_window(__('History of switch life'), $report);
  7. } else {
  8. show_error(__('Something went wrong') . ': EX_NO_SWITCHID');
  9. }
  10. } else {
  11. show_error(__('Access denied'));
  12. }