top
TOP
INFORMATION
LIVE
DISCOGRAPHY
PROFILE
CONTACT
BLOG
MAIL MAGAZINE
品番:VNS-0001
価格:1,800円(税込)
発売元:ヴィレッジアゲインアソシエイション
続→60億分の1
DANCE☆MAN(WOKKY WOKKY×BOGGIE WOGGIE)
C&K
winter tainer
DANCE HALL
歩きだせ
雨のち晴れ
"01", "Feb" => "02", "Mar" => "03", "Apr" => "04", "May" => "05", "Jun" => "06", "Jul" => "07", "Aug" => "08", "Sep" => "09", "Oct" => "10", "Nov" => "11", "Dec" => "12" ); function conv_date($date_str) { global $pat, $month_list; if (preg_match($pat, $date_str, $match)) { list($year, $month, $day, $hours, $minutes, $seconds, $tz) = array($match[3], $match[2], $match[1], $match[4], $match[5], $match[6], $match[7]); foreach($month_list as $conv_month=>$replace) { if(preg_match("/^$conv_month$/", $month)){ $month = $replace; break; } } $date_str = $year . '-' . $month . '-' . $day . 'T' . $hours . ':' . $minutes . ':' . $seconds . $tz; } return $date_str; } // 読み込んだRSSデータのタイトルや概要にタグがあったら取り除き、メタ文字はHTMLエンティティに変換する function convert_sp_char ($char,$arg) { if (preg_match("/<|>|\"|&/", $char)) { if ($arg == "2") { $char = strip_tags("$char"); } $char = htmlspecialchars("$char"); } if ($arg == "1") { $char = mb_strimwidth($char, 0, 50,"…",utf8); // タイトル文字数 } return $char; } function convert_desc ($desc) { $desc = trim ($desc); $desc = nl2br ($desc); $desc = strip_tags($desc); $desc = str_replace("\n", "", $desc); //改行コードの削除 $desc = mb_strimwidth ($desc, 0, 600,"…",utf8); // 概要(description)の表示する文字数 return $desc; } // RSSの日付と今日の日付を比較し新しければ「New.gif」を出力 function diff_date ($date,$days) { echo "$s_date"; $rssdate = strtotime("$date"); $today = strtotime(date("Y/m/d")); $diff = date("U", ($today - $rssdate))/86400; // echo "$days"." "."$diff"." "."$date"; if ($days > $diff) { echo '
'; } return $date; } // cacheを表示している場合 $rss_cache = '
[キャッシュ情報を表示中]
'; // RSSを新たに取得した場合 $rss_get = '
[最新の情報を表示中]
'; // Magpieのエラーメッセージと一緒に表示 $e_message = <<
It was unacquirable.
RSS FEED を取得できませんでした、詳細は下記。
Error Message!
DATA; ?> channel['title']; if (isset($title)) { $title = convert_sp_char($title, "3"); $title = substr($title, 24, 30 ); $site = $rss->channel['link']; // キャッシュから取得した場合 if ($rss->from_cache == 1) { $if_cache = $rss_cache; } else { $if_cache = $rss_get; } // サイト名を表示しサイトURLにリンクするRSSファイルへのリンクはFeedBottonで echo <<
{$if_cache}\n
--> DATA; // "$rss->items"の次の数値を変更すると何番目のアイテムから表示するか変更できる、$num_itemsは取得するアイテム数 $rss->items = array_slice($rss->items, 0, $num_items); foreach ($rss->items as $item ) { if(mb_eregi($keyword, $item['description'])) { $title = $item['title']; $quote_title = convert_sp_char($title, "3"); $title = convert_sp_char($title, "1"); $url = $item['link']; $s_date = $item['pubdate']; $Year = substr($s_date, 12, 4 ); $Month = substr($s_date, 8, 3 ); $Day = substr($s_date, 5, 2 ); $Hour = substr($s_date, 0, 15 ); $Min = substr($s_date, 0, 15 ); $Month = str_replace("Jan","01",$Month); $Month = str_replace("Feb","02",$Month); $Month = str_replace("Mar","03",$Month); $Month = str_replace("Apr","04",$Month); $Month = str_replace("May","05",$Month); $Month = str_replace("Jun","06",$Month); $Month = str_replace("Jul","07",$Month); $Month = str_replace("Aug","08",$Month); $Month = str_replace("Sep","09",$Month); $Month = str_replace("Oct","10",$Month); $Month = str_replace("Nov","11",$Month); $Month = str_replace("Dec","12",$Month); $date = "$Year/$Month/$Day"; $p_date = substr($date, 5, 5); // RSSにdescriptionがあるか確認し、ない場合時は表示しない if (isset($item['description'])) { $desc = $item['description']; $desc = convert_desc($desc); } $title = convert_desc($title); //echo '
' .$date.'
' . $title . '
'.$desc; // 日付フォーマットが任意の物でない場合は更新日の比較をしない echo '
'.'
' .$p_date.'
'; if (preg_match("/^\d{4}\/\d{2}\/\d{2}\s?/", $date)) { diff_date($date,$days); } echo '
' . $title . '
'; echo "
\n"; } echo ""; }} else { // MagpieRSSのエラーを表示 echo '
' . $e_message . magpie_error() . "\n
\n"; } } ?>
channel['title']; if (isset($title)) { $title = convert_sp_char($title, "3"); $title = substr($title, 24, 30 ); $site = $rss->channel['link']; // キャッシュから取得した場合 if ($rss->from_cache == 1) { $if_cache = $rss_cache; } else { $if_cache = $rss_get; } // サイト名を表示しサイトURLにリンクするRSSファイルへのリンクはFeedBottonで echo <<
{$if_cache}\n
--> DATA; // "$rss->items"の次の数値を変更すると何番目のアイテムから表示するか変更できる、$num_itemsは取得するアイテム数 $rss->items = array_slice($rss->items, 0, $num_items); foreach ($rss->items as $item ) { if(mb_eregi($keyword, $item['description'])) { $title = $item['title']; $quote_title = convert_sp_char($title, "3"); $title = convert_sp_char($title, "1"); $url = $item['link']; $s_date = $item['pubdate']; $Year = substr($s_date, 12, 4 ); $Month = substr($s_date, 8, 3 ); $Day = substr($s_date, 5, 2 ); $Hour = substr($s_date, 0, 15 ); $Min = substr($s_date, 0, 15 ); $Month = str_replace("Jan","01",$Month); $Month = str_replace("Feb","02",$Month); $Month = str_replace("Mar","03",$Month); $Month = str_replace("Apr","04",$Month); $Month = str_replace("May","05",$Month); $Month = str_replace("Jun","06",$Month); $Month = str_replace("Jul","07",$Month); $Month = str_replace("Aug","08",$Month); $Month = str_replace("Sep","09",$Month); $Month = str_replace("Oct","10",$Month); $Month = str_replace("Nov","11",$Month); $Month = str_replace("Dec","12",$Month); $date = "$Year/$Month/$Day"; $p_date = substr($date, 5, 5); // RSSにdescriptionがあるか確認し、ない場合時は表示しない if (isset($item['description'])) { $desc = $item['description']; $desc = convert_desc($desc); } $title = convert_desc($title); //echo '
' .$date.'
' . $title . '
'.$desc; // 日付フォーマットが任意の物でない場合は更新日の比較をしない echo '
'.'
' .$p_date.'
'; if (preg_match("/^\d{4}\/\d{2}\/\d{2}\s?/", $date)) { diff_date($date,$days); } echo '
' . $title . '
'; echo "
\n"; } echo ""; }} else { // MagpieRSSのエラーを表示 echo '
' . $e_message . magpie_error() . "\n
\n"; } } ?>
NEW STYLE VISION
九州男 公式サイト
MARUNOとT樹のスタッフブログ