$logs[$msg]->first = $time; } if ($time > $logs[$msg]->last) { $logs[$msg]->last = $time; } } $prevError =& $logs[$msg]; } $log->next(); } if ($cache !== null) { $cacheData = serialize(['seek' => $log->getSize(), 'logs' => $logs, 'types' => $types, 'typecount' => $typecount]); file_put_contents($cache, $cacheData); } $log = null; osort($logs, ['last' => SORT_DESC]); $total = count($logs); ksort($types); $host = function_exists('gethostname') ? gethostname() : (php_uname('n') ?: (empty($_SERVER['SERVER_NAME']) ? $_SERVER['HOST_NAME'] : $_SERVER['SERVER_NAME'])); ?> <!doctype html> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="cleartype" content="on"> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta name="generator" content="https://github.com/amnuts/phperror-gui" /> <title>PHP error log on <?php echo htmlentities($host); ?>
$acards_details = $redis->hGet('acards_details', $i2smodule); } else { $acards_details = $redis->hGet('acards_details', $card); } if (!empty($acards_details)) { $details = json_decode($acards_details); // debug // echo "acards_details\n"; // print_r($details); if ($details->sysname === $card) { if ($details->type === 'integrated_sub') { $sub_interfaces = $redis->sMembers($card); foreach ($sub_interfaces as $int) { $sub_int_details = json_decode($int); // TODO !!! check $audio_cards[] = $sub_int_details; } } if ($details->extlabel !== 'none') { $acard_data->extlabel = $details->extlabel; } } } $audio_cards[] = $acard_data; } osort($audio_cards, 'extlabel'); // debug // print_r($audio_cards); $template->acards = $audio_cards; $template->ao = $redis->get('ao'); }