/[LeafOK_CVS]/fenglin/bbs/themes/default/view_article.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/default/view_article.view.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.27 by sysadm, Sat Apr 26 05:28:31 2025 UTC Revision 1.28 by sysadm, Sun Apr 27 02:35:47 2025 UTC
# Line 470  Line 470 
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"]}字节)
# Line 494  Line 493 
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":


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1