詳しい説明は#pragma twiceのトップページをご覧ください。
num;
// ページ番号を取得します。
$page_no = $_GET["page_no"];
// print $page_no;
if( preg_match( "/([0-9][0-9][0-9])/", $page_no, $ms ) == FALSE )
{
Error404( $dots );
}
if (
( 0 + $page_no < 1 ) ||
( $CHAPTER_MAX < 0 + $page_no )
)
{
// header( "HTTP/1.0 404 Not Found" );
Error404( $dots );
}
// このページの情報を取得します。
$current_html = file_get_contents( 'Main/'.$page_no.'.html' );
if( $current_html == FALSE )
{
Error404( $dots );
}
// print $current_html;
// exit;
// 本文を抜き出します。
$text_ary = explode( "", $current_html );
$text_ary = explode( "", $text_ary[1] );
$text = $text_ary[0];
$text = str_replace( "「", '「', $text );
$text = str_replace( "」", '」', $text );
$text = str_replace( "『", '『', $text );
$text = str_replace( "』", '』', $text );
$text .= "
";
// ひとつ前のページ番号を取得します。
$page_before_no = 0 + $page_no - 1;
$page_before_no = add_zero3( $page_before_no );
// ひとつ先のページ番号を取得します。
$page_next_no = 0 + $page_no + 1;
$page_next_no = add_zero3( $page_next_no );
// タイトルを取得します。
$title = fromxml( $index_xml->titles[0]->title[$page_no - 1] );
// Amazon広告を取得します。
// $amazon_best_seller = get_random_amazon_ad_prog();
// $amazons = $amazon_best_seller->AMAZON_BEST_SELLERS;
// $search_index_title = $amazon_best_seller->BROWSE_NODE_LIST->TITLE;
//
// $amazons = replace_now_printing( $amazons );
?>
