"; }else{ print " "; } if ($tid == "") { print "foltia:Lib \n"; printhtmlpageheader(); die_exit("再生可能番組がありません
"); } $now = date("YmdHi"); $query = " SELECT foltia_program.title FROM foltia_program WHERE foltia_program.tid = ? "; //$rs = m_query($con, $query, "DBクエリに失敗しました"); $rs = sql_query($con, $query, "DBクエリに失敗しました",array($tid)); $rowdata = $rs->fetch(); if (! $rowdata) { $syobocaldb = `curl "http://cal.syoboi.jp/db?Command=TitleLookup&TID=$tid" | head -2 `; $syobocaldb = mb_convert_encoding($syobocaldb, "EUC-JP", "UTF-8"); $syobocaldb = preg_match("/.*<\/Title>/", $syobocaldb,$title); $title = $title[0]; $title = strip_tags($title); $title = htmlspecialchars($title) ; }else{ $title = $rowdata[0]; $title = htmlspecialchars($title) ; } //ヘッダ続き print "<title>foltia:Lib $tid:$title"; $serveruri = getserveruri(); if(ereg("iPhone",$useragent)){ print "

"; }else{ print "
"; printhtmlpageheader(); print "

録画ライブラリ番組個別表示


再生可能ムービーを表示します。
"; if ($tid == 0){ print "$title 【この番組のFolcast [iTunesに登録
\n"; }else{ print "$titleこの番組のFolcast [iTunesに登録]】
\n"; } }// endif if(ereg("iPhone",$useragent)) //確認 if (file_exists ("$recfolderpath/$tid.localized")){ // print "ディレクトリは存在します\n"; }else{ // print "ディレクトリはありません\n"; print "再生可能番組がありません
\n"; exit; } //新仕様/* 2006/10/26 */ if (file_exists("./selectcaptureimage.php") ) { $sbpluginexist = 1; } $serverfqdn = getserverfqdn(); $query = " SELECT foltia_program.tid, foltia_program.title, foltia_subtitle.countno, foltia_subtitle.subtitle, foltia_subtitle.startdatetime , foltia_subtitle.m2pfilename , foltia_subtitle.pid , foltia_mp4files.mp4filename FROM foltia_mp4files LEFT JOIN foltia_subtitle ON foltia_mp4files.mp4filename = foltia_subtitle.pspfilename LEFT JOIN foltia_program ON foltia_mp4files.tid = foltia_program.tid WHERE foltia_mp4files.tid = ? ORDER BY \"startdatetime\" ASC "; $rs = ""; //$rs = m_query($con, $query, "DBクエリに失敗しました"); $rs = sql_query($con, $query, "DBクエリに失敗しました",array($tid)); $rowdata = $rs->fetch(); if ($rowdata) { if(ereg("iPhone",$useragent)){ print "