if (isset($_SERVER['HTTP_REFERER'])) { $back_link = '<a href="' . htmlspecialchars($_SERVER['HTTP_REFERER'], ENT_QUOTES) . '" title="戻る">戻る</a> '; } //================================================= // レス読み込み //================================================= $aThread = new ThreadRead(); $aThread->setThreadPathInfo($host, $bbs, $key); if (file_exists($aThread->keydat)) { // スレッド情報 $aThread->readDat($aThread->keydat); $one = $aThread->explodeDatLine($aThread->datlines[0]); $ttitle = trim($one[4]); $ttitle_en = UrlSafeBase64::encode($ttitle); $ttitle_ht = htmlspecialchars($ttitle, ENT_QUOTES); $url_txt = $aThread->getMotoThread(true); $url_k_txt = $aThread->getMotoThread(); if ($quote) { $url_txt .= $resid; $url_k_txt .= $resid; } if ($url_txt != $url_k_txt) { $url_k_ht = "<input type=\"text\" name=\"url_k_txt\" value=\"{$url_k_txt}\"><br>"; } // 投稿フォームへのリンク $post_url = "post_form.php?host={$host}&bbs={$bbs}&key={$key}"; $post_url .= "&rescount={$aThread->rescount}&ttitle_en={$ttitle_en}&b=k"; $post_link = "<a href=\"{$post_url}\">レス</a> "; // 元スレへのリンク $moto_link = '<a href="' . P2Util::throughIme($url_k_txt) . '">元スレ</a> '; // 指定番号のレスをパース
$name_txt = ''; $mail_txt = ''; $date_txt = ''; $msg_txt = ''; $id_txt = ''; $id_ht = ''; $form_id = P2_REQUEST_ID; if (!file_exists($aThread->keydat)) { p2die('スレッドの指定が変です。'); } // スレッド情報 $aThread->readDat($aThread->keydat); $first = $aThread->explodeDatLine($aThread->datlines[0]); $ttitle = trim($first[4]); $ttitle_en = base64_encode($ttitle); $moto_url = $aThread->getMotoThread(true); $moto_url_k = $aThread->getMotoThread(); if ($moto_url != $moto_url_k) { $moto_url_k_ht = sprintf('<input type="text" name="dummy_moto_url_k" value="%s"><br>', hs($moto_url_k)); } // 投稿フォーム <a> $post_link_atag = _getPostLinkATag($aThread, $ttitle_en); // 元スレへ <a> $moto_link_atag = P2View::tagA(P2Util::throughIme($moto_url_k), '元スレ'); // 指定番号のレスをパース $p = $resid - 1; if (isset($aThread->datlines[$p])) { $resar = $aThread->explodeDatLine($aThread->datlines[$p]); // $resar[2]: 2006/10/20(金) 11:46:08 ID:YS696rnVP BE:32616498-DIA(30003)" $name_txt = trim(strip_tags($resar[0])); $mail_txt = trim(strip_tags($resar[1]));