Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

FY的道具商店1.4终结版-BUG列表8.11(key:鲜花鸡蛋,隐身,限时置顶,主题鉴定)

[复制链接]
Jason690 发表于 2005-8-30 01:58:14 | 显示全部楼层
回复

使用道具 举报

womile 发表于 2005-8-30 20:36:58 | 显示全部楼层
安装完正常,可是没有[使用道具]这个选 项,步骤都对啊哈
回复

使用道具 举报

七喜仔 发表于 2005-9-6 21:51:38 | 显示全部楼层
Time: 2005-9-6 10:04pm
Script: /bbs/plugins.php

SQL: SELECT ui.*,m.avatar,m.money,m.credit,m.gift,m.password FROM cdb_members m LEFT JOIN ui ON m.uid=ui.uid WHERE m.uid='1'
Error: Table 'gzin.ui' doesn't exist
数据表缺失,请恢复备份数据

Similar error report has beed dispatched to administrator before.

一打開道具中心就係禁啦.....
回复

使用道具 举报

oytktk 发表于 2005-9-6 21:54:50 | 显示全部楼层
ui.*,

是不是UID啊?
回复

使用道具 举报

屁股超人 发表于 2005-9-7 19:02:11 | 显示全部楼层
楼主,附件里面有两个plugin.lang,请问应该用那一个?由于出现folder乱码的问题,我只有办法解压其中一个,即10KB那个,另外一个我开不到!请问用那一个才正确?

此外,请问一下,道具的价格可以调整的吗?在那里调整?

谢谢哟!
回复

使用道具 举报

godwhan 发表于 2005-9-8 13:50:21 | 显示全部楼层
妳好,我研究了兩天重裝了兩次,一直有這個問題出現,在要確認禮物送出的時候出現的,希望你們能幫我解決,感激不盡...>__<


Script: /html/g/plugins.php

SQL: UPDATE cdb_members SET newpm='1' WHERE uid IN ()
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Errno.: 1064

Similar error report has beed dispatched to administrator before.
回复

使用道具 举报

屁股超人 发表于 2005-9-9 17:48:31 | 显示全部楼层
没有人帮忙1回答新手的疑问?
回复

使用道具 举报

