| 470 |
foreach ($article["attachments"] as $attachment) |
foreach ($article["attachments"] as $attachment) |
| 471 |
{ |
{ |
| 472 |
$filename = $attachment["filename"]; |
$filename = $attachment["filename"]; |
|
$ext = strtolower(substr($filename, (strrpos($filename, ".") ? strrpos($filename, ".") + 1 : 0))); |
|
| 473 |
|
|
| 474 |
$atta_list .= <<<HTML |
$atta_list .= <<<HTML |
| 475 |
<span id="attachment_{$attachment['aid']}"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid={$attachment['aid']}" target="_target">{$filename}</a> ({$attachment["size"]}字节) |
<span id="attachment_{$attachment['aid']}"><img src="images/closed.gif"><a class="s2" href="dl_file.php?aid={$attachment['aid']}" target="_target">{$filename}</a> ({$attachment["size"]}字节) |
| 493 |
|
|
| 494 |
if ($attachment["check"]) |
if ($attachment["check"]) |
| 495 |
{ |
{ |
| 496 |
|
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); |
| 497 |
switch ($ext) |
switch ($ext) |
| 498 |
{ |
{ |
| 499 |
case "bmp": |
case "bmp": |