572 名前:名称未設定 メェル:sage 投稿日:02/12/15 00:52 ID:fhaHWkke >>571 試しにこんなん作ってみますた http://moooyu.tripod.co.jp/p2conf.txt 拡張子を.phpにしてp2と同じ階層に設置 conf_user.phpとconf_style.incのパーミッションを666にする 正規表現でむりやり対応してるので設定ファイルの書式変わったら使えなくなるし, style/以下のファイルには対応できてないしできそうにない 誰か改良してー
patch -p1 < (パッチファイル名)
#ref(): File not found: "p2_1.01.prev_more.patch" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "favicon.ico" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "favicon2.ico" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "AA_favicon_jien.tgz" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "p2_ex_pack_v101.lzh" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "frame_ex.zip" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
index.php --- 47,48c47,51 < <frameset cols="156,*" frameborder="1" border="1"> < <frame src="menu.php" name="menu" scrolling="auto"> --- > <frameset cols="40%,*" frameborder="1" border="1"> > <frameset rows="160,*" frameborder="1" border="1"> > <frame src="menu.php" name="menu" scrolling="auto" noresize> > <frame src="{$title_page}" name="subject" scrolling="auto"> > </frameset> 53,54d55 < <frameset rows="40%,60%" frameborder="1" border="2"> < <frame src="{$title_page}" name="subject" scrolling="auto"> 56d56 < </frameset>
#ref(): File not found: "p2_menu_bg.png" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "p2_menu_bg_mona_ie.png" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
ダウソした後ファイルを解凍、添付の「取扱説明書.txt」を読んで下さい。 尚、今回よりバージョンアップの際に修正する手間の軽減とファイル管理を容易にする 目的から「プラグイン」方式を採用しました。 これにより導入が簡単になったと思います。
ダウソした後ファイルを解凍、添付の「取扱説明書.txt」を読んで下さい。
$p2="http://hogehoge.co.jp/~foo/p2/"; //p2の設置URL httpからフルパスで。相対だと上手く動かないかも $p2dir="/home/foo/public_html/p2"; //p2の設置ディレクトリ フルパスで。相対だと多分動きません $datadir=$p2dir."/data"; //p2のdataディレクトリ $dir2ch=$datadir."/2channel"; //2chのdatの位置 $cache_dir = $datadir."/p2_cache"; //p2のcacheディレクトリ $brd_dir = $cache_dir."/azlucky.s25.xrea.com/2chboard"; //2chのボードファイルの位置 $brd_file = "bbsmenu.html.p2.brd"; //ボードファイル名
@@ -101,7 +101,7 @@ $i++; } foreach($entry as $value) { - if($value != "." && $value !=".." && $value != false && is_dir($path."/".$value)) { + if($value != "." && $value !=".." && $value != false && is_dir($path."/".$value) && glob($path."/".$value."/*.dat")) { $result[] = $value; } } @@ -159,10 +159,15 @@ $key = basename($filename,".dat"); $bbs = explode("/",dirname($filename)); $idxname = str_replace(".dat",".idx",$filename); + if(!file_exists($idxname)){ + $url = $p2."subject.php?host=".$host[0]."&bbs=".$bbs[count($bbs)-1]."&norefresh=true&spmode=soko"; + echo "<a href=?"$url?" target=?"_new?">$host[2] : 過去ログ倉庫</a></br>?n"; + }else{ $idxstr = file_get_contents($idxname); $thread_title = explode("<>",$idxstr); $url = $p2."read.php?bbs=".$bbs[count($bbs)-1]."&key=".$key."&host=".$host[0]."&ls=all&offline=1&field=msg&word=".rawurlencode($query)."&match=on"; echo "<a href=?"$url?" target=?"_new?">$host[2] : $thread_title[0]</a></br>?n"; + } }else{ continue; }
#ref(): File not found: "p2_preview.zip" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
p2/post_form.php p2/read_footer.inc p2/js/post_form.js
#ref(): File not found: "p2_105_expack_20040925-MMOBBSlink_20041014.tar.gz" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
p2/showthreadk_class.inc p2/showthreadpc_class.inc
(1)解凍して出てきた以下のファイルを標準ファイルへ上書きして下さい。 index.php menu.php (2)conf_user.php を添付のread_me.txtに従って設定変更して下さい。
#ref(): The style ref(filename,pagename) is ambiguous and become obsolete. Please try ref(pagename/filename)
#ref(): File not found: "p2_v111_errlog.zip" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
#ref(): File not found: "search_title2.zip" at page "ユーザーカスタマイズ(p2 〜Ver 1.6.7)"
if (($_conf['sb_show_one'] == 1) or ($_conf['sb_show_one'] == 2 and ereg("news", $aThreadList->bbs) || ereg("plus", $aThreadList->bbs) || $aThreadList->bbs == 'bizplus' || $aThreadList->bbs == 'asia' || $aThreadList->bbs == 'archives' || $aThreadList->bbs == 'kokusai' || $aThreadList->bbs == 'iraq')) {