foltia:recorded file list "; $now = date("YmdHi"); ?>
録画一覧表示
再生可能番組リストを表示します。
削除
ファイル名
タイトル
話数
サブタイ
キャプ\n"; } ?>
$list = getgetform('list'); //旧仕様 if($list == "raw"){ exec ("ls -t $recfolderpath/*.m2?", $m2pfiles); foreach($m2pfiles as $pathfName) { $fNametmp = split("/",$pathfName); $fName = array_pop($fNametmp); //print "FILENAME:$fName
\n"; if(($fName == ".") or ($fName == "..") ){ continue; } if (ereg(".m2.+", $fName)){ $filesplit = split("-",$fName); if ($filesplit[1] == ""){ $query = " SELECT foltia_program.tid,foltia_program.title,foltia_subtitle.subtitle FROM foltia_subtitle , foltia_program WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_subtitle.tid = $filesplit[0] "; $rs = m_query($con, $query, "DBクエリに失敗しました"); $rowdata = pg_fetch_row($rs, $row); //print" $fName./$rowdata[1]//$rowdata[2]
\n"; $title = $rowdata[1]; $subtitle = ""; $count = ""; }else{ $query = " SELECT foltia_program.tid,foltia_program.title,foltia_subtitle.countno,foltia_subtitle.subtitle FROM foltia_subtitle , foltia_program WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_subtitle.tid = $filesplit[0] AND foltia_subtitle.countno = $filesplit[1] "; $rs = m_query($con, $query, "DBクエリに失敗しました"); $rowdata = pg_fetch_row($rs, $row); //print" $fName./$rowdata[1]/$rowdata[2]/$rowdata[3]
\n"; $title = $rowdata[1]; $count = $rowdata[2]; $subtitle = $rowdata[3]; }//if 話数あるかどうか $tid = htmlspecialchars($rowdata[0]); $title = htmlspecialchars($title); $count = htmlspecialchars($count); $subtitle = htmlspecialchars($subtitle); //-- print "
$fName
$title
$count
$subtitle
"; if (file_exists("./selectcaptureimage.php") ) { // $capimgpath = preg_replace("/.m2p/", "", $fName); print "
N/A
\n"; } print "
\n "; }//ereg }//foreach print "
\n
\n
\n\n