diff -c orig/conf_user.php mod/conf_user.php *** orig/conf_user.php Sun Sep 28 06:36:56 2003 --- mod/conf_user.php Sun Sep 28 06:37:44 2003 *************** *** 73,78 **** --- 73,81 ---- $proxy['host'] = ""; // ("") プロキシホスト ex)"127.0.0.1", "www.p2proxy.com" $proxy['port'] = ""; // ("") プロキシポート ex)"8080" + + $numToPreview = 20; // (1) プレビュー時に表示するレスの数 + /* expack: 看板ポップアップ ================================================ */ /* kb_disp_* を3つとも0にすると看板はレスポップアップ、それ以外はHTMLポップアップ * レスポップアップでは $kb_popup_delay が反映されない。(※showResPopUp()の仕様) diff -c orig/read.php mod/read.php *** orig/read.php Sat Sep 20 20:01:49 2003 --- mod/read.php Sun Sep 28 07:29:20 2003 *************** *** 128,134 **** // ========================================================== if($_GET['one']){ ! $body=$aThread->previewOne(); $ptitle_ht = $aThread->itaj." / ".$aThread->ttitle; include($read_header_inc); echo $body; --- 128,134 ---- // ========================================================== if($_GET['one']){ ! $body=$aThread->previewOne($numToPreview); $ptitle_ht = $aThread->itaj." / ".$aThread->ttitle; include($read_header_inc); echo $body; diff -c orig/read_footer.inc mod/read_footer.inc *** orig/read_footer.inc Wed Aug 20 09:57:31 2003 --- mod/read_footer.inc Sun Sep 28 08:55:06 2003 *************** *** 83,88 **** --- 83,89 ---- {$q_ichi} {$all_st} + {$read_specified} {$read_navi_previous} {$read_navi_next} {$latest_st}{$latest_show_res_num} diff -c orig/read_header.inc mod/read_header.inc *** orig/read_header.inc Sun Aug 31 15:51:42 2003 --- mod/read_header.inc Sun Sep 28 08:55:16 2003 *************** *** 7,12 **** --- 7,13 ---- $info_st="情報"; $delete_st="削除"; $all_st="全部"; + $read_specified="範囲指定"; $prev_st="前"; $next_st="次"; $shinchaku_st="新着レスの表示"; *************** *** 296,301 **** --- 297,303 ---- {$all_st} + {$read_specified} {$read_navi_range} {$read_navi_previous_header} {$latest_st}{$latest_show_res_num} diff -c orig/sb_print.inc mod/sb_print.inc *** orig/sb_print.inc Sun Sep 28 06:47:04 2003 --- mod/sb_print.inc Sun Sep 28 07:26:25 2003 *************** *** 16,26 **** //変数================================================ //>>1 ! if( ereg("news", $aThreadList->bbs) || $aThreadList->bbs=="bizplus" || $aThreadList->spmode=="news"){ ! if($aThreadList->spmode != "soko"){//倉庫は除く $only_one_bool = true; ! } ! } //チェックボックス if($aThreadList->spmode == "taborn" or $aThreadList->spmode == "soko"){ --- 16,26 ---- //変数================================================ //>>1 ! # if( ereg("news", $aThreadList->bbs) || $aThreadList->bbs=="bizplus" || $aThreadList->spmode=="news"){ ! # if($aThreadList->spmode != "soko"){//倉庫は除く $only_one_bool = true; ! # } ! # } //チェックボックス if($aThreadList->spmode == "taborn" or $aThreadList->spmode == "soko"){ *************** *** 73,79 **** if($sb_view=="edit"){echo " ";} //並替 if($sb_view!="edit"){echo $midoku_sort_ht;} //新着 if($sb_view!="edit"){echo "レス";} - if($only_one_bool){echo " ";} //>>1 if($checkbox_bool){echo "";} //チェックボックス echo "No."; echo "タイトル"; --- 73,78 ---- *************** *** 158,164 **** $unum_ht="".$unum_ht_c.""; //総レス数 ============================================= ! $rescount_ht="{$aThread->rescount}"; // 板名 ============================================ if($ita_name_bool){ --- 157,167 ---- $unum_ht="".$unum_ht_c.""; //総レス数 ============================================= ! if($only_one_bool){ ! $rescount_ht="host}{$bbs_q}{$key_q}&one=true\">{$aThread->rescount}"; ! }else{ ! $rescount_ht="{$aThread->rescount}"; ! } // 板名 ============================================ if($ita_name_bool){ *************** *** 217,227 **** } $change_color=" onClick=\"chTtColor('{$i}');{$chUnColor_ht}\""; - // オンリー>>1============================================= - if($only_one_bool){ - $one_ht="host}{$bbs_q}{$key_q}&one=true\">>>1"; - } - // チェックボックス ============================================= if($checkbox_bool){ $checked_ht=""; --- 220,225 ---- *************** *** 269,275 **** $edit_ht $unum_ht $rescount_ht - $one_ht $checkbox_ht {$torder_ht} {$aThread->ttitle_ht} --- 267,272 ---- diff -c orig/subject.php mod/subject.php *** orig/subject.php Tue Jul 1 16:37:58 2003 --- mod/subject.php Sun Sep 28 07:31:08 2003 *************** *** 588,594 **** require_once("./sb_print.inc"); //スレッドサブジェクトメイン部分HTML表示関数 $debug && $prof->startTimer( "sb_print" ); ! sb_print($aThreadList); $debug && $prof->stopTimer( "sb_print" ); $debug && $prof->printTimers( true ); --- 588,594 ---- require_once("./sb_print.inc"); //スレッドサブジェクトメイン部分HTML表示関数 $debug && $prof->startTimer( "sb_print" ); ! sb_print($aThreadList, $numToPreview); $debug && $prof->stopTimer( "sb_print" ); $debug && $prof->printTimers( true ); diff -c orig/threadread_class.inc mod/threadread_class.inc *** orig/threadread_class.inc Mon Sep 8 07:14:59 2003 --- mod/threadread_class.inc Sun Sep 28 15:46:20 2003 *************** *** 671,687 **** //============================================================================ // previewOne -- >>1のみをプレビューするメソッド //============================================================================ ! function previewOne(){ global $p2version, $dat_response_msg, $ls, $ptitle_ht, $fsockopen_time_limit, $ext_win_target, $_info_msg_ht, $proxy; if(!($this->host && $this->bbs && $this->key)){return false;} if( is_readable($this->keydat) ){ //ローカルdatから取得 $fd = fopen($this->keydat, "r"); ! $wr= fgets ($fd,32800); fclose ($fd); ! $first_datline = rtrim($wr); if( strstr($first_datline, "<>") ){ $datline_sepa="<>"; }else{ --- 671,691 ---- //============================================================================ // previewOne -- >>1のみをプレビューするメソッド //============================================================================ ! function previewOne($num){ global $p2version, $dat_response_msg, $ls, $ptitle_ht, $fsockopen_time_limit, $ext_win_target, $_info_msg_ht, $proxy; if(!($this->host && $this->bbs && $this->key)){return false;} if( is_readable($this->keydat) ){ //ローカルdatから取得 $fd = fopen($this->keydat, "r"); ! ! for($i=0;$i<$num&&!feof($fd);$i++) ! $wr[$i] = fgets($fd, 32800); ! if(count($wr)<$num)//設定したレス数に満たないときの処理 ! $wr = array_splice($wr, 0, -1); fclose ($fd); ! $first_datline = rtrim($wr[0]); if( strstr($first_datline, "<>") ){ $datline_sepa="<>"; }else{ *************** *** 740,746 **** if($start_here){ if($code=="200"){ ! $wr = fgets($fp,32800); break; }else{ fclose ($fp); --- 744,753 ---- if($start_here){ if($code=="200"){ ! for($i=0;$i<$num&&!feof($fp);$i++) ! $wr[$i] = fgets($fp,32800); ! if(count($wr)<$num)//設定したレス数に満たないときの処理 ! $wr = array_splice($wr, 0, -1); break; }else{ fclose ($fp); *************** *** 769,775 **** } fclose ($fp); ! $first_datline = rtrim($wr); if( strstr($first_datline, "<>") ){ $datline_sepa="<>"; }else{ --- 776,782 ---- } fclose ($fp); ! $first_datline = rtrim($wr[0]); if( strstr($first_datline, "<>") ){ $datline_sepa="<>"; }else{ *************** *** 791,797 **** include_once("./showthread_class.inc"); //HTML表示クラス include_once("./showthreadpc_class.inc"); //HTML表示クラス $aShowThread = new ShowThreadPc($this); ! $body .= $aShowThread->transRes($wr,1); //1を表示 unset($aShowThread); $body .= "\n"; --- 798,805 ---- include_once("./showthread_class.inc"); //HTML表示クラス include_once("./showthreadpc_class.inc"); //HTML表示クラス $aShowThread = new ShowThreadPc($this); ! for($i=0;$itransRes($wr[$i],$i+1); //1〜$numを表示 unset($aShowThread); $body .= "\n";