/[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.37 by sysadm, Tue Jun 3 02:48:10 2025 UTC Revision 1.44 by sysadm, Sat Nov 1 07:53:40 2025 UTC
# Line 23  Line 23 
23    
24          $navigator_bar = <<<HTML          $navigator_bar = <<<HTML
25                  <a class="s2" href="main.php?sid={$result_set['data']['sid']}">{$BBS_name}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}">{$result_set["data"]["section_title"]}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}&ex={$result_set['data']['ex']}">{$section_scope}</a>                  <a class="s2" href="main.php?sid={$result_set['data']['sid']}">{$BBS_name}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}">{$result_set["data"]["section_title"]}</a>&gt;&gt;<a class="s2" href="list.php?sid={$result_set['data']['sid']}&ex={$result_set['data']['ex']}">{$section_scope}</a>
26            HTML;
27    
28            if ($_SESSION["BBS_priv"]->checkpriv($result_set["data"]["sid"], S_POST) &&
29                    (!$result_set["data"]["lock"]))
30            {
31            $navigator_bar .= <<<HTML
32                  <a class="s2" href="article_post.php?reply_id={$result_set['data']['id']}&quote=0" title="直接回复该文章">[快速回复]</a>                  <a class="s2" href="article_post.php?reply_id={$result_set['data']['id']}&quote=0" title="直接回复该文章">[快速回复]</a>
33          HTML;          HTML;
34            }
35    
36          if ($previous_id > 0)          if ($previous_id > 0)
37          {          {
38                  $navigator_bar .= <<<HTML                  $navigator_bar .= <<<HTML
# Line 179  Line 187 
187                          ["ontop", "article_service_ontop.php"],                          ["ontop", "article_service_ontop.php"],
188                          ["lock", "article_service_lock.php"],                          ["lock", "article_service_lock.php"],
189                          ["transship", "article_service_transship.php"],                          ["transship", "article_service_transship.php"],
190                            ["favorite", "article_service_favor.php"],
191                  ]);                  ]);
192    
193                  var opNeedRefresh = new Set([                  var opNeedRefresh = new Set([
# Line 461  Line 470 
470                                          <a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a>                                          <a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a>
471                                  HTML;                                  HTML;
472                          }                          }
473                            if ($article["tid"] == 0)
474                            {
475                                    $set_favorite_display = ($result_set["data"]["topic_favorite"] ? "none" : "inline");
476                                    $unset_favorite_display = ($result_set["data"]["topic_favorite"] ? "inline" : "none");
477    
478                                    $article_ctrl_bar .= <<<HTML
479                                            <a class="s4" id="set_favorite_{$article['aid']}" style="display: {$set_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 1);" title="收藏主题">收藏</a>
480                                            <a class="s4" id="unset_favorite_{$article['aid']}" style="display: {$unset_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 0);" title="取消收藏主题">取消收藏</a>
481                                    HTML;
482                            }
483                  }                  }
484                  else                  else
485                  {                  {
# Line 476  Line 495 
495                  $nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8');                  $nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8');
496                  $title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />");                  $title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />");
497                  $title_class = ($article["visible"] ? "title_normal" : "title_deleted");                  $title_class = ($article["visible"] ? "title_normal" : "title_deleted");
498                  $content_f = LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80);                  $content_f = LML($article["content"], 80);
499                  $content_class = ($article["visible"] ? "content_normal" : "content_deleted");                  $content_class = ($article["visible"] ? "content_normal" : "content_deleted");
500    
501                  $transship_info = "";                  $transship_info = "";


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

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