getComponentCount($device['device_id']); $alert_class = ''; if ($device['disabled'] == '1') { $alert_class = 'alert-info'; } else { if ($device['status'] == '0') { $alert_class = 'alert-danger'; } elseif ($device['ignore'] == '1') { $alert_class = 'alert-warning'; } } echo '
'; echo '
'; require 'includes/device-header.inc.php'; echo '
'; echo '
'; if (device_permitted($device['device_id'])) { echo ''; }//end if if (device_permitted($device['device_id']) || $check_device == $vars['device']) { echo '
'; require 'pages/device/'.mres(basename($tab)).'.inc.php'; echo '
'; } else { require 'includes/error-no-perm.inc.php'; } }//end if