AL8 Forum
   µn¿ýµù¥UÀ°§U


¼ÐÃD: ¡i¤À¨É¡j¥DÃD¤ÀÃþ´¡¥óFOR Discuz¨t¦C¥¿¦¡ª©-¯Á¤Þ±MÃD¤ÀÃþªO¤º¤ÀÃþ¸ÜÃD¤ÀÃþ [§¹¾ã§ó·s]
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:10  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
¡i¤À¨É¡j¥DÃD¤ÀÃþ´¡¥óFOR Discuz¨t¦C¥¿¦¡ª©-¯Á¤Þ±MÃD¤ÀÃþªO¤º¤ÀÃþ¸ÜÃD¤ÀÃþ [§¹¾ã§ó·s]

µo©O½g¬°¥ª­×¥¿Ãa³sµ²: http://www.alan888.com/Discuz/vi ... hlight=%A4%C0%C3%FE

Âà¸ü¦Û http://www.discuz.net/viewthread ... p;extra=&page=1

¤pÂû´£¿ô¤j®a:

1. ©O­Ó´Nºâ¦Û¤vÁcÅ餯¡A«Y forumdisplay Åãµø¤W­±¥ò«Y¦³°ÝÃD¡A¨Ò¦pÅãµø­ø¨ì¡u·|¡v¦r¡A¦P¡u¾|¡v¦r¡A¥i¯à¥ò¦³§ó¦h¡A§Æ±æ¦³¤H¥i¥H¬ã¨s­Ó°ÝÃD¥X³B



2. ©Ó¤WÃD«Yµoªí¤å³¹­Ó®É¶¡¤å³¹¤ÀÃþ³£¦³¥H¤W°ÝÃD¡A¦ý¥u­nª¾¹D forumdisplay ­Ó®É°ÝÃD©Ò¦b¸Ñ¨M­øÃø

3. §Ú¾ã²z¥ª¦³Ãö«Y forumdisplay ¤W­±¥i¥H«Y¨C¤@½g¤å³¹«e­±Åãµø®I­Ó¤ÀÃþ¦WºÙ¬J­×§ï¤èªk **¸Ô¨£¤C¼Ó**

4. ·Q uninstall ­Ó hack ¥i¥H¥Î¤K¼Ó¤J­±¬J mysql drop ¨« d µL¥Î¬J table

5. ¥²©w­n¦Û¦æ³Æ¥÷©Ò¦³ php ¦P html ÀɮסI

6. ©¥©¥Ý¯®I¡A¥[¤W¤@­Ó¦n¥¿¬J¬ü¤Æ­×§ï¡A¦hÁ­Ӧì¤j®v ¸Ô¨£²Ä¤E¼Ó


¥¿¤å:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::´¡¥ó¦WºÙ: ±MÃD¤ÀÃþ´¡¥ó Subject classification FOR Discuz¨t¦C
::ª©¥» : For Discuz2.5FREE [For Discuz3.0/4.0¶}µo¥Ø«eÁÙ»P¤jC°Ó¶q¤¤ ²{¥u´£¨Ñ¥I¶OÀ°¦w¸Ë]
::­ì³Ð§@ªÌ :·R·RÂå§Þ³N³¡(aday) Âà¸ü©M­«¼g¨Ï¥Î¥N½X¥²¶·«O¯d
::KEYWORDS:¥DÃD¤ÀÃþ-ªO¤º¤ÀÃþ-¸ÜÃD¤ÀÃþ-±MÃD¤ÀÃþ-Subject classification
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


¥\¯à´y­z¡G
0: ¥ý¬Ýºt¥Ü¡G
http://iiyi.bbs.asiaec.com/bbs/f ... fid=86&cateid=2
http://www.tianyaclub.com/new/Pu ... mp;Key=0&Part=0
¡y  ¬Ýªþ¥óªººt¥Ü¹Ï¤ù

1¡Gª©¥»¬°¦¹«eAiaiyi WorkRoomµo§Gªº¥DÃD¤ÀÃþ©ÎªO¤º¤ÀÃþFOR2.xª©¥»ªº2.5¤É¯Åª©¥»¡C
2¡G¨C­Óª©¶ô¥i¥H³]¸m¤£¦Pªº±MÃD¤ÀÃþ¡A¥i¥H¬°©Ò¦³ªº¥DÃD©Î³¡¤À¥DÃD½á¤@­Ó±MÃD¤ÀÃþÄݩʡC
3¡G¯S§O¾A¦X½×¾Â¦Uª©¶ô·d¦UºØ¬¡°Ê»Ý­n²Õ´©M±À¥X¤@§å±MÃD¤å³¹ªº¡C
4¡G¯S§O¾A¦X¤j«¬½×¾Â¡A©«¤l¸û¦h»Ý­n¶i¤@¨Bªº²Ó¤À¦Ó¤£·Q¨Ï¥Î¤l½×¾Â¥\¯àªº¡C
8¡G«á¥x¥i¬°¨C­Ó½×¾Â³]¸m¤£¦Pªº¤@­Ó©Î¦h­Ó±MÃDÃþ§O¡C
8¡G«á¥x¥i±±¨î¸Óª©¶ô¬O§_±j¨î·|­ûµo¶K±MÃD¤ÀÃþ¡C
5¡G«e¥xÅã¥Ü­Ý®eºëµØ¶KÅã¥Ü¡C
6¡G«e¥xµL±MÃD³]¸mµLÅã¥Ü¡C
8¡G«e¥x§Ö³tµo¶KÅã¥Ü±MÃD¿ï¾Ü¦Cªí
6¡G±MÃD¦Cªí¤ºµo·s¶K¦Û°Ê«ü©w¸Ó±MÃD¡C
7¡Gµo¶K®É¥i¿ï¾Ü§â¥DÃDÂkÃþ¨ì±MÃD¤¤¡A½s¿è©«¤l¥i­«·s«ü©w±MÃDÃþ§O¡C
9¡G¤ä«ù§â¥DÃD§å¶qÂಾÂkÄݨì¦U­Ó±MÃD¤¤¡C[¥i¿ï¡A§K¶O§Þ³N¤ä«ù]
10¡G¤ä«ù§â±MÃDÂkÃþ¥\¯à­­¨îµ¹´³¦Ë©MºÞ²z­û¥Î¡C[¥i¿ï¡A¥I¶O§Þ³N¤ä«ù]

