if ($ret) { $this->title['host'][$target_id] = $ret['host_name']; } } return $this->title['host'][$target_id]; break; case 'host-instance': if (empty($this->title['instance'][$target_id])) { $ret = pdo_get_instance_byid($this->pdo, $target_id); if ($ret) { $this->title['instance'][$target_id] = $ret['service_name'] . ':' . $ret['port_num']; } } return $this->title['instance'][$target_id]; break; case 'global': return 'global'; break; } } private function get_color($i) { $lib = array('#333333', '#ff6600', '#fcd202', '#b0de09', '#0d8ecf', '#21CF12', '#666699', '#003333', '#990066', '#009966', '#EB2D2D', '#4A57E9', '#2B0EA0', '#587A01'); return !empty($lib[$i]) ? $lib[$i] : $lib[$i % 10]; } } $param = json_decode($params['param'], true); $r = new report(); $r->_init_($cfg['alert'], $pdo_log, $pdo); $ret = $r->start($param); require_once SC_PATH . '/ajax/report.phtml';