Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ThreadRead.php.orig 2013-03-01 15:41:42.000000000 +0900
- +++ ThreadRead.php 2013-03-27 20:11:51.000000000 +0900
- @@ -1017,7 +1017,7 @@
- $dat_response_msg_ht = '';
- $kakosoko_match = '/このスレッドは過去ログ倉庫に格.{1,2}されています/';
- - $vip2ch_kakosoko_match = '/過去ログ倉庫に格.{1,2}されています/';
- + $vip2ch_kakosoko_match = '/このスレッドはHTML化(過去ログ化)されています/';
- $naidesu_match = "{<title>そんな板orスレッドないです。</title>}";
- $error3939_match = "{<title>2ちゃんねる error 3939</title>}"; // 過去ログ倉庫でhtml化の時(他にもあるかも、よく知らない)
- @@ -1027,6 +1027,7 @@
- //$kakohtml_match = "{<a href=\"\.\./\.\./\.\./\.\./([^/]+/kako/\d+(/\d+)?/(\d+)).html\">}";
- $kakohtml_match = "{/([^/]+/kako/\d+(/\d+)?/(\d+)).html\">}";
- $waithtml_match = "/html化されるのを待っているようです。/";
- + $kakodat_match = "{/([^/]+/kako/\d+(/\d+)?/(\d+)).dat\">}";
- //
- // <title>がこのスレッドは過去ログ倉庫に
- @@ -1067,8 +1068,25 @@
- $soko_atag,
- hs($read_kako_url)
- );
- +
- + } elseif (preg_match($kakodat_match, $read_response_html, $matches)) {
- + $dat_responnse_status = "隊長! 過去ログ倉庫で、datを発見しました。";
- + $kakolog_uri = "http://{$this->host}/{$matches[1]}";
- +
- + $read_kako_url = $this->getReadKakologUri($kakolog_uri);
- +
- + $soko_atag = P2View::tagA($kakolog_uri . '.html',
- + 'スレッド ' . $matches[3] . '.html',
- + array('target' => $_conf['bbs_win_target'])
- + );
- - } elseif (preg_match($waithtml_match, $read_response_html, $matches)) {
- + $dat_response_msg_ht = sprintf(
- + '<p>2ch info - 隊長! 過去ログ倉庫で、%s を発見しました。 [<a href="%s">p2に取り込んで読む</a>]</p>',
- + $soko_atag,
- + hs($read_kako_url)
- + );
- +
- + } elseif (preg_match($waithtml_match, $read_response_html, $matches)) {
- $dat_response_status = "隊長! スレッドはhtml化されるのを待っているようです。";
- $marutori_ht = ' ' . $this->getMarutoriHtml();
- $dat_response_msg_ht = "<p>2ch info - 隊長! スレッドはhtml化されるのを待っているようです。 {$marutori_ht}</p>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement