これらのキーワードがハイライトされています:o2on 892@part32さんのrep2実況モード (+live) †+Wikiパッチ †
[[単語]]の形式でWikipediaに飛ぶ †function wikipedia($msg) { // [[語句]]があった時にWikipediaへ自動リンクするんだぜ? global $_conf; $msg = mb_convert_encoding($msg, "UTF-8", "SJIS_win"); // SJISはうざいからUTF-8に変換するんだぜ? if($_conf['ktai']){ $wikipedia = "http://ja.wapedia.org/"; // WapediaのURLなんだぜ? }else{ $wikipedia = "http://ja.wikipedia.org/wiki/"; // WikipediaのURLなんだぜ? } $search = "/\[\[[^\[\]\n<>]+\]\]+/"; // 目印となる正規表現なんだぜ? preg_match_all($search, $msg, $matches); // [[語句]]を探すんだぜ? $matched = preg_replace("/^\[\[|\]\]$/", "", $matches[0]); // いったん"[["と"]]"を取るんだぜ? foreach ($matched as $value) { // リンクに変換するんだぜ? $replaced[] = "[[<a href=?"" . P2Util::throughIme($wikipedia . rawurlencode($value)) . "?"" . $_conf['ext_win_target_at'] . ">$value</a>]]"; // しっかりimeを通すんだぜ? } $msg = str_replace($matches[0], $replaced, $msg); // 変換後の本文を戻すんだぜ? $msg = mb_convert_encoding($msg, "SJIS_win", "UTF-8"); // UTF-8からSJISに戻すんだぜ? return $msg; } $msg = preg_replace_callback($this->str_to_link_regex, array($this, 'link_callback'), $msg); return $msg; $msg = wikipedia($msg); // Wikipediaへの自動リンクなんだぜ。 にくちゃんねる・みみずん検索からDATを取得 †$this->downloadDat2ch($this->length); $this->downloadDat2ch($this->length,$_GET["dat"]); function downloadDat2ch($from_bytes) function downloadDat2ch($from_bytes,$dat) $url = 'http://' . $this->host . "/{$this->bbs}/dat/{$this->key}.dat"; switch($dat){ case 1: if(strpos($this->host,"bbspink")){ $niku_host = "bbspink-"; }else{ $niku_host = ""; } $niku_host .= substr($this->host,0,strpos($this->host,".")); $url = 'http://makimo.to/cgi-bin/html2dat/html2dat.cgi?' . $niku_host . "_{$this->bbs}/" .substr($this->key,0,4) . "/{$this->key}.html"; break; case 2: $url = "http://mimizun.com:81/log/2ch/{$this->bbs}/{$this->host}/{$this->bbs}/kako/" .substr($this->key,0,4) . "/" . substr($this->key,0,5) . "/{$this->key}.dat"; break; default: $url = 'http://' . $this->host . "/{$this->bbs}/dat/{$this->key}.dat"; break; } $dat_response_msg = "<p>2ch info - このスレッドは過去ログ倉庫に格納されています。 [{$marutori_ht}]</p>"; $ktai = $_conf['ktai'] ? "&b=k" : ""; $nikutori_ht = "<a href=\"{$_conf['read_php']}?host={$this->host}&bbs={$this->bbs}&key={$this->key}&ls={$this->ls}&dat=1{$ktai}\">にくちゃんねるからp2に取り込む</a>"; $mimitori_ht = "<a href=\"{$_conf['read_php']}?host={$this->host}&bbs={$this->bbs}&key={$this->key}&ls={$this->ls}&dat=2{$ktai}\">みみずん検索からp2に取り込む</a>"; $dat_response_msg = "<p>2ch info - このスレッドは過去ログ倉庫に格納されています。 [{$marutori_ht}] [{$nikutori_ht}] [{$mimitori_ht}]</p>"; 必死チェッカー(スレッド用) †$board=array('ghard', 'gamenews', 'famicom', 'gamerpg', 'gamesrpg', 'handygame', 'gamerobo', 'ff', 'game', 'gamef', 'arc', 'wifi', 'gamechara', 'gamestg', 'gamemusic', 'gamefight', 'gal', 'gsaloon', 'gline', 'newsplus', 'news', 'mnewsplus', 'bizplus', 'news2', 'news4plus', 'aasaloon', 'occult', 'sfx', 'korea', 'av', 'pav', 'stock', 'market', 'baby', 'ms', 'campus', 'livevenus', 'livenhk', 'liveetv', 'liventv', 'livetbs', 'livecx', 'liveanb', 'livetx', 'livemarket1', 'livemarket2', 'jsaloon', 'kouri', 'dog', 'bike', 'f1', 'base', 'mlb', 'hsb', 'soccer', 'football', 'wres', 'keiba', 'ogame', 'ogame2', 'ogame3', 'netgame', 'mmo', 'mmominor', 'anime', 'anime2', 'voice', 'voiceactor', 'doujin', 'comic', 'wcomic', 'musicnews', 'musicj', 'musice', 'jisaku', 'software', 'swf', 'download', 'net', 'news4vip', 'neet4vip'); if($id && ereg("^[a-zA-Z0-9]+\.2ch\.net$",$this->thread->host)){ if(array_search($this->thread->bbs,$board)){ preg_match("/(\d{4})\/(\d{2})\/(\d{2})/i",$date_id,$date_array); $date = $date_array[1].$date_array[2].$date_array[3]; if($date){ $hissi_url=P2Util::throughIme("http://hissi.dyndns.ws/read.php/{$this->thread->bbs}/{$date}/".base64_encode($id).".html"); $tores.= "<a href=\"{$hissi_url}\" onmouseover=\"showHtmlPopUp('{$hissi_url}',event,0.2)\" onmouseout=\"offHtmlPopUp()\" target=\"_blank\"><img src=\"img/check.png\"></a>"; } } } 必死チェッカー(板用) †echo "</table>\n"; if(ereg("^[a-zA-Z0-9]+\.2ch\.net$",$aThreadList->host)){ $board=array('ghard', 'gamenews', 'famicom', 'gamerpg', 'gamesrpg', 'handygame', 'gamerobo', 'ff', 'game', 'gamef', 'arc', 'wifi', 'gamechara', 'gamestg', 'gamemusic', 'gamefight', 'gal', 'gsaloon', 'gline', 'newsplus', 'news', 'mnewsplus', 'bizplus', 'news2', 'news4plus', 'aasaloon', 'occult', 'sfx', 'korea', 'av', 'pav', 'stock', 'market', 'baby', 'ms', 'campus', 'livevenus', 'livenhk', 'liveetv', 'liventv', 'livetbs', 'livecx', 'liveanb', 'livetx', 'livemarket1', 'livemarket2', 'jsaloon', 'kouri', 'dog', 'bike', 'f1', 'base', 'mlb', 'hsb', 'soccer', 'football', 'wres', 'keiba', 'ogame', 'ogame2', 'ogame3', 'netgame', 'mmo', 'mmominor', 'anime', 'anime2', 'voice', 'voiceactor', 'doujin', 'comic', 'wcomic', 'musicnews', 'musicj', 'musice', 'jisaku', 'software', 'swf', 'download', 'net', 'news4vip', 'neet4vip'); if(array_search($aThreadList->bbs,$board)){ require_once P2_LIBRARY_DIR . '/filectl.class.php'; $hissi_url=P2Util::throughIme("http://hissi.dyndns.ws/read.php/{$aThreadList->bbs}/"); $hissi_ht = <<<EOP | <a href="{$hissi_url}" target="read">必死チェッカー</a> EOP; } } echo "</p>"; echo $hissi_ht; 被参照レス †$url_res = "read.php\?bbs={$this->thread->bbs}&key={$this->thread->key}&host={$this->thread->host}&ls=all&offline=1&field=msg&word=%28%3E%7C%81%84%29%28%5Cd%2B%2C%29*{$i}%5CD&method=reg |