36 lines
924 B
PHP
36 lines
924 B
PHP
<?php
|
|
|
|
define("SITE_ROOT", realpath(dirname(__file__)));
|
|
require_once SITE_ROOT . "/lib/init.php";
|
|
$S->requireUser();
|
|
|
|
/*
|
|
$report = CrashReport::getReport((int)$_GET["id"]);
|
|
if (!$report)
|
|
{
|
|
print "<p>No such report</p>";
|
|
return;
|
|
}
|
|
|
|
|
|
$full = ReportParser::parse($report->id);
|
|
//print_r (array_keys($full));
|
|
|
|
print "<p> Reported: " . date("r", (int)$report->reported). "</p>";
|
|
*/
|
|
|
|
$stats = new CrashStats($filter);
|
|
|
|
if (false === $r = $stats->getSignature((int)$_GET["signature_id"]))
|
|
{
|
|
print "<p>No such signature</p>";
|
|
}
|
|
|
|
$parts = explode("|", $r->signature);
|
|
$txt = "";
|
|
if ($parts[1]) $txt .= preg_replace("/((::|<|>|,|\\(|\\)))/", "<wbr/>\\1<wbr/>", htmlentities($parts[1]));
|
|
if ($txt) $txt .= "<br/><br/>";
|
|
if ($parts[2]) $txt .= preg_replace("/((::|<|>|,|\\(|\\)))/", "<wbr/>\\1<wbr/>", htmlentities($parts[2]));
|
|
|
|
print "<p>Module: " . $parts[0];
|
|
if ($txt) print "<br/><br/>" . $txt . "</p>"; |