123456789101112131415 |
- <?php
- if (cfr('SWITCHESEDIT')) {
- if (ubRouting::checkGet('switchid')) {
- $history = new SwitchHistory(ubRouting::get('switchid', 'int'));
- $report = $history->renderReport();
- show_window(__('History of switch life'), $report);
- } else {
- show_error(__('Something went wrong') . ': EX_NO_SWITCHID');
- }
- } else {
- show_error(__('Access denied'));
- }
|