33201 发表于 2005-9-15 19:46:19 | 显示全部楼层
克隆虚拟形象怎么没办法用啊,点击无效啊.........
下面是我改过的viewthread.php的代码
麻烦看一下,谢谢,形象是AL8的最新版的.

  1. <?php

  2. /*
  3. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  4. :: [DISCUZ!]  Crossday Discuz! Board                                    ::
  5. :: (c) 2001-2005 Comsenz Technology Ltd (www.discuz.com)                ::
  6. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  7. :: Author:  Crossday (tech@discuz.com) Cnteacher (cnteacher@discuz.com) ::
  8. :: Version: 2.5F   2004/10/01 05:15                                     ::
  9. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  10. */
  11. //fix:  BY pk0909
  12. /*
  13. 1 发帖数衡量级别
  14. 2 转入最新帖
  15. */

  16. define('CURRSCRIPT',  'viewthread');

  17. require_once './include/common.php';
  18. require_once DISCUZ_ROOT.'./include/forum.php';
  19. require_once DISCUZ_ROOT.'./include/discuzcode.php';

  20. $discuz_action = 3;

  21. if ($tid && $forum){
  22.         $thread = $forum;
  23. }elseif($fid && defined('ViewLastPost')) {
  24.         $followforum = '';
  25.         foreach($_DCACHE['forums'] as $ffid => $fforum) {
  26.                 if($fforum['fup'] == $fid && $fforum['type'] == 'sub') {
  27.                         $followforum .= ','.$ffid;
  28.                 }
  29.         }
  30.         $followforumadd = $followforum ? "fid in ($fid{$followforum})" : "fid=$fid";
  31.         $query = $db->query("SELECT * FROM $table_threads WHERE $followforumadd ORDER BY lastpost DESC LIMIT 1");
  32.         if(!$thread = $db->fetch_array($query)) {
  33.                 showmessage('thread_nonexistence');
  34.         }
  35.         $page = @ceil(($thread['replies'] + 1) / $ppp);
  36.     header("Location: {$boardurl}viewthread.php?tid=$thread[tid]&page=$page&sid=$sid");
  37.         exit();
  38. } else {
  39.         showmessage('thread_nonexistence');
  40. }
  41. // ----------------------------------------------------------------
  42. // Shop By FY
  43. // ----------------------------------------------------------------
  44. @require DISCUZ_ROOT.'./forumdata/cache/cache_shop.php';
  45. $query=$db->query("SELECT * FROM $table_useritems WHERE uid='$discuz_uid'");
  46. $temp=$db->fetch_array($query);
  47. $myitemlist = $_DCACHE[item];
  48. for($i=0;$i<$_DCACHE[itemnum];){
  49.         $myitemlist[$i++][num]=$temp["item".$i];
  50. }
  51. $useitem = (
  52. ( $myitemlist[4][num]>0 && $myitemlist[4]['use'] ) ||
  53. ( $myitemlist[2][num]>0 && $myitemlist[2]['use'] ) ||
  54. ( $myitemlist[5][num]>0 && $myitemlist[5]['use'] ) ||
  55. ( $myitemlist[6][num]>0 && $myitemlist[6]['use'] ) ||
  56. ( $myitemlist[7][num]>0 && $myitemlist[7]['use'] )
  57. )? 1:0;
  58. $randnum = rand(1,4);

  59. if($thread['alerted']){
  60.         $query = $db->query("SELECT alertmsg FROM $table_threadsalert WHERE tid='$tid'");
  61.         $alertmsg = $db->result($query,0);
  62.         
  63.         if($alertmsg && !$_COOKIE[alert."$tid"]){
  64.                         $alertmsg = str_replace("\r\n","\\n",$alertmsg);
  65.                         setcookie("alert".$tid, 1, $timestamp + 86400, $cookiepath, $cookiedomain);
  66.         }else{
  67.                         $alertmsg = NULL;
  68.         }
  69. }
  70. // ----------------------------------------------------------------

  71. if (defined('ViewLastPost')) {
  72.                 $page = @ceil(($thread['replies'] + 1) / $ppp);
  73. }

  74. $tid = $thread['tid'];
  75. $codecount = 0;
  76. $oldtopics = $_COOKIE['oldtopics'] ? $_COOKIE['oldtopics'] : "\t";
  77. if(!strstr($oldtopics, "\t$tid\t")) {
  78.         $oldtopics .= "$tid\t";
  79.         setcookie('oldtopics', $oldtopics, $timestamp + 900, $cookiepath, $cookiedomain);
  80. }

  81. if($forum['type'] == 'forum') {
  82.         $navigation .= "&raquo; <a href="forumdisplay.php?fid=$fid&page=$fpage"> $forum[name]</a> &raquo; $thread[subject]";
  83.         $navtitle .= ' - '.strip_tags($forum['name']).' - '.$thread['subject'];
  84. } else {
  85.         $query = $db->query("SELECT fid, name, moderator FROM $table_forums WHERE fid='$forum[fup]'");
  86.         $fup = $db->fetch_array($query);
  87.         $navigation .= "&raquo; <a href="forumdisplay.php?fid=$fup[fid]">$fup[name]</a> &raquo; <a href="forumdisplay.php?fid=$fid&page=$fpage"> $forum[name]</a> &raquo; $thread[subject]";
  88.         $navtitle .= ' - '.strip_tags($fup['name']).' - '.strip_tags($forum['name']).' - '.$thread['subject'];
  89. }

  90. $ismoderator = modcheck($discuz_user);

  91. if(!$forum['allowview']) {
  92.         if(!$forum['viewperm'] && !$allowview) {
  93.                 showmessage('group_nopermission', NULL, 'NOPERM');
  94.         } elseif($forum['viewperm'] && !strstr($forum['viewperm'], "\t$groupid\t")) {
  95.                 showmessage('forum_nopermission', NULL, 'NOPERM');
  96.         }
  97. }

  98. if($thread['creditsrequire'] && $thread['creditsrequire'] > $credit && !$ismoderator && ($thread['authorid'] !=$discuz_uid)) {
  99.         showmessage('thread_nopermission', NULL, 'NOPERM');
  100. }

  101. if($forum['password'] && $forum['password'] != $_COOKIE["fidpw$fid"]) {
  102.         header("Location: {$boardurl}forumdisplay.php?fid=$fid&sid=$sid");
  103.         exit();
  104. }

  105. if(!$action && $tid) {

  106.         if($discuz_uid && $newpm) {
  107.                 require DISCUZ_ROOT.'./include/pmprompt.php';
  108.         }

  109.         $highlightstatus = str_replace('+', '', $highlight) ? 1 : 0;
  110. /*评分*/
  111.        
  112.         $pageMax = ceil(($thread['replies']+1) / $ppp);
  113.         $page = intval($page) ? intval($page) : 1;
  114.         $page = $page > $pageMax ? $pageMax : $page;
  115.         $start_limit = ($page - 1) * $ppp;



  116.         $fpage = intval($fpage);
  117.         $multipage = multi($thread['replies'] + 1, $ppp, $page, "viewthread.php?tid=$tid&fpage=$fpage&highlight=".rawurlencode($highlight));

  118.         $thread[subject] = cutstr($thread[subject],77);
  119.         $polloptions = array();
  120.         if($thread['poll']) {
  121.                 $query = $db->query("SELECT pollopts FROM $table_polls WHERE tid='$tid'");
  122.                 $pollopts = unserialize($db->result($query, 0));
  123.                 if (is_array($pollopts) && count($pollopts)){
  124.                         foreach($pollopts['options'] as $key=>$option) {
  125.                                 $polloptions[] = array(       
  126.                                         'option'        => dhtmlspecialchars(stripslashes($option[0])),
  127.                                         'votes'                => $option[1],
  128.                                         'width'                => @round($option[1] * 300 / $pollopts['max']) + 2,
  129.                                         'percent'        => @sprintf ("%01.2f", $option[1] * 100 / $pollopts['total']),
  130.                                         'voters'        => $pollopts['votersdetail'][$key]
  131.                                 );
  132.                         }
  133.                         $allowvote = $allowvote && $discuz_uid && (empty($thread['closed']) || $alloweditpoll) && !in_array($discuz_user, $pollopts['voters']);
  134.                         $optiontype = $pollopts['multiple'] ? 'checkbox' : 'radio';
  135.                 }else{
  136.                         unset ($pollopts);
  137.                 }
  138.         }
  139.         $query = $db->query("SELECT * FROM $table_medal where medalid <> '0';");

  140.         while($medalist = $db->fetch_array($query)) {
  141.                 $medalshow[$medalist[medalid]]="<img src="$medalist[medalpic]" title="$medalist[medalname]\n$medalist[medalexpl]">";
  142.         }

  143.         $altbg1 = ALTBG1;
  144.         $altbg2 = ALTBG2;
  145.        
  146.         $postlist = $attachelist = array();
  147.         $newpostanchor = $topiccount = $have_attachment = 0;
  148.         $postcount = $start_limit;
  149.                 //-----------------------------形象
  150.         require_once './forumdata/cache/cache_plugins.php';
  151.         $imagesset = $_DCACHE['plugins_settings'][virtualimage];
  152.         if($imagesset[openalpha]){$alpha = "FILTER: alpha(opacity="+WearArray[i]+")";}
  153.         //-----------------------------

  154.         $post_phpcodecount = -1;
  155.         $post_user_info_sql = 'm.username, m.uid, m.gender, m.groupid, m.adminid, m.regdate, m.lastactivity, m.postnum, m.userdigests,m.medals, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.avatarwidth, m.avatarheight, m.signature, m.customstatus, m.showemail,m.warning, m.onlinetime, m.bank, m.money, m.bankmimi, m.bankstatus, m.useimages';

  156.         $query = $db->query("
  157.                                         SELECT p.*, $post_user_info_sql
  158.                                         FROM $table_posts p
  159.                                         LEFT JOIN $table_members m ON m.uid=p.authorid
  160.                                         WHERE p.tid='$tid' ORDER BY dateline LIMIT $start_limit, $ppp");

  161.         while($post = $db->fetch_array($query)) {
  162.                 if($post['medals']){
  163.                 $medalid = strtok($post['medals'],",");
  164.                 $medalout='';
  165.                 while($medalid){
  166.                         $medalout.= $medalshow[$medalid];
  167.                         $medalid = strtok(",");
  168.                 }
  169.                 $post['medals'] = $medalout;
  170.         }


  171.                 if(!$newpostanchor && $post['dateline'] > $lastvisit) {
  172.                         $post['newpostanchor'] = '<a name="newpost"></a>';
  173.                         $newpostanchor = 1;
  174.                 } else {
  175.                         $post['newpostanchor'] = '';
  176.                 }
  177.                 $topiccount ++;
  178.                 $post['postcount'] = $postcount+1;
  179.                 $post['thisbg'] = $postcolor = ${'altbg'.($postcount++ % 2 + 1)};
  180.                 $post['dateline'] = gmdate("$dateformat $timeformat", $post['dateline'] + $timeoffset * 3600);
  181.                 $post['onlinehour'] = intval($post['onlinetime']/3600);
  182.                 $post['onlinemin'] = intval($post['onlinetime']%3600/60);
  183.                 $change = 1;  //兑换比率,即N点换一颗星
  184.                 $changebase = $post['onlinehour']; //兑换基数,要小时为$post['onlinehour'],分钟为intval($post['onlinetime']/60),秒为$post['onlinetime']
  185.                 $post['onlinestars'] = $changebase/$change; //计算方法:基数的数值除以兑换比率,得到星星数

  186.                 if($post['username']) {
  187.                        
  188.                         if($userstatusby > 0 ){
  189.                                 if($userstatusby == 2 && $post['adminid'] == 0) {
  190.                                         foreach($_DCACHE['ranks'] as $rank) {
  191.                                                 if($post['postnum'] > $rank['postshigher']) {
  192.                                                         $post['authortitle'] = $rank['ranktitle'];
  193.                                                         $post['stars'] = $rank['stars'];
  194.                                                         break;
  195.                                                 }
  196.                                         }
  197.                                 }else{
  198.                                         $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle'];
  199.                                         $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars'];
  200.                                 }
  201.                         }

  202.                         $post['uid'] = sprintf("%06d", $post['uid']);
  203.                         $post['regdate'] = gmdate($dateformat, $post['regdate'] + $timeoffset * 3600);
  204.                         $post['userdigests'] = $post['userdigests'] ? "<a href="digest.php?authorid=".$post['authorid']."">".$post['userdigests']."</a>" : "0";

  205.                         if($_DCACHE['usergroups'][$post['groupid']]['groupavatar']) {
  206.                                 $post['avatar'] = '<img src="'.$_DCACHE['usergroups'][$post['groupid']]['groupavatar'].'" border="0">';
  207.                         } elseif($_DCACHE['usergroups'][$post['groupid']]['allowavatar'] && $post['avatar']) {
  208.                                 $post['avatar'] = '<img src="'.$post['avatar'].'" width="'.$post['avatarwidth'].'" height="'.$post['avatarheight'].'" border="0">';
  209.                         } else {
  210.                                 $post['avatar'] = '';
  211.                         }
  212.                 } else {
  213.                         if(!$post['authorid']) {
  214.                                 $post['useip'] = substr($post['useip'], 0, strrpos($post['useip'], '.')).'.x';
  215.                         }
  216.                         $post['postnum'] = $post['credit'] = $post['regdate'] = 'N/A';
  217.                 }
  218.                 //------------------------------------------------------------形象
  219.                         if ($imagesset['orderuse']!='1' && ($post['useimages'] != 1 ||  $post[gender]==0)){
  220.                               $post['avatar'] = $post['avatar'];
  221.                         }else{
  222.                             if ($post[gender]==1){
  223.                                      $tempequip =  '0-0-0-0-0-0-0-0-init-init-0-init-0-init-init-0-0-0-init-0-0-0-0-0-0-0';  //
  224.                                      $sex = "m";
  225.                                      $upid = "init";
  226.                             }else if ($post[gender]==2){
  227.                                      $tempequip =  '0-0-0-0-0-0-0-0-initf-initf-0-initf-0-initf-initf-0-0-0-initf-0-0-0-0-0-0-0'; //女性
  228.                                      $sex = "f";
  229.                                      $upid = "initf";
  230.                             }

  231.                             $userwearip =  '400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-40 0-400-400';//商品

  232.                             $cookiearray = split('-', $tempequip);
  233.                             $weararray = split('-', $userwearip);

  234.                             $imagescookie = $db->query("SELECT * FROM $tablepre"."images_user  where userid = '$post[uid]' and dafaultuse = '1' and (suitable = '$sex' or suitable = 't')");
  235.                             while ($userimages = $db->fetch_array($imagescookie)){
  236.                                      $tempi = $userimages[classid];
  237.                                      $cookiearray[$tempi] = $userimages[picid];
  238.                                      if($imagesset[beold]){
  239.                                          $images_weardate = $userimages[endurance] - (time() -  $userimages[lastuse]);
  240.                                          $images_weardate = ceil($images_weardate/8640);
  241.                                          if ($images_weardate <= 0){
  242.                                              $db->query("UPDATE $tablepre"."images_user SET  dafaultuse = '3' WHERE userid='$post[uid]' and picid = '$userimages[facepicid]' and classid=  '$userimages[classid]' and dafaultuse='1'");
  243.                                              if($userimages[classid] ==  8||$userimages[classid]==9||$userimages[classid]==11||$userimages[classid] ==13||$userimages[classid]==14||$userimages[classid]==18){
  244.                                                   $userupid = $upid;
  245.                                              }else{
  246.                                                   $userupid = "0";
  247.                                              }
  248.                                              $cookiearray[$tempi] = $userupid;
  249.                                          }else{
  250.                                              $weararray[$tempi] = $images_weardate;
  251.                                          }
  252.                                     }else{
  253.                                          $weararray[$tempi] = 100;
  254.                                     }
  255.                             }
  256.                             if ($post[gender]==0){
  257.                                      $userimages = "";//形象
  258.                             }else{$userimages = implode("-", $cookiearray);}
  259.                             $userwear = implode("-", $weararray);
  260.                             if ($myitemlist[9]['num']>0 && $myitemlist[9]['use'] && $post['authorid']!=$discuz_uid)$post['avatar']="<a onClick='var truthBeTold = window.confirm("要克隆这个虚拟形象吗?");if (truthBeTold) window.open("plugins.php?p=shop&action=use&id=10&uid={$post['authorid']}");'>";
  261.                             $post['avatar'] = "
  262.                             <!-- 形象開始-->
  263.                             <DIV id=Show{$post['pid']}
  264.                                 style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px;  PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT:  226px"></DIV>
  265.                             <SCRIPT language=JavaScript>
  266.                             var currface = "$userimages";
  267.                             if (currface =="") {
  268.                                 currface = "0";
  269.                             }
  270.                             var currwear = "$userwear";
  271.                             var showArray = currface.split('-');
  272.                             var WearArray = currwear.split('-');
  273.                             if (showArray[6] != '0'){
  274.                                  showArray[8] = 0;
  275.                                  showArray[9] = 0;
  276.                             }
  277.                             var s="";
  278.                             for (var i=0; i<26; i++){
  279.                                 if(showArray[i] != '0'){
  280.                                    if((showArray[i] == 'init') || (showArray[i] == 'initf')){
  281.                                         s+="<IMG  src=images/virtualimage/"+i+"/"+showArray[i]+".gif style='padding:0;position:absolute;top:0;left:0;width:140;height:226;z-index:"+i+";'>";
  282.                                    }else{
  283.                                         s+="<IMG  src=images/virtualimage/"+i+"/"+showArray[i]+".gif style='padding:0;position:absolute;top:0;left:0;width:140;height:226;z-index:"+i+";".$alpha." '>";
  284.                                    }
  285.                                 }
  286.                             }
  287.                             s+="<IMG src=images/virtualimage/blank.gif  style='padding:0;position:absolute;top:0;left:0;width:140;height:226;z-index:50'>";
  288.                             if (currface=='0'){
  289.                                     s="<IMG src=images/virtualimage/noface.gif  style='padding:0;position:absolute;top:0;left:0;width:154;height:94;'>";
  290.                             }
  291.                             Show{$post['pid']}.innerHTML=s;
  292.                             </SCRIPT>
  293.                                </a>
  294.                             <!--{/if}-->
  295.                             <!-- 形象結束-->
  296.                             ";
  297.                             if ($myitemlist[9]['num']>0 && $myitemlist[9]['use'])$post['avatar'].="</a>";
  298.                        }
  299.                        //--------------------------------------------------------------


  300.                 $post['karma'] = '';
  301.                 if($post['rate'] && $post['ratetimes']) {
  302.                         $rateimg = $post['rate'] > 0 ? 'agree.gif' : 'disagree.gif';
  303.                         for($i = 0; $i < round(abs($post['rate']) / $post['ratetimes']); $i++) {
  304.                                 $post['karma'] .= '<img src="'.IMGDIR.'/'.$rateimg.'" align="right">';
  305.                         }
  306.                 }

  307.                 $post['subject'] = $post['subject'] ? $post['subject'] : NULL;
  308.                 if($post[hidepost] == '1') {
  309.     $post['message'] = '<b>****本貼已被版主隱藏****</b>';
  310.     $post['message'] .= $post['wnmessagepost'];
  311.     } else {
  312.     $post['message'] = postify($post['message'], $post['smileyoff'], $post['bbcodeoff'], $forum['allowsmilies'], $forum['allowhtml'], $forum['allowbbcode'], $forum['allowimgcode']);
  313.     $post['message'] = $post['message'] ;
  314.     $post['message'] .=$post['wnmessagepost'];
  315.     }
  316.                 $post['signature'] = $post['usesig'] && $post['signature'] ? postify($post['signature'], 1, 0, 0, 0, $_DCACHE['usergroups'][$post['groupid']]['allowsigbbcode'], $_DCACHE['usergroups'][$post['groupid']]['allowsigimgcode']) : NULL;

  317.                 if(!$have_attachment && $post['aid']) $have_attachment = 1 ;

  318.                 $postlist[] = $post;
  319.         }
  320.        
  321.         if (empty($postlist)) {
  322.                 showmessage('undefined_action', NULL, 'NOPERM');
  323.         }

  324.         if ($have_attachment) {
  325.                 require_once DISCUZ_ROOT.'./include/attachment.php';
  326.                 $query = $db->query("select * from $table_attachments where tid='$tid' ORDER BY aid");
  327.                 while($attach = $db->fetch_array($query)) {
  328.                         $attach[checkid] = substr(md5($attach['filesize']),0,5);
  329.                         $extension = strtolower(fileext($attach['filename']));
  330.                         $attach['attachicon'] = attachtype($extension."\t".$attach['filetype']);
  331.                         if($attachimgpost && in_array($extension, array('jpg', 'jpeg', 'jpe', 'gif', 'png', 'bmp'))) {
  332.                                 $attach['attachimg'] = 1;
  333.                         } else {
  334.                                 $attach['attachimg'] = 0;
  335.                         }
  336.                         $attach['attachsize'] = sizecount($attach['filesize']);
  337.                         $attach['dateline'] = $attach['dateline']?gmdate("$dateformat $timeformat", $attach['dateline'] + $timeoffset * 3600): '';
  338.                         $attachelist["$attach[pid]"][] = $attach;
  339.                 }
  340.         }
  341. $typearray = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
  342. if($thread['badge']) {
  343.         $string = sprintf('%02d', $thread['badge']);
  344.         $stylestr = sprintf('%03b', $string[0]);
  345.         //$thread['badge'] .= $string[1];        
  346.     } else {
  347.         $thread['badge'] = '';
  348.     }

  349.         $forumselect = $forumjump ? forumselect() : NULL;

  350.         $useframecheck = 'checked';
  351.         $usesigcheck = $signature ? 'checked' : NULL;
  352.         $allowpost = (!$forum['postperm'] && $allowpost) || ($forum['postperm'] && strstr($forum['postperm'], "\t$groupid\t")) || $forum['allowpost'];
  353.         $allowpostreply = (!$thread['closed'] || $ismoderator) && (!$delayreply || ($delayreply && (($timestamp - $thread[dateline] ) < $delayreply * 86400)) || $ismoderator) && ((!$forum['replyperm'] && $allowpost) || ($forum['replyperm'] && strstr($forum['replyperm'], "\t$groupid\t")) || $forum['allowreply']);


  354.         if($delayviewcount) {
  355.                 $logfile = DISCUZ_ROOT.'./forumdata/viewcount.log';
  356.                 if(substr($timestamp, -2) == '00') {
  357.                         require DISCUZ_ROOT.'./include/misc.php';
  358.                         updateviews();
  359.                 }

  360.                 if(@$fp = fopen($logfile, 'a')) {
  361.                         fwrite($fp, "$tid\n");
  362.                         fclose($fp);
  363.                 }elseif($adminid == 1) {
  364.                         showmessage('view_log_invalid');
  365.                 }
  366.         } else {
  367.                 $db->query("UPDATE LOW_PRIORITY $table_threads SET views=views+1 WHERE tid='$tid'", 'UNBUFFERED'); /* 修改点击次数 */
  368.         }

  369. if($smileyinsert && $fastpost && is_array($_DCACHE['smilies'])) {
  370.         $smileyinsert = 1;
  371.         $simlieslist = 20;
  372.         $smcols = $smcols ? $smcols : 3;
  373.         $smilies .= '<tr>';
  374.         foreach(array_reverse($_DCACHE['smilies']) as $key => $smiley) {
  375.     if ($key < $simlieslist){
  376.                 $smilies .= '<td align="center" valign="top"><img src="'.SMDIR.'/'.$smiley['url'].'" border="0" onmouseover="this.style.cursor=\'hand\';" onclick="AddText(\''.htmlspecialchars(addcslashes($smiley['code'], '\\\'')).'\');"></td>'."\n";
  377.                 $smilies .= !(++$key % $smcols) ? '</tr><tr>' : NULL;
  378.     }
  379.        $smiliesextra= "<tr><td  align=center colspan=$smcols>共有 $key 个图象 [<a href="javascript:popUp('misc.php?action=smilies','230','430','1')">显示更多</a>]</td></tr>";
  380.    
  381.     $smilies_overstep = 0;
  382.     $smilies_overstep = $simlieslist / $smcols;
  383.     $smilies_overstep = ($smilies_overstep > 5) ? 1 : 0;   
  384.         }
  385. } else {
  386.         $smileyinsert = 0;
  387. }

  388.         include template('viewthread');

  389. } elseif($action == 'printable' && $tid) {

  390.         require DISCUZ_ROOT.'./include/printable.php';

  391. }

  392. ?>

复制代码
回复

使用道具 举报

屁股超人 发表于 2005-9-16 00:52:10 | 显示全部楼层
没有人帮忙回答,我就没有办法安装这个插件了,呜呜呜~~~
回复

使用道具 举报

windgodman 发表于 2005-9-16 03:06:43 | 显示全部楼层
晕了。。太长了吧。汗。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-23 14:40 , Processed in 0.032960 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表