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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Music Heartland(音乐厅) For 2.5(Sp1)F By oytktk

[复制链接]
咕咕 发表于 2005-11-20 08:37:23 | 显示全部楼层
3.0的银行已经有了呢。修改东西应该很方便了~
回复

使用道具 举报

whitegerry 发表于 2005-11-20 08:43:01 | 显示全部楼层
原帖由 咕咕 于 2005-11-20 08:37 发表
3.0的银行已经有了呢。修改东西应该很方便了~


银行在哪儿?
回复

使用道具 举报

咕咕 发表于 2005-11-20 08:52:34 | 显示全部楼层
两个版本
老师的:https://discuz.dismall.com/viewth ... hlight=%D2%F8%D0%D0
小八的:https://discuz.dismall.com/viewth ... hlight=%D2%F8%D0%D0
在BETA1上写的.如果导入有错的话.请选择允许不同版本的导入~
回复

使用道具 举报

 楼主| oytktk 发表于 2005-11-20 10:50:31 | 显示全部楼层
原帖由 M55 于 2005-11-20 07:14 发表
还没来得及安装,先顶兄弟把再说~~~

谢谢M老哥..真早啊!


原帖由 jafeey 于 2005-11-20 04:29 发表
请问会增加查询吧

不会..
回复

使用道具 举报

 楼主| oytktk 发表于 2005-11-20 10:55:03 | 显示全部楼层
原帖由 jinlun721 于 2005-11-20 00:05 发表

请问 为什么 我的列表里面 发了帖子 什么都没有


http://bbs.jinlunhotel.cn/mymusic.php

这是我发的帖子


[11-19] [一只小小鸟]-[一个小女孩]-[MP3]
...



可能是你的安装时没有把FID==8改为你那个音乐版的FID值...我去你那注册了帐号但是进不了那个音乐版...
回复

使用道具 举报

lu5266 发表于 2005-11-20 11:34:29 | 显示全部楼层
哈哈

今天终于完成一个小游戏插件了

用导出插件老是出现脚本错误,兄弟有 过这种情况?
回复

使用道具 举报

 楼主| oytktk 发表于 2005-11-20 11:58:43 | 显示全部楼层
原帖由 lu5266 于 2005-11-20 11:34 发表
哈哈

今天终于完成一个小游戏插件了

用导出插件老是出现脚本错误,兄弟有 过这种情况?



用右击另存为呢?
回复

使用道具 举报

jinlun721 发表于 2005-11-20 12:02:17 | 显示全部楼层
原帖由 oytktk 于 2005-11-20 10:55 发表



可能是你的安装时没有把FID==8改为你那个音乐版的FID值...我去你那注册了帐号但是进不了那个音乐版...