¨óijÁn©ú¡G
1¡GDiscuz¬OComsenz Technology Ltd¶}µoªº°ª·s²£«~DISCUZ½×¾Âµ{§Ç¡C
2¡GSubject classification¬OAiaiyi WorkRoom[§ä¤£µÛ¥_aday]¬°Discuz¶}µoªº±MÃD´¡¥ó¡A¾Ö¦³¹ï­ì³Ð¥N½Xªºª©Åv
3¡GAiaiyi WorkRoom¨S¦³¹ï¸Ó´¡¥ó´£¨Ñ¥ô¦ó§Þ³N¤ä«ùªº¸q°È¡A©Ò¦³ªº¤ä«ù³£¬O§K¶Oªº©ÎªÌ¬O¦¬¶Oªº¡C
4¡GAiaiyi WorkRoom¤£¹ï¸Ó´¡¥ó¥i¯à³y¦¨¥Î¤áµ{§Ç¤å¥ó¯}Ãa¡B¼Æ¾Ú¥á¥¢¡Bª½±µ©Î¶¡±µªº¨ä¥L·l¥¢­t¥ô¦ó³d¥ô©M³s±a³d¥ô¡C
5¡G·í§A·Ç³Æ¨Ï¥Î¸Ó´¡¥ó®É§A¥²¶·»{¦P©M±µ¨ü¥H¤WÁn©ú¨óij¡A§_«h½Ð¤£­n¨Ï¥Î¥»´¡¥ó¡C
6¡GÂà¶K½Ð°È¥²«O¯d¥»¨óijÁn©ú¡C


¨Ï¥Î¦w¸Ë»¡©ú¡G

¦w¸Ë«e»¡©ú¡G
1¡GAiaiyi WorkRoom¹ïµLªk§¹¦¨¸Ó´¡¥ó¦w¸Ëªº¥H¤ÎD3D4¥Î¤á ´£¨Ñ¥I¶O»·µ{¦w¸Ë¡A­­©ó·~¾lªÅ¶¢®É¶¡¡C
2¡G§K¶O§Þ³N¤ä«ù¡Gfreediscuz½×¾Â,discuz©x¤è½×¾Â¡C¥Ñ©ó«H½c®e¶q­­¨î½Ð¤£­nPM¡A½Ðª½±µ¦b½×¾Âµo¦^¶K©Î·s¶K´M¨D¤ä«ù¡A§Ú·|¸g±`¨Ó³}³}ªº¡C
3¡G¥I¶O§Þ³N¤ä«ù¡GQQ 15871200¡]ÅçÃÒ³q¹L«H®§¬°¡G±MÃD´¡¥ó¥I¶O§Þ³N¤ä«ù¡^¡AEMAIL¡Giiyi@21cn.com


¦w¸Ë«e·Ç³Æ¡G
1¡G¸Ô²Ó¾\Ū¥\¯à´y­z¬Ý¬O§_½T¹ê»Ý­n¸Ó´¡¥ó¨Ã¥Bª©¥»¬Û²Å¡A»{¯u¾\Ū¨óijÁn©ú±µ¨ü¨Ã»{¦P¥¦¡A¾\Ū¦w¸Ë«e»¡©ú¤è«K¦b¦Û¤v¹J¨ì°ÝÃD«á±o¨ì§Þ³N¤ä«ù¡C
2¡G½Ð°µ¼Æ¾Ú®w¥H¤Î¤å¥ó³Æ¥÷¡A¤U­±¬O¥Î¨ìªº¤å¥ó10­Ó½Ð¤@¤@³Æ¥÷¡C¥H«KÀH®ÉÂл\ÁÙ­ì¡C
¸Ó´¡¥ó­×§ïªºÀɮסG
­×§ï¡G¼Æ¾Ú®wªí
¥DÃDªíthreads²K¥[¤@­Ó¦r¬qcate
½×¾Âªíforums²K¥[¤@­Ó¦r¬qcates

­×§ï¡GPHP¤åÀÉ
./admin/forums.php
./forumdisplay.php
./post.php
./include/editpost.php  
./include/newthread.php
¦p»Ý¦w¸Ë§å¶q±MÃD¤ÀÃþ¡G
./topicadmin.php

­×§ï¡GºNªO
forumdisplay.htm
post_editpost.htm  
post_newthread.htm
¦p»Ý¦w¸Ë§å¶q±MÃD¤ÀÃþ¡G
topicadmin_moderate.htm
3¡G¹Ï¤ù6±i ªþ¥ó¤¤½Ð¸ÑÀ£¨ì/images/attachicons¥Ø¿ý
4¡G¦A¦¸½T»{¦Û¤v«ö·Ó»¡©ú¤w¸g³Æ¥÷


«á¥x¥N½X±±¨î¸Ô¸Ñ¡G
1¡G«á¥x¥N½X«D±`¤H©Ê¸Ü©M©ö©ó±±¨î¡C
2¡Gµn³°¨ì«á¥xÂI ½×¾Â½s¿è ±MÃD¤ÀÃþÄæ
3: «e¸monªí¥Ü¶}±Ò©Ò¦bª©¶ôªº±j¨î·|­ûµoªí·s¥DÃD®É­Ô¹ê¦æ±MÃDÂkÃþ¡AÀq»{¬°Ãö³¬§Y¥h±¼on
4¡G¦³®Äªº¥N½X®æ¦¡¡G¥H_©Ò¦³¤å³¹¶}ÀY¡A¥Î|¤À³Î±MÃD¦WºÙ©M¥¦ªº¥N¸¹ ¥N¸¹¤£¯à§ó§ï¡A¦WºÙ¥i¥H§ó§ï¡A«e«á¶¶§Ç¥i¥H½Õ´«
¤U­±¬O¦³®Äªº¥N½X¼Ë¦¡
_©Ò¦³¤å³¹|1_¦Ò¸Õ¬Fµ¦|2_¦Ò¬ã­^»y|3_°ò¦½Ò|4_±M·~½Ò|5_¸gÅç¥æ¬y|6_©Û¥Í¤½§i
_©Ò¦³¤å³¹|4_±M·~½Ò|1_¦Ò¸Õ¬Fµ¦|2_¦Ò¬ã­^»y|3_°ò¦½Ò|6_©Û¥Í¤½§i|5_¸gÅç¥æ¬y
on_©Ò¦³¤å³¹|1_¦Ò¸Õ¬Fµ¦|2_¦Ò¬ã­^»y|3_°ò¦½Ò|4_±M·~½Ò|5_¸gÅç¥æ¬y|6_©Û¥Í¤½§i
on_©Ò¦³¤å³¹|4_±M·~½Ò|1_¦Ò¸Õ¬Fµ¦|2_¦Ò¬ã­^»y|3_°ò¦½Ò|6_©Û¥Í¤½§i|5_¸gÅç¥æ¬y



±MÃD¤ÀÃþ¨Ï¥Î¹Ï¤ù½Ð¸ÑÀ£ÁY¨ìattachicons¥Ø¿ý.rar

±MÃD¤ÀÃþHACKºt¥Ü.rar

¤U­±¤å³¹±Ð¾Ç¶}©l¦w¸Ë

