/[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.7 by sysadm, Mon Apr 14 11:23:46 2025 UTC Revision 1.9 by sysadm, Tue Apr 15 11:22:54 2025 UTC
# Line 337  window.addEventListener("load", () => { Line 337  window.addEventListener("load", () => {
337          {          {
338                  $color_index = ($color_index + 1) % count($color);                  $color_index = ($color_index + 1) % count($color);
339    
340                    $user_viewable = (isset($result_set["data"]["author_list"][$article["uid"]]));
341    
342                  if ($article["tid"] != 0)                  if ($article["tid"] != 0)
343                  {                  {
344  ?>  ?>
# Line 356  window.addEventListener("load", () => { Line 358  window.addEventListener("load", () => {
358                                  </td>                                  </td>
359                                  <td width="75%">                                  <td width="75%">
360  <?  <?
                 if ($_SESSION["BBS_uid"] > 0 && $_SESSION["BBS_uid"] != $article["uid"])  
                 {  
 ?>  
                                         <img src="images/profile.gif" width="16" height="16"><a class="s4" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看作者资料">资料</a>  
 <?  
                 }  
361                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])
362                  {                  {
363  ?>  ?>
# Line 436  window.addEventListener("load", () => { Line 432  window.addEventListener("load", () => {
432                          </tr>                          </tr>
433                          <tr>                          <tr>
434                                  <td width="20%" align="center">                                  <td width="20%" align="center">
435                                          作者:&nbsp;<a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" target=_blank title="查看用户资料"><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></a>                                          作者:&nbsp;<a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" onclick='return <? echo ($user_viewable ? "true" : "false"); ?>' target=_blank title="查看用户资料"><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></a>
436                                  </td>                                  </td>
437                                  <td width="75%" class="body">                                  <td width="75%" class="body">
438                                          <span style="color:#606060;">标题:</span>                                          <span style="color:#606060;">标题:</span>
# Line 527  window.addEventListener("load", () => { Line 523  window.addEventListener("load", () => {
523                                          case "tif":                                          case "tif":
524                                          case "tiff":                                          case "tiff":
525  ?>  ?>
526                                          <img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">                                          <br /><img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid=<? echo $attachment["aid"]; ?>">
527  <?  <?
528                                                  break;                                                  break;
529                                  }                                  }


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

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