---------------------------------------------------------
音乐天堂 的网址 http://bbs.jinlunhotel.cn/forumdisplay.php?fid=89
代表
FID==89
--------------------------------------------------------------
修改过程中所有的 $fid == 8 中的 8 改为你的音乐版FID.(也就是89)
-----------------------------------------------------------------
include/newthread.php
修改如下:



  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. if(!defined('IN_DISCUZ')) {
  12.         exit('Access Denied');
  13. }

  14. $discuz_action = 11;
  15. $readonly = $fid == 89 ? "readonly" : NULL;


  16. if(empty($forum['fid']) || $forum['type'] == 'group') {
  17.         showmessage('forum_nonexistence');
  18. }

  19. if(!$discuz_uid && !((!$forum['postperm'] && $allowpost) || ($forum['postperm'] && strstr($forum['postperm'], "\t$groupid\t")))) {
  20.         header('Location: logging.php?action=login&referer='.rawurlencode("$PHP_SELF?action=$action&fid=$fid&poll=$poll"));
  21.         exit();
  22. } elseif(!$forum['allowpost']) {
  23.         if(!$forum['postperm'] && !$allowpost) {
  24.                 showmessage('group_nopermission', NULL, 'HALTED');
  25.         } elseif($forum['postperm'] && !strstr($forum['postperm'], "\t$groupid\t")) {
  26.                 showmessage('post_forum_newthread_nopermission', NULL, 'HALTED');
  27.         }
  28. }

  29. if(!submitcheck('topicsubmit')) {

  30.         if(is_array($_DCACHE['icons'])) {
  31.                 foreach($_DCACHE['icons'] as $id => $icon) {
  32.                         $icons .= ' <input type="radio" name="iconid" value="'.$id.'"><img src="'.SMDIR.'/'.$icon.'">';
  33.                         $icons .= !(++$key % 9) ? '<br>' : NULL;
  34.                 }
  35.         }
  36.        
  37.         $multiattach = $allowpostattach && $attach_newpost ? array_fill(1,$attach_newpost,'1'):0;

  38.         include template('post_newthread');

  39. } else {
  40. //===========板块禁言检查begin========
  41. if (!$ismoderator) {
  42.     if (!postban_check($forum[fid], $discuz_user)) showmessage('你在本板块被禁言,不能发贴和编辑');
  43. }
  44. //===========板块禁言检查end==========
  45.         if($readonly && ($mp3_name == '' || $mp3_artist == '' || $mp3_url == '' || $mp3_m_r == '')) {
  46.                 showmessage("对不起, 您没有输入音乐必选参数!");
  47.         }

  48.         if(!$subject || !$message) {
  49.                 showmessage('post_sm_isnull');
  50.         }
  51. $date = gmdate("m-d", $timestamp + $timeoffset * 3600);
  52.     $subject = "[".$date."] ".$subject;

  53.         if($post_invalid = checkpost()) {
  54.                 showmessage($post_invalid);
  55.         }

  56.         if(checkflood()) {
  57.                 showmessage('post_flood_ctrl');
  58.         }

  59.         $displayorder = ($ismoderator && $toptopic) ? 1 : 0;
  60.         $digest = ($ismoderator && $addtodigest) ? 1 : 0;
  61.         $viewperm = $allowsetviewperm ? $viewperm : 0;

  62.         if($poll == 'yes' && $allowpostpoll && trim($polloptions)) {
  63.                 $poll = 1;
  64.                 $pollarray = array();
  65.                 $polloptions = explode("\n", $polloptions);
  66.                 if(count($polloptions) > $maxpolloptions) {
  67.                         showmessage('post_poll_option_toomany');
  68.                 }

  69.                 foreach($polloptions as $polloption) {
  70.                         $polloption = trim($polloption);
  71.                         if($polloption) {
  72.                                 $pollarray['options'][] = array($polloption, 0);
  73.                         }
  74.                 }
  75.                 $pollarray['multiple'] = $multiplepoll;
  76.                 $pollarray['voters'] = array();
  77.                 $pollopts = addslashes(serialize($pollarray));
  78.         } else {
  79.                 $poll = 0;
  80.                 $pollopts = '';
  81.         }

  82.         $paid = $last_attach_type = $aid = $tmark ='';
  83.         $post_attaches = array();
  84.         if ($allowpostattach){
  85.                 $post_attaches = attach_upload();
  86.                 if(is_array($post_attaches) && count($post_attaches)) {
  87.                         foreach( $post_attaches as $v) {
  88.                                 $db->query("INSERT INTO $table_attachments (uid, creditsrequire, filename, filetype, filesize, attachment, dateline, downloads)
  89.                                         VALUES ('$discuz_uid', '$v[creditsrequire]', '$v[filename]', '$v[filetype]', '$v[filesize]', '$v[attachment]', '$timestamp','0')");
  90.                                 $v['aid'] = $db->insert_id();
  91.                                 $aid .= $tmark.''.$v['aid'];
  92.                                 $tmark = ' ,';
  93.                                 $last_attach_type = strtolower(fileext($v['filename']))."\t".$v['filetype'];
  94.                                 $paid ++;
  95.                         }
  96.                 }
  97.         }
  98.         unset($post_attaches);

  99.         $db->query("INSERT INTO $table_threads (fid, creditsrequire, iconid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, poll, mp3_type, attachment)
  100.                 VALUES ('$fid', '$viewperm', '$iconid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '$displayorder', '$digest', '$poll', '$mp3_m_r', '".attachtype($last_attach_type, 'id')."')");
  101.         $tid = $db->insert_id();

  102.         if($poll) {
  103.                 $db->query("INSERT INTO $table_polls (tid, pollopts)
  104.                         VALUES ('$tid', '$pollopts')");
  105.         }
  106. //发贴加钱开始
  107.         if($bankstatus>=0) {
  108.                 $postmoney = 2;  //发表主题奖励的钱数,可自己修改
  109.                 updatemoney('+', $discuz_uid, $postmoney);
  110.         }
  111. //发贴加钱结束

  112.         $bbcodeoff = checkbbcodes($message, $bbcodeoff);
  113.         $smileyoff = checksmilies($message, $smileyoff);

  114.         $db->query("INSERT INTO $table_posts (fid, tid, aid, author, authorid, subject, dateline, message, useip, usesig, bbcodeoff, mp3_url, smileyoff, parseurloff)
  115.                 VALUES ('$fid', '$tid', '$paid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$message', '$onlineip', '$usesig', '$bbcodeoff', '$mp3_url', '$smileyoff', '$parseurloff')");
  116.         $pid = $db->insert_id();

  117.         if($aid) {
  118.                 $db->query("UPDATE $table_attachments SET tid='$tid', pid='$pid' WHERE aid in ($aid)", 'UNBUFFERED');
  119.         }

  120.         updatemember('+', $discuz_uid, $postcredits);
  121.         $db->query("UPDATE $table_members SET money=money+1 where uid='$discuz_uid'");


  122.         $db->query("UPDATE $table_forums SET lastpost='$subject\t$timestamp\t$discuz_user', threads=threads+1, posts=posts+1 WHERE fid='$fid'", 'UNBUFFERED');

  123.         if($emailnotify && $discuz_uid) {
  124.                 $query = $db->query("SELECT tid FROM $table_subscriptions WHERE uid='$discuz_uid' AND tid='$tid'");
  125.                 if(!$db->result($query, 0)) {
  126.                         $db->query("INSERT INTO $table_subscriptions (uid, email, tid)
  127.                                 VALUES ('$discuz_uid', '$email', '$tid')", 'UNBUFFERED');
  128.                 }
  129.         }

  130. $db->query("UPDATE cdb_mypetdata SET mypetexp= mypetexp+60 WHERE username='$discuz_user' and mypetdead <1 and openpk<2");

  131.         showmessage('post_newthread_succeed', "viewthread.php?tid=$tid");
  132. }

  133. ?>
复制代码


-------------------------------------
include/editpost.php
-------------------
修改如下:


  1. <?

  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. if(!defined('IN_DISCUZ')) {
  12.         exit('Access Denied');
  13. }

  14. $discuz_action = 13;
  15. $readonly = $fid == 89 ? "readonly" : NULL;


  16. $query = $db->query("SELECT pid FROM $table_posts WHERE tid='$tid' ORDER BY dateline LIMIT 1");
  17. $isfirstpost = $db->result($query, 0) == $pid ? 1 : 0;

  18. $query = $db->query("SELECT m.adminid, p.authorid, p.dateline, p.aid, p.dateline FROM $table_posts p LEFT JOIN $table_members m ON m.uid=p.authorid WHERE pid='$pid' AND tid='$tid' AND fid='$fid'");
  19. $orig = $db->fetch_array($query);
  20. $isorigauthor = $discuz_uid && $discuz_uid == $orig['authorid'];
  21. $alloweditpost = $alloweditpost && !(in_array($orig['adminid'], array(1, 2, 3)) && $adminid > $orig['adminid']) ? 1 : 0;

  22. if((!$ismoderator || !$alloweditpost) && !$isorigauthor) {
  23.         showmessage('post_edit_nopermission', NULL, 'HALTED');
  24. }

  25. if(!submitcheck('editsubmit')) {

  26.         if(is_array($_DCACHE['icons']) && $isfirstpost) {
  27.                 foreach($_DCACHE['icons'] as $id => $icon) {
  28.                         $icons .= ' <input type="radio" name="iconid" value="'.$id.'" '.($thread['iconid'] == $id ? 'checked' : NULL).'><img src="'.SMDIR.'/'.$icon.'">';
  29.                         $icons .= !(++$key % 9) ? '<br>' : NULL;
  30.                 }
  31.         }

  32.         $query = $db->query("SELECT * FROM $table_posts WHERE pid='$pid' AND tid='$tid' AND fid='$fid'");
  33.         $postinfo = $db->fetch_array($query);

  34.         if($delayeditpost && ($timestamp -$postinfo['dateline'] >$delayeditpost) && !$ismoderator ) {
  35.                 showmessage('post_edit_timeout', NULL, 'HALTED');
  36.         }

  37.         $usesigcheck = $postinfo['usesig'] ? 'checked="checked"' : NULL;
  38.         $urloffcheck = $postinfo['parseurloff'] ? 'checked="checked"' : NULL;
  39.         $smileyoffcheck = $postinfo['smileyoff'] == 1 ? 'checked="checked"' : NULL;
  40.         $codeoffcheck = $postinfo['bbcodeoff'] == 1 ? 'checked="checked"' : NULL;

  41.         if($alloweditpoll && $thread['poll']) {
  42.                 $query = $db->query("SELECT pollopts FROM $table_polls WHERE tid='$tid'");
  43.                 $polloptions = unserialize($db->result($query, 0));
  44.                 for($i = 0; $i < count($polloptions['options']); $i++) {
  45.                         $polloptions['options'][$i][0] = htmlspecialchars(stripslashes($polloptions['options'][$i][0]))."\n";
  46.                 }
  47.         } else {
  48.                 $polloptions = '';
  49.         }

  50.         if($allowpostattach) {
  51.                 if($postinfo['aid']) {
  52.                         require_once DISCUZ_ROOT.'./include/attachment.php';
  53.                         $attachquery = $db->query("select * from $table_attachments where pid =$postinfo[pid]");
  54.                         while($attaches = $db->fetch_array($attachquery)) {
  55.                                 $extension = strtolower(fileext($attaches['filename']));
  56.                                 $attaches['attachicon'] = attachtype($extension."\t".$attaches['filetype']);
  57.                                 $attaches['attachsize'] = sizecount($attaches['filesize']);
  58.                                 $attaches['dateline'] =        $attaches['dateline']?gmdate("$dateformat $timeformat", $attaches['dateline'] + $timeoffset * 3600):gmdate("$dateformat $timeformat", $orig['dateline'] + $timeoffset * 3600);
  59.                                 $postinfo[attach_list][] = $attaches;
  60.                         }
  61.                 }
  62.         }

  63.         $postinfo['subject'] = str_replace('"', """, $postinfo['subject']);
  64.         $postinfo['message'] = dhtmlspecialchars($postinfo['message']);
  65.         $postinfo['message'] = preg_replace("/\n{2}\[\[i\] Last edited by .+? on .+? at .+? \[\/i\]\]$/s", '', $postinfo['message']);
  66.         if($previewpost) {
  67.                 $postinfo['message'] = $message;
  68.         }
  69.        
  70.         $multiattach = $allowpostattach && $attach_editpost ? array_fill(1,$attach_editpost,'1'):0;

  71.         include template('post_editpost');

  72. } else {
  73. //===========板块禁言检查begin========
  74. if (!$ismoderator) {
  75.     if (!postban_check($forum[fid], $discuz_user)) showmessage('你在本板块被禁言,不能发贴和编辑');
  76. }
  77. //===========板块禁言检查end==========

  78.         if( $editmethord == 'post' && !$delete ) {

  79.                 if($post_invalid = checkpost()) {
  80.                         showmessage($post_invalid);
  81.                 }

  82.                 $viewpermadd = ($allowsetviewperm && $isfirstpost) ? "creditsrequire='$viewperm'" : NULL;

  83.                 if($isfirstpost) {
  84.                         if($subject == '' || $message == '') {
  85.                                 showmessage('post_sm_isnull');
  86.                         }

  87.                         $pollopts = '';
  88.                         if($alloweditpoll && $thread['poll'] && trim($polloptions)) {
  89.                                 $query = $db->query("SELECT pollopts FROM $table_polls WHERE tid='$tid'");
  90.                                 $pollarray = unserialize($db->result($query, 0));

  91.                                 $optsdeleted = 0;
  92.                                 $pollarray['max'] = 0;
  93.                                 foreach($polloptions as $key => $option) {
  94.                                         if(trim($option)) {
  95.                                                 $pollarray['options'][$key][0] = $option;
  96.                                                 if($pollarray['options'][$key][1] > $pollarray['max']) {
  97.                                                         $pollarray['max'] = $pollarray['options'][$key][1];
  98.                                                
  99.                                                 }
  100.                                         } else {
  101.                                                 $optsdeleted = 1;
  102.                                                 $pollarray['total'] -= $pollarray['options'][$key][1];
  103.                                                 unset($pollarray['options'][$key]);
  104.                                         }
  105.                                 }

  106.                                 if($optsdeleted) {
  107.                                         $newoptions = array();
  108.                                         foreach($pollarray['options'] as $option) {
  109.                                                 $newoptions[] = $option;
  110.                                         }
  111.                                         $pollarray['options'] = $newoptions;
  112.                                         unset($newoptions);
  113.                                 }

  114.                                 $pollarray['multiple'] = $multiplepoll;
  115.                                 $pollopts = addslashes(serialize($pollarray));
  116.                         }

  117.                         $db->query("UPDATE $table_threads SET iconid='$iconid', mp3_type='$mp3_m_r', subject='$subject' WHERE tid='$tid'", 'UNBUFFERED');
  118.                         if($pollopts) {
  119.                                 $db->query("UPDATE $table_polls SET pollopts='$pollopts' WHERE tid='$tid'", 'UNBUFFERED');
  120.                         }
  121.                 } else {
  122.                         if($subject == '' && $message == '') {
  123.                                 showmessage('post_sm_isnull');
  124.                         }
  125.                 }

  126.                 if($editedby && ($timestamp - $orig['dateline']) > 60 && $adminid != 1){
  127.                         $editdate = gmdate($_DCACHE['settings']['dateformat'], $timestamp + $timeoffset * 3600);
  128.                         $edittime = gmdate($_DCACHE['settings']['timeformat'], $timestamp + $timeoffset * 3600);
  129.                         $message .= "\n\n[[i] Last edited by $discuz_user on $editdate at $edittime [/i]]";
  130.                 }

  131.                 $bbcodeoff = checkbbcodes($message, $bbcodeoff);
  132.                 $smileyoff = checksmilies($message, $smileyoff);
  133.                
  134.                 $db->query("UPDATE $table_posts SET message='$message', usesig='$usesig', mp3_url='$mp3_url', bbcodeoff='$bbcodeoff', parseurloff='$parseurloff',        smileyoff='$smileyoff', subject='$subject' WHERE pid='$pid'");
  135.                 if($viewpermadd) {
  136.                         $db->query("UPDATE $table_threads SET $viewpermadd WHERE tid='$tid'", 'UNBUFFERED');
  137.                 }
  138.                 $modaction = 'editpost';

  139.         }elseif ($editmethord == 'attach') {
  140.                 $new_aids = $post_attaches =array();
  141.                 $del_aids ='0';
  142.                 if ($orig['aid']){
  143.                         $attachquery = $db->query("select * from $table_attachments where pid ='$pid'");
  144.                         while($att = $db->fetch_array($attachquery)) {
  145.                                 $saveaid = 1;
  146.                                 if(is_array($deleteaids) && count($deleteaids)){
  147.                                         if (in_array($att[aid],$deleteaids)){
  148.                                                 $del_aids .=','.$att[aid];        @unlink(DISCUZ_ROOT.'./'.$attachdir.'/'.$att['attachment']);
  149.                                                 $saveaid = 0;
  150.                                         }
  151.                                 }
  152.                                 if ($saveaid) {
  153.                                         if ($allowsetattachperm && $att[creditsrequire] != $origattachperm["$att[aid]"]){
  154.                                                 $att[creditsrequire] = $origattachperm["$att[aid]"];
  155.                                                 $db->query("UPDATE $table_attachments set creditsrequire='$att[creditsrequire]' WHERE aid='$att[aid]'", 'UNBUFFERED');
  156.                                         }
  157.                                         $new_aids[] = $t_a;
  158.                                 }
  159.                         }
  160.                         if ($del_aids) {
  161.                                 $db->query("DELETE FROM $table_attachments WHERE pid='$pid' and aid in($del_aids)", 'UNBUFFERED');
  162.                         }
  163.                 }
  164.                 if ($attach_max && (count($attach)+count($new_aids)) >$attach_max){
  165.                         showmessage('attachment_edit_more', "post.php?action=edit&fid=$fid&tid=$tid&pid=$pid&page=$page");
  166.                 }
  167.                 $last_attach_type = $tmark = $aid ='';
  168.                 $post_attaches = attach_upload();
  169.                 if($post_attaches && $allowpostattach) {
  170.                         foreach( $post_attaches as $v) {
  171.                                 $db->query("INSERT INTO $table_attachments (uid, creditsrequire, filename, filetype, filesize, attachment, dateline, downloads)
  172.                                         VALUES ('$discuz_uid', '$v[creditsrequire]', '$v[filename]', '$v[filetype]', '$v[filesize]', '$v[attachment]','$timestamp', '0')");
  173.                                 $aid .= $tmark.''.$db->insert_id();

  174.                                 $v['aid'] = $db->insert_id();
  175.                                 $tmark = ' ,';
  176.                                 $last_attach_type = strtolower(fileext($v[filename]))."\t".$v['filetype'];
  177.                                 $new_aids[] = $v;
  178.                         }
  179.                         $db->query("UPDATE $table_attachments SET tid='$tid', pid='$pid' WHERE aid in ($aid)", 'UNBUFFERED');
  180.                         $db->query("UPDATE $table_threads SET attachment='".attachtype($last_attach_type, 'id')."' WHERE tid='$tid'", 'UNBUFFERED');
  181.                 }

  182.                 $aid = count($new_aids);
  183.                 $db->query("UPDATE $table_posts SET aid='$aid' WHERE pid='$pid'");
  184.                 unset($new_aids,$post_attaches);
  185.                 $modaction = 'editattach';

  186.         } elseif( $editmethord == 'post' && $delete ) {

  187.                 if(!$allowdelpost && !$isorigauthor) {
  188.                         showmessage('post_edit_nopermission', NULL, 'HALTED');
  189.                 }

  190.                 if(!$isfirstpost) {
  191.                         updatemember('-', $orig['authorid'], $deletedcredits);
  192.                         $query = $db->query("SELECT pid, filetype, attachment FROM $table_attachments WHERE tid='$tid'");
  193.                         $attach_type = '';
  194.                         while($thread_attachment = $db->fetch_array($query)) {
  195.                                 if($thread_attachment['filetype']) {
  196.                                         $attach_type = fileext($thread_attachment['attachment'])."\t".$thread_attachment['filetype'];
  197.                                 }
  198.                                 if($thread_attachment[pid] == $pid) {
  199.                                         @unlink(DISCUZ_ROOT.'./'.$attachdir.'/'.$thread_attachment['attachment']);
  200.                                 }
  201.                         }
  202.                         $db->query("UPDATE $table_threads SET attachment='".attachtype($attach_type, 'id')."' WHERE tid='$tid'", 'UNBUFFERED');
  203.                         $db->query("DELETE FROM $table_attachments WHERE pid='$pid'", 'UNBUFFERED');
  204.                         $db->query("DELETE FROM $table_posts WHERE pid='$pid'");
  205.                         updateforumcount($fid);
  206.                         updatethreadcount($tid);

  207.                         $modaction = 'delposts';

  208.                 } else {

  209.                         if(!$allowdelpost && $isorigauthor && $thread['replies'] >= 1) {
  210.                                 showmessage('post_edit_nopermission', NULL, 'HALTED');
  211.                         }

  212.                         $uids = $comma = '';
  213.                         $query = $db->query("SELECT authorid FROM $table_posts WHERE tid='$tid'");
  214.                         while($post = $db->fetch_array($query)) {
  215.                                 $uids .= "$comma$post[authorid]";
  216.                                 $comma = ',';
  217.                         }
  218.                         updatemember('-', $uids, $deletedcredits);

  219.                         $db->query("DELETE FROM $table_threads WHERE tid='$tid' OR closed='$tid'", 'UNBUFFERED');

  220.                         $query = $db->query("SELECT attachment FROM $table_attachments WHERE tid='$tid'");
  221.                         while($thread_attachment = $db->fetch_array($query)) {
  222.                                 @unlink(DISCUZ_ROOT.'./'.$attachdir.'/'.$thread_attachment['attachment']);
  223.                         }

  224.                         $db->query("DELETE FROM $table_attachments WHERE tid='$tid'", 'UNBUFFERED');
  225.                         $db->query("DELETE FROM $table_posts WHERE tid='$tid'");
  226.                         updateforumcount($fid);

  227.                         $modaction = 'delete';

  228.                 }

  229.         }

  230.         if(!$isorigauthor) {
  231.                 @$fp = fopen(DISCUZ_ROOT.'./forumdata/modslog.php', 'a');
  232.                 @flock($fp, 2);
  233.                 @fwrite($fp, "$timestamp\t$discuz_user\t$groupid\t$onlineip\t$forum[fid]\t$forum[name]\t$thread[tid]\t$thread[subject]\t$modaction\n");
  234.                 @fclose($fp);
  235.         }

  236.         if($delete && $isfirstpost) {
  237.                 showmessage('post_edit_delete_succeed', "forumdisplay.php?fid=$fid");
  238.         }elseif($editmethord == 'attach') {
  239.                 showmessage('attachment_edit_succeed', "post.php?action=edit&fid=$fid&tid=$tid&pid=$pid&page=$page");
  240.         } else {
  241.                 showmessage('post_edit_succeed', "viewthread.php?tid=$tid&page=$page#pid$pid");
  242.         }

  243. }

  244. ?>
复制代码

[ 本帖最后由 jinlun721 于 2005-11-20 12:03 编辑 ]
回复

使用道具 举报

lu5266 发表于 2005-11-20 12:02:31 | 显示全部楼层
原帖由 oytktk 于 2005-11-20 11:58 发表



用右击另存为呢?


无法下载
与服务器无法建立


不过我改为新窗口打开
复制保存-->导入-->插件非格式

后来我用查看源代码-保存
居然解决了
回复

使用道具 举报

autoit 发表于 2005-11-20 12:04:16 | 显示全部楼层
在回来顶下 ! 很不错的  说 !
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-5 12:57 , Processed in 0.103574 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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