[¦¹©«³Ì«á¥Ñ jerrychf ¦b 2005-10-4 ©ó 11:25 ­×§ï]




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:11  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
²Ä¤@¨B:¤É¯Å¦w¸Ë½Ð¸õ¹L²Ä¤@¨B¡A¥þ·s¦w¸Ë¡]¥H«e¨S¦³¦w¸Ë¹L¥DÃD¤ÀÃþ©ÎªO¤º¤ÀÃþFOR 2.0/2.2¡^½Ð¥ý¤É¯Å¼Æ¾Ú®w


ALTER TABLE `cdb_threads` ADD `cate` VARCHAR( 2 ) DEFAULT '0' NOT NULL AFTER `fid` ;
ALTER TABLE `cdb_forums` ADD `cates` VARCHAR( 150 ) DEFAULT '_©Ò¦³¤å³¹' NOT NULL AFTER `name` ;

²Ä¤G¨B:/admin/forums.php
¬d§ä¡G


showsetting('forums_edit_name', 'namenew', $forum['name'], 'text');

¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//
            showsetting('¥DÃD¤ÀÃþ', 'catesnew', $forum['cates'], 'text');
//=D25 Subject classification=Ver.2.5.0 by Aday=End//

¬d§ä¡G


                        $db->query("UPDATE $table_forums SET type='$typenew', status='$statusnew', fup='$fupnew', name='$namenew', icon='$iconnew',
                                description='$descriptionnew', styleid='$styleidnew', allowhtml='$allowhtmlnew', allowbbcode='$allowbbcodenew',
                                allowimgcode='$allowimgcodenew', allowsmilies='$allowsmiliesnew', postcredits='".intval($postcreditsnew)."',
                                replycredits='".intval($replycreditsnew)."', password='$passwordnew', viewperm='$viewpermnew',
                                postperm='$postpermnew', replyperm='$replypermnew', getattachperm='$getattachpermnew' WHERE fid='$fid'");

´À´«¬°¡G


/******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE Start******
                        $db->query("UPDATE $table_forums SET type='$typenew', status='$statusnew', fup='$fupnew', name='$namenew', icon='$iconnew',
                                description='$descriptionnew', styleid='$styleidnew', allowhtml='$allowhtmlnew', allowbbcode='$allowbbcodenew',
                                allowimgcode='$allowimgcodenew', allowsmilies='$allowsmiliesnew', postcredits='".intval($postcreditsnew)."',
                                replycredits='".intval($replycreditsnew)."', password='$passwordnew', viewperm='$viewpermnew',
                                postperm='$postpermnew', replyperm='$replypermnew', getattachperm='$getattachpermnew' WHERE fid='$fid'");
******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE End******/
//=D25 Subject classification=Ver.2.5.0 by Aday=Change Start//        
                        $db->query("UPDATE $table_forums SET type='$typenew', status='$statusnew', fup='$fupnew', name='$namenew', icon='$iconnew',
                                description='$descriptionnew', cates='$catesnew', styleid='$styleidnew', allowhtml='$allowhtmlnew', allowbbcode='$allowbbcodenew',
                                allowimgcode='$allowimgcodenew', allowsmilies='$allowsmiliesnew', postcredits='".intval($postcreditsnew)."',
                                replycredits='".intval($replycreditsnew)."', password='$passwordnew', viewperm='$viewpermnew',
                                postperm='$postpermnew', replyperm='$replypermnew', getattachperm='$getattachpermnew' WHERE fid='$fid'");
//=D25 Subject classification=Ver.2.5.0 by Aday=Change End//




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:11  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
²Ä¤T¨B:forumdisplay.php  

¬d§ä¡G


$discuz_action = 2;
$navigation = '';

¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//
        if (preg_match("/[^0-9]/",$cateid)) {$cateid="";}
//=D25 Subject classification=Ver.2.5.0 by Aday=End//

¬d§ä¡G


$forumdisplayadd = $filteradd = '';
if(!empty($filter)) {
        if(is_numeric($filter)) {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = "AND lastpost>='".($timestamp - $filter)."'";
        } elseif($filter == 'digest') {
                $forumdisplayadd .= "&filter=digest";
                $filteradd = "AND digest>'0'";
        }
} else {
        $filter = '';
}

´À´«¬°¡G


/******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE Start******
$forumdisplayadd = $filteradd = '';
if(!empty($filter)) {
        if(is_numeric($filter)) {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = "AND lastpost>='".($timestamp - $filter)."'";
        } elseif($filter == 'digest') {
                $forumdisplayadd .= "&filter=digest";
                $filteradd = "AND digest>'0'";
        }
} else {
        $filter = '';
}
******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE End******/
//=D25 Subject classification=Ver.2.5.0 by Aday=Start//
$forumdisplayadd = $caturladd = $filteradd = $cateidadd ='';
if(!empty($filter)) {
        if($filter != 'digest') {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = "AND lastpost>='".($timestamp - $filter)."'";
        } elseif($filter == 'digest') {
                $forumdisplayadd .= "&filter=digest";
                $caturladd .= "&filter=digest";
                $filteradd = "AND digest<>'0'";
        }
} else {
        $filter = '';
}
if(!empty($cateid)) {
                $forumdisplayadd .= "&cateid=$cateid";
                $cateidadd = "AND cate=$cateid ";
} else {
        $cateid = '';
}

$cates=explode("|",$forum[cates]);$cat_count=$i=count($cates);

if($cat_count==1):
                         $subjectcate = $thecates = $cate_must_script = $cate_must_alert = $thecates = "";
else:
                for($i = 0; $i < count($cates); $i++):
                $thecates2 = $thecates1 = explode("_",$cates[$i]);
                if($i == 0){if($thecates1[0]=="on"){$thecates1[0]="";}}
                if($thecates1[0]==$cateid ){$subject_class=$thecates1[1];
$thecates .= "<td width=9><img src=images/attachicons/ttl.gif width=9 height=27></td><td
background=images/attachicons/ttc.gif>$thecates1[1]</td><td
width=9><img src=images/attachicons/ttr.gif width=9 height=27></td>"; }else{$thecates.="<td width=9><img
src=\"images/attachicons/tl.gif\" width=9 height=27></td><td background=\"images/attachicons/tc.gif\"><a href=\"?fid=$forum[fid]$caturladd&cateid=$thecates1[0]\">$thecates1[1]</a></td><td width=9><img src=\"images/attachicons/tr.gif\" width=9
height=27></td>"; }

                if($i == 0){if($thecates2[0]=="on"){$cate_must_script="||theform.cate.value == \"\"";$cate_must_alert="±MÃD¤ÀÃþ¥ç¬°¥²¿ï!";}else{$cate_must_script = $cate_must_alert ="";};$thecates2[0]="";$thecates2[1]="¿ï¾Ü±MÃD";};if($thecates2[0]==$cateid){$subjectcate .=                 "<option value=\"$thecates2[0]\" selected >$thecates2[1]</option>";}else{$subjectcate .= "<option value=\"$thecates2[0]\">$thecates2[1]</option>"; }
                endfor;

$thecates="<TABLE CELLSPACING=0 CELLPADDING=0 border=0 align=\"left\"><TR>".$thecates."</TR></TABLE>";
$subjectcate= "<select name=cate>".$subjectcate."</select>";

endif;
//=D25 Subject classification=Ver.2.5.0 by Aday=End//
¬d§ä¡G


[code]if(!empty($filter)) {
        $query = $db->query("SELECT COUNT(*) FROM $table_threads WHERE fid='$fid' $filteradd");
        $threadcount = $db->result($query, 0);
} else {
        $threadcount = $forum['threads'];
}

´À´«¬°¡G


/******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE Start******
if(!empty($filter)) {
        $query = $db->query("SELECT COUNT(*) FROM $table_threads WHERE fid='$fid' $filteradd");
        $threadcount = $db->result($query, 0);
} else {
        $threadcount = $forum['threads'];
}
******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE End******/
//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
if(!empty($filter)||!empty($cateid)) {
        $query = $db->query("SELECT COUNT(*) FROM $table_threads WHERE fid='$fid' $filteradd $cateidadd");
        $threadcount = $db->result($query, 0);
} else {
        $threadcount = $forum['threads'];
}
//=D25 Subject classification=Ver.2.5.0 by Aday=Start//   
     
¬d§ä¡G


$query = $db->query("SELECT  t.* FROM $table_threads t USE INDEX(displayorder)
                        WHERE t.fid='$fid' $filteradd
                        ORDER BY t.displayorder DESC, t.lastpost $ascdesc
                        LIMIT $start_limit, $tpp ");

´À´«¬°¡G


/******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE Start******
$query = $db->query("SELECT  t.* FROM $table_threads t USE INDEX(displayorder)
                        WHERE t.fid='$fid' $filteradd
                        ORDER BY t.displayorder DESC, t.lastpost $ascdesc
                        LIMIT $start_limit, $tpp ");
******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE End******/
//=D25 Subject classification=Ver.2.5.0 by Aday=Change Start//        
$query = $db->query("SELECT  t.* FROM $table_threads t USE INDEX(displayorder)
                        WHERE t.fid='$fid' $filteradd $cateidadd
                        ORDER BY t.displayorder DESC, t.lastpost $ascdesc
                        LIMIT $start_limit, $tpp ");
//=D25 Subject classification=Ver.2.5.0 by Aday=Change End//

¬d§ä¡G


$check[$filter] = 'selected="selected"';  
      
¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
$check[$cateid] = 'selected="selected"';
//=D25 Subject classification=Ver.2.5.0 by Aday=End//  




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:12  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
²Ä¥|¨B:post.php  

¬d§ä¡G


define('CURRSCRIPT',  'post');

require './include/common.php';

$ismoderator = modcheck($discuz_user);

¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
                $cateid = dhtmlspecialchars($cateid);
                $subjectcate = "";
                $cates=explode("|",$forum[cates]);
                                if(count($cates)==1):
                                $subjectcate = $cate_must_script = $cate_must_alert = "";
                                else:
                $i=count($cates);for($i = 0; $i < count($cates); $i++) {
                                $thecates1 = explode("_",$cates[$i]);if($i == 0){if($thecates1[0]=="on"){$cate_must_script="||theform.cate.value == \"\"";$cate_must_alert="±MÃD¤ÀÃþ¥ç¬°¥²¿ï!";}else{$cate_must_script = $cate_must_alert ="";};$thecates1[0]="";$thecates1[1]="¿ï¾Ü±MÃD";};if($thecates1[0]==$cateid){$subjectcate .=                 "<option value=\"$thecates1[0]\" selected >$thecates1[1]</option>";}else{
                                $subjectcate .= "<option value=\"$thecates1[0]\">$thecates1[1]</option>"; }
                        }

                                endif;
//=D25 Subject classification=Ver.2.5.0 by Aday=End//     
   
¬d§ä¡G


if($tid && $fid) {
        $query = $db->query("SELECT * FROM $table_threads WHERE tid='$tid'");
        $thread = $db->fetch_array($query);
        $fid = $thread['fid'];
        $navigation = "&raquo; <a href=\"viewthread.php?tid=$tid\">$thread[subject]</a>";
        $navtitle = " - $thread[subject]";

¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
                $subjectcate = "";
                $cates=explode("|",$forum[cates]);
                                if(count($cates)==1):
                                $subjectcate = $cate_must_script = $cate_must_alert = "";
                                else:
                $i=count($cates);for($i = 0; $i < count($cates); $i++) {
                                $thecates1 = explode("_",$cates[$i]);if($i == 0){if($thecates1[0]=="on"){$cate_must_script="theform.cate.value == \"\"||";$cate_must_alert="±MÃD¤ÀÃþ¥ç¬°¥²¿ï!";}else{$cate_must_script = $cate_must_alert ="";};$thecates1[0]="";$thecates1[1]="¿ï¾Ü±MÃD";};if($thecates1[0]==$thread[cate]){$subjectcate .=                 "<option value=\"$thecates1[0]\" selected >$thecates1[1]</option>";}else{
                                $subjectcate .= "<option value=\"$thecates1[0]\">$thecates1[1]</option>"; }
                        }

                                endif;
//=D25 Subject classification=Ver.2.5.0 by Aday=End//
      
²Ä¤­¨B:include/editpost.php  

¬d§ä¡G


        $postinfo['subject'] = str_replace('"', "&quot;", $postinfo['subject']);

¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
        $postinfo['cate'] = dhtmlspecialchars($postinfo['cate']);
//=D25 Subject classification=Ver.2.5.0 by Aday=Start//      
  
¬d§ä¡G


                        $db->query("UPDATE $table_threads SET iconid='$iconid', subject='$subject' WHERE tid='$tid'", 'UNBUFFERED');
                        if($pollopts) {
                                $db->query("UPDATE $table_polls SET pollopts='$pollopts' WHERE tid='$tid'", 'UNBUFFERED');
                        }

´À´«¬°¡G


/******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE Start******
                        $db->query("UPDATE $table_threads SET iconid='$iconid', subject='$subject' WHERE tid='$tid'", 'UNBUFFERED');
                        if($pollopts) {
                                $db->query("UPDATE $table_polls SET pollopts='$pollopts' WHERE tid='$tid'", 'UNBUFFERED');
                        }
******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE End******/                        
//=D25 Subject classification=Ver.2.5.0 by Aday=Change Start//        
                        $db->query("UPDATE $table_threads SET iconid='$iconid', cate='$cate', subject='$subject' WHERE tid='$tid'", 'UNBUFFERED');
                        if($pollopts) {
                                $db->query("UPDATE $table_polls SET pollopts='$pollopts' WHERE tid='$tid'", 'UNBUFFERED');
                        }
//=D25 Subject classification=Ver.2.5.0 by Aday=Change End//   




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:12  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
²Ä¤»¨B:include/newthread.php
¬d§ä¡G


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

´À´«¬°¡G


/******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE Start******
        $db->query("INSERT INTO $table_threads (fid, creditsrequire, iconid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, poll, attachment)
                VALUES ('$fid', '$viewperm', '$iconid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '$displayorder', '$digest', '$poll', '".attachtype($last_attach_type, 'id')."')");
        $tid = $db->insert_id();
******=D25 Subject classification=Ver.2.5.0 by Aday=REMOVE End******/
//=D25 Subject classification=Ver.2.5.0 by Aday=Chanage Start//        
        $db->query("INSERT INTO $table_threads (fid, cate, creditsrequire, iconid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, poll, attachment)
                VALUES ('$fid', '$cate', '$viewperm', '$iconid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '$displayorder', '$digest', '$poll', '".attachtype($last_attach_type, 'id')."')");
        $tid = $db->insert_id();
//=D25 Subject classification=Ver.2.5.0 by Aday=Chanage End//   
     
²Ä¤C¨B:post_newthread.htm

¬d§ä


<tr>
<td bgcolor="{ALTBG1}" width="20%">{lang subject}:</td>
<td bgcolor="{ALTBG2}"><input type="text" name="subject" size="45" value="$subject" tabindex="3"></td>
</tr>

¦b¤U­±²K¥[


<!//=D25 Subject classification=Ver.2.5.0 by Aday=Start//>
<!--{if !empty($subjectcate)}-->
<tr>
<td bgcolor="{ALTBG1}" width="20%">±MÃD:</td>
<td bgcolor="{ALTBG2}"><select name=cate>$subjectcate </select> (½Ð¿ï¾Ü©ÒÄÝÃþ§O)</td>
</tr>
<!--{/if}-->
<!//=D25 Subject classification=Ver.2.5.0 by Aday=End//>

¬d§ä¡G


theform.subject.value == "" || theform.message.value == ""

¨ä«á²K¥[¡G


$cate_must_script

¬d§ä¡G


_message_isnull}

¨ä«á²K¥[¡G


$cate_must_alert

²Ä¤K¨B:post_editpost.htm

¬d§ä


<tr>
<td bgcolor="{ALTBG1}" width="20%">{lang subject}:</td>
<td bgcolor="{ALTBG2}">
<input type="text" name="subject" size="45" value="$postinfo[subject]" tabindex="3">
<input type="hidden" name="origsubject" value="$postinfo[subject]">
</td></tr>

¦b¤U­±²K¥[


<!//=D25 Subject classification=Ver.2.5.0 by Aday=Start//>
<!--{if !empty($subjectcate)}-->
<tr>
<td bgcolor="{ALTBG1}" width="20%">±MÃD:</td>
<td bgcolor="{ALTBG2}"><select name=cate>$subjectcate </select> (½Ð¿ï¾Ü©ÒÄÝÃþ§O)</td>
</tr>
<!--{/if}-->
<!//=D25 Subject classification=Ver.2.5.0 by Aday=End//>

¬d§ä¡G


theform.subject.value == "" || theform.message.value == ""

¨ä«e²K¥[¡G


$cate_must_script

¬d§ä¡G


_message_isnull}

¨ä«á²K¥[¡G


$cate_must_alert




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:13  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
²Ä¤E¨B:forumdisplay.htm

¬d§ä¡G


<tr><td class="multi">$multipage</td>
<td align="right">
<!--{if $allowpost}--><a href="post.php?action=newthread&fid=$fid"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
<!--{if $allowpostpoll}--><a href="post.php?action=newthread&fid=$fid&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
</td></tr>

¨ä¤U­±²K¥[¡G


<!//=D25 Subject classification=Ver.2.5.0 by Aday=Start//>
<tr><td class="multi">$thecates</td></tr>
<!//=D25 Subject classification=Ver.2.5.0 by Aday=End//>

¬d§ä¡G


        <tr><td colspan="2" class="header">{lang post_fastpost}</td></tr>
        <tr>
        <td width="18%" bgcolor="{ALTBG1}">

¨ä«á²K¥[¡G$subjectcate  


¬d§ä¡Gª`·N³o­Ó²K¥[¦@¦³4­Ó


<a href="post.php?action=newthread&fid=$fid
«á­±²K¥[&cateid=$cateid



¬d§ä¡G


theform.subject.value == "" || theform.message.value == ""

¨ä«á²K¥[¡G


$cate_must_script

¬d§ä¡G


_message_isnull}

¨ä«á²K¥[¡G


$cate_must_alert

========================¼Ð·Ç¦w¸Ëµ²§ô============================

========================§å¶q¿ï¶µ¦w¸Ë¶}©l========================
¦pªG­n¦w¸Ë§å¶q±MÃD¤ÀÃþ¡G


²Ä¤@¨B:topicadmin.php
¬d§ä¡G


if(!$discuz_user || !$discuz_pw || !modcheck($discuz_user)) {
        showmessage('admin_nopermission', NULL, 'HALTED');
}

¨ä«á´¡¤J¡G


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
$subjectcate = "";
                $cates=explode("|",$forum[cates]);
                $i=count($cates);for($i = 0; $i < count($cates); $i++) {
                                $thecates1 = explode("_",$cates[$i]);if($thecates1[0]==$thread[cate]){$subjectcate .=                 

"<option value=\"$thecates1[0]\" selected >$thecates1[1]</option>";}else{
                                $subjectcate .= "<option value=\"$thecates1[0]\">$thecates1[1]</option>"; }
                        }
//=D25 Subject classification=Ver.2.5.0 by Aday=End//   
     
¬d§ä¡G


                        $db->query("DELETE FROM $table_threads WHERE tid IN ($tids)");
                        $db->query("DELETE FROM $table_posts WHERE tid IN ($tids)");

                        updateforumcount($fid);

                        modlog();
                        showmessage('admin_succeed', "forumdisplay.php?fid=$fid&page=$page");

¨ä«á´¡¤J


//=D25 Subject classification=Ver.2.5.0 by Aday=Start//        
                }elseif($operation == 'cate' && $allowmove){
                        accesscheck($query);
                        if(!cate) {
                                showmessage('admin_cate_invalid');
                        }
                        $db->query("UPDATE $table_threads SET cate='$cate' WHERE  (tid IN ($tids)) AND fid='$fid'");
                        modlog();
                        showmessage('admin_succeed', "forumdisplay.php?fid=$fid&page=$page&cateid=$cate");
//=D25 Subject classification=Ver.2.5.0 by Aday=End//      

²Ä¤G¨B:topicadmin_moderate.htm
¬d§ä


<tr>
        <td bgcolor="{ALTBG1}" width="21%">{lang level}:</td>
        <td bgcolor="{ALTBG2}">
        <input type="radio" name="level" value="0" checked> {lang admin_unstick} &nbsp; &nbsp;
        <input type="radio" name="level" value="1"> <img src="{IMGDIR}/star.gif"> &nbsp; &nbsp;
        <input type="radio" name="level" value="2"> <img src="{IMGDIR}/star.gif"><img src="{IMGDIR}/star.gif"> &nbsp; &nbsp;
        <input type="radio" name="level" value="3"> <img src="{IMGDIR}/star.gif"><img src="{IMGDIR}/star.gif"><img src="{IMGDIR}/star.gif"></td>
</tr>

¦b¨ä¤U­±´¡¤J¡G


<!//=D25 Subject classification=Ver.2.5.0 by Aday=Start// >
<!--{elseif $operation =='cate'}-->
<tr>
        <td bgcolor="{ALTBG1}" width="21%">¥Ø¼ÐÃþ§O</td>
        <td bgcolor="{ALTBG2}">
        <select name="cate">
        $subjectcate
        </select>
</tr>
<!//=D25 Subject classification=Ver.2.5.0 by Aday=End//        >

²Ä¤T¨B:forumdisplay.htm
¬d§ä¡G


              <!--{if $allowmove}-->
              <input type="radio" name="operation" value="move">
              {lang moderate_move}
              <!--{/if}-->

¨ä¤U²K¥[¡G


<!//=D25 Subject classification=Ver.2.5.0 by Aday=Start//>
              <!--{if $allowmove}-->
              <input type="radio" name="operation" value="cate">
              ±MÃD¤ÀÃþ
              <!--{/if}-->
<!//=D25 Subject classification=Ver.2.5.0 by Aday=End//>

========================§å¶q¿ï¶µ¦w¸Ëµ²§ô========================




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:14  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
============§ï¶i­×§ï¶}©l¡A¥[¤J¥DÃD«eÅãµø¤ÀÃþ¦WºÙ================

­×§ï¹wÄý¹Ï:



­×§ïÀÉ®×: forumdisplay.php forumdisplay.htm
­ì¥X³B: http://old.freediscuz.net/old/viewthread.php?tid=29834&fpage=0&highlight=&page=7
¾ã²z­×§ï: jerrychf

­×§ï¶}©l:


forumdisplay.php §ä
$cates=explode("|",$forum[cates]);$cat_count=$i=count($cates);


¤U­±¥[..
$catename = array();


±µµÛ§ä...
$thecates2 = $thecates1 = explode("_",$cates[$i]);


¤U­±¥[

$catename[intval($thecates1[0])] = $thecates1[1];


templates\default\forumdisplay.htm §ä

<!--{elseif $thread['poll']}-->
                    <img src="{IMGDIR}/pollsmall.gif" align="absmiddle"> {lang
                    thread_poll}:&nbsp;
                    <!--{/if}-->


¨ä«á¥[¤J:

<!--{if $thecates != ''}--><!--{if $thread[cate]!=0}--><b>¡i<a href="?fid=$thread[fid]&cateid=$thread[cate]">$catename[$thread[cate]]</a> ¡j</b></a><!--{else}--><!--{/if}--><!--{/if}-->


§¹¦¨

§Ú©O­Ó­×§ï«Y°w¹ï¤W­±¬J³sµ²©Ò­×§ï¡A¥D­n«YÅãµø±o§ó¥[è°¦P¥ø²z d

¥t¥~¦³¤H´£¥X¹L©O­Ó­×§ï¤èªk­ø¦n¡A·|¼W¥[¬d¸ß¤SÉA¤Sª«¡A¦ý«Y¸g§Ú¬J´ú¸Õ¹L«á¡A©O­Ó¤èªk¦n¦b«Y¥H¤U¬J¤å³¹¤ÀÃþ±Æ¦C¬J®É­Ô¥Î±o¤W¦Ó¥B¥¿½T show ¥X

_©Ò¦³¤å³¹|6_¬üª©¬ÛÃö|7_¥xª©¬ÛÃö|1_·s»D|2_¥ô°È|3_¬G¨Æ|4_¼v¤ù¬ÛÃö|5_´¡¥ó UI


«Y¥H¤W±¡ªp¡A¦pªG¥Î³Ì²³æ¬J­×§ï¤èªk¡A«Y´¶³q¬J±Æ¦C¤è¦¡©³¤U¥i¥HÅãµø¥X¤ÀÃþ¦WºÙ¡A¦ý«Y¦]¬°µ²ºc²³æ¦Ó­ø¯à°÷¥¿½TÅãµø¥H¤W¬J±Æ¦C¦¸§Ç¡A¨Ò¦p§Úµo¤å³¹­Ó®É«Y²¥ª 5 ¸¹«Y­Ó­Ó¤å³¹¤ÀÃþ¡A¦ý«Y«Y show ¥Xªd­Ó®É·|¨Ì·Ó¼Æ¥Ø¦r¶¶§Ç¦Ó¿ù»~Åãµø¬° 1 ¸¹¡C

²³æ¸Ñ»¡¿ù»~Åãµø:

¤å³¹¬J¤ÀÃþ¥¿½T¬° 1 ¸¹¡A¦ý«Y«Y forumdisplay ­Ó®ÉÅãµø¥ª 6 ¸¹

¦ý«Y¥H¤W¬J¸Ô²Ó­×§ï´N¥i¥H¸Ñ¨M¨ì¥H¤W¬JÅãµø°ÝÃD

[¦¹©«³Ì«á¥Ñ jerrychf ¦b 2005-10-4 ©ó 11:36 ­×§ï]




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:18  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 
·Q­ø­n©O­Ó hack ¡A°£¥ª¸Ü±N¥H¤W¬J³¥­ËÂà¥h°µ§R°£¥N½X / ¥Î backup ¬J php replace ¸¨¥h¡A¥ò­n¥Î®I©O¨â¥y³¥«Y mysql ¤J­±

ALTER TABLE `cdb_threads` DROP `cate`  ;
ALTER TABLE `cdb_forums` DROP `cates`  ;


¾ã­Ó hack ¾ã²z§¹²¦...




 AL8 Forum © All rights reserved.
³»³¡
 jerrychf
 0000709
Rank: 3Rank: 3Rank: 3
ÂIÀ»¬d¬Ý jerrychf ªº¸Ô²Ó¸ê®Æ

ÀY»Î: Conqueror

©«¤l: 119

ºëµØ: 2

¿n¤À: 3960 ÂI

²{ª÷: 163 ¤¸

¦s´Ú: 963 ¤¸

¾\ŪÅv­­: 20

µù¥U: 2004-3-10

ª¬ºA: Â÷½u
  ¤j ¤¤ ¤p
µoªí©ó 2005-10-4 11:25  ¸ê®Æ  ­Ó¤HªÅ¶¡  µu®ø®§  ¥[¬°¦n¤Í 




 AL8 Forum © All rights reserved.
³»³¡
 lennonyan
 0028933
Rank: 4Rank: 4Rank: 4Rank: 4

ÀY»Î: Lord

©«¤l: 435

ºëµØ: 0

¿n¤À: 1750 ÂI

²{ª÷: 9 ¤¸

¦s´Ú: 2541 ¤¸

¾\ŪÅv­­: 25

µù¥U: 2005-8-21

ª¬ºA: Â÷½u