$val) { if ( $val['hidden'] == 'yes' ) { continue; } if ( $val['lastupdate'] < time()-7*24*60*60 ) { continue; } if ( $_REQUEST['cat'] ) { if ( $_REQUEST['cat'] == '未分類' ) { if ( !empty($val['category']) ) { continue; } } else { if ( empty($val['category']) ) { continue; } $found = false; foreach($val['category'] as $cat) { if ( preg_match('/'. preg_quote($_REQUEST['cat'], '/') . '($|\/)/', $cat) ) { $found = true; } } if ( !$found ) { continue; } } } if ( $_REQUEST['tag'] ) { if ( empty($val['keywords_ary']) || !in_array($_REQUEST['tag'], $val['keywords_ary']) ) { continue; } } $bNew = true; } ?>
カテゴリ「%s」の記事一覧

' . "\n", htmlspecialchars($_REQUEST['cat'])); } else if ( $_REQUEST['tag'] ) { printf('

タグ「%s」の記事一覧

' . "\n", htmlspecialchars($_REQUEST['tag'])); } ?>
最新情報'; print '
'; foreach($data as $file => $val) { if ( $val['hidden'] == 'yes' ) { continue; } if ( $val['lastupdate'] < time()-7*24*60*60 ) { continue; } if ( $_REQUEST['cat'] ) { if ( $_REQUEST['cat'] == '未分類' ) { if ( !empty($val['category']) ) { continue; } } else { if ( empty($val['category']) ) { continue; } $found = false; foreach($val['category'] as $cat) { if ( preg_match('/'. preg_quote($_REQUEST['cat'], '/') . '($|\/)/', $cat) ) { $found = true; } } if ( !$found ) { continue; } } } if ( $_REQUEST['tag'] ) { if ( empty($val['keywords_ary']) || !in_array($_REQUEST['tag'], $val['keywords_ary']) ) { continue; } } if ( $val['post'] ) { if ( !$val['modified'] || $val['post'] == $val['modified'] ) { printf('
%s
', strftime("%F", $val['post'])); } else { printf('
%s
', strftime("%F", $val['modified'])); } } printf('
%s
' . "\n", $val['url'], $val['title']); } print '
'; } ?>
$val) { if ( $val['hidden'] == 'yes' ) { continue; } if ( $_REQUEST['cat'] ) { if ( $_REQUEST['cat'] == '未分類' ) { if ( !empty($val['category']) ) { continue; } } else { if ( empty($val['category']) ) { continue; } $found = false; foreach($val['category'] as $cat) { if ( preg_match('/'. preg_quote($_REQUEST['cat'], '/') . '($|\/)/', $cat) ) { $found = true; } } if ( !$found ) { continue; } } } if ( $_REQUEST['tag'] ) { if ( empty($val['keywords_ary']) || !in_array($_REQUEST['tag'], $val['keywords_ary']) ) { continue; } } print("\n"); print('
' . "\n"); printf('

%s

' . "\n", $val['url'], $val['title']); print('\n"); print('
' . "\n"); print('
' . "\n"); if ( $val['image'] ) { if ( preg_match('#^images/#', $val['image']) ) { printf('', $val['url'], $val['image']); } else { printf('', $val['url'], $val['image']); } } // 本文 if ( $val['description_long'] ) { printf("

%s

\n", mb_strimwidth(strip_tags($val['description_long']),0, 300, "...")); } else { printf("

%s

\n", mb_strimwidth(strip_tags($val['body3']),0, 300, "...")); } /* if ($markdown) { printf("

%s

\n", mb_strimwidth(strip_tags(MarkdownExtra::defaultTransform($val['body'])),0, 300, "...")); } else { printf("

%s

\n", mb_strimwidth(strip_tags($val['body2']),0, 300, "...")); } */ printf('' . "\n", $val['url']); print('
' . "\n"); print('
' . "\n"); print('
' . "\n"); print("\n"); } function z_mb_urlencode2( $str ) { return preg_replace_callback( '/[^\x21-\x7e]+/', function( $matches ) { return urlencode( $matches[0] ); }, $str ); } ?>

このページの先頭へ