3
function ShowTime($tm) {
4
return $tm->format("F j, Y h:i:s.uP");
8
$logfile = $_REQUEST['logfile'];
9
$logpos = $_REQUEST['logpos'];
11
$info = adeiGetLogInfo($logfile, $logpos);
13
?><br/><table class="loginfo"><tr>
15
<th><?echo translate("Time");?></th>
16
<td><?echo ShowTime($info['time']);?></td>
19
<th><?echo translate("Setup");?></th>
20
<td><?echo $info['setup'];?></td>
23
<th><?echo translate("Source");?></th>
24
<td><?echo $info['source'];?></td>
27
<th><?echo translate("Session");?></th>
28
<td><?echo $info['session'];?></td>
31
<th><?echo translate("Priority");?></th>
32
<td><?echo $info['priority'];?></td>
35
<th><?echo translate("Request");?></th>
37
if ($info['request']) echo $info['request'];
41
<th><?echo translate("Message");?></th>
43
if ($info['message']) echo $info['message'];
50
if ($info['exception']) {
51
echo "<h4>" . translate("Exception: ") . "</h4>";
53
$ae = unserialize($info['exception']);
54
echo translate("Code: %d", $ae->getCode()) . "<br/>";
55
echo translate("Message: %s", $ae->getMessage()) . "<br/>";
56
echo translate("Location: %s:%d", $ae->getFile(), $ae->getLine()) . "<br/>";
58
echo "<h4>" . translate("Backtrace: ") . "</h4>";
60
print_r($ae->getTrace());
65
echo "<h4>" . translate("GET options: ") . "</h4>";
67
print_r($info['GET']);
72
echo "<h4>" . translate("POST options: ") . "</h4>";
74
print_r($info['POST']);
78
if ($info['RAW_DATA']) {
79
echo "<h4>" . translate("POST data: ") . "</h4>";
81
print_r($info['RAW_DATA']);
85
if ($info['object']) {
86
echo "<h4>" . translate("Affected Object: ") . "</h4>";
89
print_r(unserialize($info['object']));
93
if ($info['result']) {
94
echo "<h4>" . translate("Result: ") . "</h4>";
95
if (preg_match("/(getimage|getlogo)/", $info['source'])) {
96
$data = pack("H*", $info['result']);
97
$image = new Imagick();
99
$image->readImageBlob($data);
100
$format = $image->getImageFormat();
101
$geometry = $image->getImageGeometry();
102
$size = $image->getImageSize();
103
echo translate("Image Information: %s, %dx%d, %s", $format, $geometry['width'], $geometry['height'], dsPrintSize($size)) . "<br/>";
104
# print_r($image->identifyImage());
106
//PNG print_r($image->getImageFormat());
108
echo "<img src=\"logimage.php?logfile=$logfile&logpos=$logpos\"/>";
110
$data = pack("H*", $info['result']);
112
echo htmlentities($data);
b'\\ No newline at end of file'