チェンジセット 83: trunk/install/php

差分発生行の前後
無視リスト:
コミット日時:
2008/12/30 22:12:46 (15 年前)
コミッタ:
sorshi
ログメッセージ:

foltiaHD最初のリリース。
デジタル録画はFriio/Friio BS/CSのみに対応。
ivtvは1.0系使用になりました。

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/install/php/foltia_config2.php.template

    r70 r83  
    1717                $recfolderpath = '/home/foltia/php/tv'; //録画ファイルの保存先のパス。 
    1818                $httpmediamappath = '/tv'; //ブラウザから見える録画ファイルのある位置。 
    19                 $recunits = '4';                                        //搭載エンコーダの数 
     19                $recunits = '4';                                        //搭載アナログキャプチャカードチャンネル数 
    2020 
    2121                $protectmode = 0; //未使用:(ブラウザからの予約削除を禁止するなどの保護モードで動作します) 
     
    2424                $environmentpolicytoken = "";//環境ポリシーのパスワードに連結されるセキュリティコード 
    2525                $perltoolpath = $toolpath ;//perl版の初期設定の位置。デフォルトではphpと同じ位置 
     26                $usedigital = 1;//Friioなどでデジタル録画をするか 1:する 0:しない 
    2627 
    2728// データベース接続設定 
  • trunk/install/php/index.php

    r70 r83  
    1313オプション 
    1414mode:"new"を指定すると、新番組(第1話)のみの表示となる。 
     15now:YmdHi形式で日付を指定するとその日からの番組表が表示される。 
    1516 
    1617 DCC-JPL Japan/foltia project 
     
    3233}//end if login 
    3334 
    34 $now = date("YmdHi");    
    35  
     35$now = getgetnumform(date); 
     36if(($now < 200001010000 ) || ($now > 209912342353 )){  
     37        $now = date("YmdHi");    
     38
    3639function printtitle(){ 
    3740 
     
    6467WHERE foltia_tvrecord.tid = foltia_program.tid  
    6568AND foltia_program.tid = foltia_subtitle.tid  
    66 AND foltia_subtitle.enddatetime >= '$now' 
    67  ORDER BY \"startdatetime\" ASC 
     69AND foltia_subtitle.enddatetime >= '$now'  
     70ORDER BY \"startdatetime\" ASC  
     71LIMIT 1000 
    6872        "; 
    6973        $reservedrssametid = m_query($con, $query, "DBクエリに失敗しました"); 
     
    112116LEFT OUTER JOIN foltia_station on (foltia_subtitle.stationid = foltia_station.stationid ) 
    113117WHERE foltia_tvrecord.stationid = 0 AND 
    114 foltia_subtitle.enddatetime >= '$now' ORDER BY \"startdatetime\" ASC 
     118foltia_subtitle.enddatetime >= '$now' ORDER BY \"startdatetime\" ASC  
     119LIMIT 1000 
    115120        "; 
    116121 
     
    145150WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid  
    146151 AND foltia_subtitle.enddatetime >= '$now'  AND foltia_subtitle.countno = '1'  
    147 ORDER BY foltia_subtitle.startdatetime  ASC 
     152ORDER BY foltia_subtitle.startdatetime  ASC  
     153LIMIT 1000 
    148154        "; 
    149155        $rs = m_query($con, $query, "DBクエリに失敗しました"); 
     
    166172WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid  
    167173 AND foltia_subtitle.enddatetime >= '$now'   
    168 ORDER BY foltia_subtitle.startdatetime  ASC 
     174ORDER BY foltia_subtitle.startdatetime  ASC  
     175LIMIT 1000 
    169176        "; 
    170177        $rs = m_query($con, $query, "DBクエリに失敗しました"); 
  • trunk/install/php/listreserve.php

    r70 r83  
    4646$mymemberid = getmymemberid($con); 
    4747$now = getgetnumform(startdate); 
     48*if ($now == ""){ 
     49$now = getgetnumform(date); 
     50} 
    4851 
    4952if ($now > 200501010000){ 
     
    6366foltia_subtitle.startoffset ,  
    6467foltia_subtitle.pid ,  
    65 foltia_subtitle.epgaddedby  
     68foltia_subtitle.epgaddedby ,  
     69foltia_tvrecord.digital  
    6670FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 
    6771WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid AND foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid 
     
    7983foltia_subtitle.startoffset ,  
    8084foltia_subtitle.pid ,  
    81 foltia_subtitle.epgaddedby  
     85foltia_subtitle.epgaddedby ,  
     86foltia_tvrecord.digital  
    8287FROM foltia_tvrecord 
    8388LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) 
     
    127132                        <th align="left">話数</th> 
    128133                        <th align="left">サブタイトル</th> 
    129                         <th align="left">開始時刻</th> 
     134                        <th align="left">開始時刻(ズレ)</th> 
    130135                        <th align="left">総尺</th> 
    131136                        <th align="left">画質</th> 
     137                        <th align="left">デジタル優先</th> 
    132138 
    133139                </tr> 
     
    165171foltia_tvrecord.bitrate  ,  
    166172foltia_subtitle.startoffset ,  
    167 foltia_subtitle.pid   
     173foltia_subtitle.pid  ,  
     174foltia_tvrecord.digital  
    168175FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 
    169176WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid AND foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid 
     
    181188foltia_tvrecord.bitrate  ,  
    182189foltia_subtitle.startoffset ,  
    183 foltia_subtitle.pid   
     190foltia_subtitle.pid ,  
     191foltia_tvrecord.digital  
    184192FROM foltia_tvrecord 
    185193LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) 
     
    218226foltia_tvrecord.bitrate  ,  
    219227foltia_subtitle.startoffset ,  
    220 foltia_subtitle.pid   
     228foltia_subtitle.pid  ,  
     229foltia_tvrecord.digital  
    221230FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 
    222231WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid AND foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid 
     
    235244foltia_tvrecord.bitrate  ,  
    236245foltia_subtitle.startoffset ,  
    237 foltia_subtitle.pid   
     246foltia_subtitle.pid ,  
     247foltia_tvrecord.digital  
    238248FROM foltia_tvrecord 
    239249LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) 
     
    277287                                        }else{ 
    278288                                        print "<a href=\"http://cal.syoboi.jp/tid/$tid\" target=\"_blank\">$title</a>"; 
     289 
    279290                                        } 
    280291                                        print "</td>\n"; 
     
    305316                                        //録画レート 
    306317                                        echo("<td>".htmlspecialchars($rowdata[7])."<br></td>\n"); 
     318                                         
     319                                        //デジタル優先 
     320                                        echo("<td>"); 
     321                                        if (htmlspecialchars($rowdata[11]) == 1){ 
     322                                        print "する"; 
     323                                        }else{ 
     324                                        print "しない"; 
     325                                        } 
     326                                        echo("<br></td>\n"); 
    307327                                echo("</tr>\n"); 
    308328                        } 
     
    313333 
    314334<table> 
     335        <tr><td>アナログ重複表示</td><td><br /></td></tr> 
    315336        <tr><td>エンコーダ数</td><td><?=$recunits ?></td></tr> 
    316337        <tr class="overwraped"><td>チューナー重複</td><td><br /></td></tr> 
     
    329350foltia_program .title , 
    330351foltia_tvrecord.bitrate , 
    331 foltia_tvrecord.stationid   
     352foltia_tvrecord.stationid ,  
     353foltia_tvrecord.digital    
    332354FROM  foltia_tvrecord , foltia_program , foltia_station  
    333 WHERE foltia_tvrecord.tid = foltia_program.tid  AND foltia_tvrecord.stationid = foltia_station .stationid    
     355WHERE foltia_tvrecord.tid = foltia_program.tid  AND foltia_tvrecord.stationid = foltia_station .stationid  
    334356ORDER BY foltia_program.tid  DESC 
    335357"; 
     
    354376                        <th align="left">録画リスト</th> 
    355377                        <th align="left">画質</th> 
     378                        <th align="left">デジタル優先</th> 
     379 
    356380                </tr> 
    357381        </thead> 
     
    385409                                        //MP4 
    386410                                        echo("<td><a href=\"showlibc.php?tid=$tid\">mp4</a></td>\n"); 
    387  
     411                                        //画質(アナログビットレート) 
    388412                                        echo("<td>".htmlspecialchars($rowdata[3])."<br></td>\n"); 
    389          
     413                                        //デジタル優先 
     414                                        echo("<td>"); 
     415                                        if (htmlspecialchars($rowdata[5]) == 1){ 
     416                                        print "する"; 
     417                                        }else{ 
     418                                        print "しない"; 
     419                                        } 
    390420                                echo("</tr>\n"); 
    391421                                }else{ 
     
    395425                                <td>EPG録画</td> 
    396426                                <td><a href=\"showlibc.php?tid=0\">mp4</a></td>"; 
    397                                 echo("<td>".htmlspecialchars($rowdata[3])."<br></td>\n</tr>"); 
     427                                echo("<td>".htmlspecialchars($rowdata[3])."<br></td>"); 
     428                                        //デジタル優先 
     429                                        echo("<td>"); 
     430                                        if (htmlspecialchars($rowdata[5]) == 1){ 
     431                                        print "する"; 
     432                                        }else{ 
     433                                        print "しない"; 
     434                                        } 
     435                                echo("\n</tr>"); 
    398436                                }//if tid 0 
    399437                        }//for 
  • trunk/install/php/m.php

    r77 r83  
    3535 
    3636$now = date("YmdHi");    
     37$today = date("Ymd"); 
     38$nowdate = date("Hi",(mktime(date("G"),date("i")+8,date("s"),date("m"),date("d"),date("Y")))); 
    3739$errflag = 0; 
    3840$pname = "手動録画"; 
     
    7476$recstid = getgetnumform(recstid); 
    7577$pname = getgetform(pname); 
     78//$usedigital = getgetnumform(usedigital); 
     79 
    7680//確認 
    7781$startdatetime = "$startdate"."$starttime"; 
     
    105109        } 
    106110} 
     111//デジタル優先 
     112/*if ($usedigital == 1){ 
     113}else{ 
     114        $usedigital = 0; 
     115} 
     116*/ 
    107117//正しければ 
    108118if ($errflag == 0){ 
     
    193203  <p>放送日: 
    194204    <input name="startdate" type="text" id="startdate" size="9" value="<?=$startdate?>" /> 
    195   年月日 Ex.19800121</p> 
     205  年月日 Ex.<?=$today?></p> 
    196206  <p>録画開始時刻: 
    197207    <input name="starttime" type="text" id="starttime" size="5" value="<?=$starttime?>" /> 
    198   時分 Ex.2304  </p> 
     208  時分 Ex.<?=$nowdate?>  </p> 
    199209  <p> 
    200210    録画尺: 
     
    205215<?php 
    206216$query = " 
    207 SELECT stationid,stationname,stationrecch  
     217SELECT stationid,stationname,stationrecch ,digitalch  
    208218FROM foltia_station  
    209219WHERE stationrecch > 0  
     220UNION  
     221SELECT DISTINCT  stationid,stationname,stationrecch ,digitalch  
     222FROM  foltia_station  
     223WHERE digitalch > 0 
    210224ORDER BY \"stationid\" ASC"; 
    211225 
     
    248262        } 
    249263} 
    250  
     264/* 
     265print "<p>デジタル録画を優先:"; 
     266 
     267if ($usedigital == 1){ 
     268print "<input name="useditial" type="radio" value="1" selected />  する  
     269<input name="useditial" type="radio" value="0" />  しない  
     270"; 
     271}else{ 
     272print "<input name="useditial" type="radio" value="1" />  する  
     273<input name="useditial" type="radio" value="0" selected />  しない  
     274"; 
     275
     276*/ 
    251277?> 
    252278  <p>番組名: 
  • trunk/install/php/reservecomp.php

    r70 r83  
    5454                $station = 0; 
    5555                } 
    56  
     56$usedigital = getgetnumform(usedigital); 
     57                if ($usedigital == "") { 
     58                $usedigital = 0; 
     59                } 
    5760$bitrate = getgetnumform(bitrate); 
    5861                if ($bitrate == "") { 
     
    202205 
    203206                if ($maxrows == 0) { //新規追加 
    204                                 $query = "INSERT INTO  foltia_tvrecord  values ('$tid','$station','$bitrate')"; 
     207                                $query = "INSERT INTO  foltia_tvrecord  values ('$tid','$station','$bitrate','$usedigital')"; 
    205208                                $rs = m_query($con, $query, "DB書き込みに失敗しました"); 
    206209                }else{//修正 (ビットレート) 
    207210                        $query = "UPDATE  foltia_tvrecord  SET  
    208   bitrate = '$bitrate' WHERE tid = '$tid'  AND stationid = '$station' 
    209                         "; 
     211  bitrate = '$bitrate' , digital = '$usedigital'  WHERE tid = '$tid'  AND stationid = '$station' "; 
    210212                        $rs = m_query($con, $query, "DB書き込みに失敗しました"); 
    211213                } 
  • trunk/install/php/reserveepgcomp.php

    r70 r83  
    7878        }else{ 
    7979        $rowdata = pg_fetch_row($rs, 0); 
     80         
    8081        $insertpid = $rowdata[0]; 
    81         $insertpid-- ; 
     82                if ($insertpid > 0){ 
     83                $insertpid = -1; 
     84                }else{ 
     85                $insertpid-- ; 
     86                } 
    8287        } 
    8388// next 話数を探す 
     
    121126values ( '$insertpid','0','$stationid', 
    122127        '$nextcno','$subtitle','$startdatetime','$enddatetime','0' ,'$lengthmin' , '$memberid')"; 
    123  
    124128        $rs = m_query($con, $query, "DBクエリに失敗しました"); 
    125129 
     
    143147} 
    144148 
    145 ?> 
    146149 
    147  
    148 <?php 
    149150print "<table width=\"100%\" border=\"0\"> 
    150151    <tr><td>放送開始</td><td>$startdatetime</td></tr> 
  • trunk/install/php/reserveprogram.php

    r70 r83  
    8989  <tr> 
    9090    <td>放送局</td> 
    91     <td>ビットレート</td> 
     91    <td>デジタル録画優先</td> 
     92    <td>アナログビットレート</td> 
    9293  </tr> 
    9394  <tr> 
     
    128129 
    129130        </td> 
     131         
     132        <td> 
     133        <select name="usedigital"> 
     134        <?php 
     135         if ($usedigital == 1){ 
     136                print " 
     137                <option value=\"1\" selected>する</option> 
     138                <option value=\"0\">しない</option> 
     139                "; 
     140                }else{ 
     141                print " 
     142                <option value=\"1\">する</option> 
     143                <option value=\"0\" selected>しない</option> 
     144                "; 
     145                } 
     146        ?> 
     147        </select> 
     148        </td> 
     149 
    130150    <td><select name="bitrate"> 
    131151        <option value="14">最高画質</option> 
  • trunk/install/php/selectcaptureimage.php

    r70 r83  
    116116        $tid = ereg_replace("[^0-9]", "", $tid); 
    117117 
    118 $path = ereg_replace("\.m2p$", "", $m2pfilename); 
     118$path = ereg_replace("\.m2p$|\.m2t$", "", $m2pfilename); 
    119119$serveruri = getserverfqdn (); 
    120120 
     
    124124 
    125125if (file_exists("./sb-edit.php") ) { 
    126 print "<a href=\"./sb-edit.php?pid=$pid&f=$filetid\"><img src='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' width='160' height='120' alt='$tid:$countno:$filetid'></a>\n"; 
     126print "<a href=\"./sb-edit.php?pid=$pid&f=$filetid\"><img src='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' alt='$tid:$countno:$filetid'></a>\n"; 
    127127}else{ 
    128 print "<img src='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' width='160' height='120' alt='$tid:$countno:$filetid'>\n"; 
     128print "<img src='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' alt='$tid:$countno:$filetid'>\n"; 
    129129} 
    130130}//foreach 
  • trunk/install/php/showlib.php

    r70 r83  
    3636<head> 
    3737<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"> 
    38 <meta http-equiv="Content-Style-Type" content="text/css"> 
    39 <link rel="stylesheet" type="text/css" href="graytable.css">  
    40 <link rel="alternate" type="application/rss+xml" title="RSS" href="./folcast.php" /> 
     38<?php 
     39if (file_exists  ( "./iui/iui.css"  )){ 
     40        $useragent = $_SERVER['HTTP_USER_AGENT']; 
     41
     42if(ereg("iPhone",$useragent)){ 
     43print "<meta name=\"viewport\" content=\"width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;\"/> 
     44<link rel=\"apple-touch-icon\" type=\"image/png\" href=\"./img/icon.png\" /> 
     45 
     46<style type=\"text/css\" media=\"screen\">@import \"./iui/iui.css\";</style> 
     47<script type=\"application/x-javascript\" src=\"./iui/iui.js\"></script>"; 
     48}else{ 
     49print "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\"> 
     50<link rel=\"stylesheet\" type=\"text/css\" href=\"graytable.css\">  
     51<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"./folcast.php\" />"; 
     52
     53?> 
    4154<title>foltia:MP4 Lib</title> 
    4255</head> 
    4356 
    4457<?php 
    45 $now = date("YmdHi");    
     58$now = date("YmdHi");   
     59if(ereg("iPhone",$useragent)){ 
     60        print "<body onclick=\"console.log('Hello', event.target);\"> 
     61    <div class=\"toolbar\"> 
     62        <h1 id=\"pageTitle\"></h1> 
     63        <a id=\"backButton\" class=\"button\" href=\"#\"></a> 
     64    </div> 
     65"; 
     66}else{ 
     67        print "<body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > 
     68<div align=\"center\"> 
     69"; 
     70        printhtmlpageheader(); 
     71print "  <p align=\"left\"><font color=\"#494949\" size=\"6\">録画ライブラリ表示</font></p> 
     72  <hr size=\"4\"> 
     73<p align=\"left\">再生可能ライブラリを表示します。<br> 
     74"; 
     75}  
    4676 
    47 ?> 
    48 <body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" > 
    49 <div align="center"> 
    50 <?php  
    51         printhtmlpageheader(); 
    52 ?> 
    53   <p align="left"><font color="#494949" size="6">録画ライブラリ表示</font></p> 
    54   <hr size="4"> 
    55 <p align="left">再生可能ライブラリを表示します。<br> 
    56  
    57 <? 
    5877//新仕様 /* 2006/10/26 */ 
    5978$query = " 
     
    7089 
    7190if ($maxrows > 0 ){ 
     91if(ereg("iPhone",$useragent)){ 
     92        print "<ul id=\"home\" title=\"録画ライブラリ表示\" selected=\"true\">"; 
     93}else{ 
    7294print " 
    7395  <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\"> 
     
    82104        <tbody> 
    83105"; 
     106} 
    84107for ($row = 0; $row < $maxrows; $row++) { 
    85108        $rowdata = pg_fetch_row($rs, $row); 
     
    90113$counts = htmlspecialchars($counts); 
    91114 
     115if(ereg("iPhone",$useragent)){ 
     116print "<li><a href=\"showlibc.php?tid=$tid\" target=\"_self\">$title</a></li>\n"; 
     117}else{ 
    92118print " 
    93119<tr> 
     
    98124</tr>\n 
    99125"; 
     126} 
    100127}//for 
     128 
     129if(ereg("iPhone",$useragent)){ 
     130        print "</ul>\n</body>\n</html>\n"; 
     131}else{ 
    101132print " 
    102133        </tbody> 
     
    105136</html> 
    106137"; 
     138} 
     139 
    107140}else{ 
    108141print "録画ファイルが存在しません。</body></html>"; 
  • trunk/install/php/showlibc.php

    r74 r83  
    4141<head> 
    4242<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"> 
    43 <meta http-equiv="Content-Style-Type" content="text/css"> 
    44 <link rel="stylesheet" type="text/css" href="graytable.css"> 
    45 <script src="http://images.apple.com/main/js/ac_quicktime.js" language="JavaScript" type="text/javascript"></script>  
    4643<?php 
    47 print "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"./folcast.php?tid=$tid\" /> 
    48 "; 
    49                 if ($tid == "") { 
     44if (file_exists  ( "./iui/iui.css"  )){ 
     45        $useragent = $_SERVER['HTTP_USER_AGENT']; 
     46
     47if(ereg("iPhone",$useragent)){ 
     48print "<meta name=\"viewport\" content=\"width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;\"/> 
     49<link rel=\"apple-touch-icon\" type=\"image/png\" href=\"./img/icon.png\" /> 
     50<style type=\"text/css\" media=\"screen\">@import \"./iui/iui.css\";</style> 
     51<script type=\"application/x-javascript\" src=\"./iui/iui.js\"></script>"; 
     52}else{ 
     53print "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\"> 
     54<link rel=\"stylesheet\" type=\"text/css\" href=\"graytable.css\"> 
     55<script src=\"http://images.apple.com/main/js/ac_quicktime.js\" language=\"JavaScript\" type=\"text/javascript\"></script>  
     56<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"./folcast.php?tid=$tid\" /> 
     57"; 
     58
     59if ($tid == "") { 
    5060        print "<title>foltia:Lib</title> 
    5161</head><body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > \n"; 
    5262                printhtmlpageheader(); 
    5363                die_exit("再生可能番組がありません<BR>"); 
    54                
     64       
    5565$now = date("YmdHi");    
    5666 
     
    7585} 
    7686//ヘッダ続き 
    77 print "<title>foltia:Lib $tid:$title</title> 
    78 </head> 
    79 <body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > 
     87print "<title>foltia:Lib $tid:$title</title></head>"; 
     88$serveruri = getserveruri(); 
     89 
     90if(ereg("iPhone",$useragent)){ 
     91        print "<body onclick=\"console.log('Hello', event.target);\"> 
     92    <div class=\"toolbar\"> 
     93        <h1 id=\"pageTitle\"></h1> 
     94        <a id=\"backButton\" class=\"button\" href=\"#\"></a> 
     95    </div> 
     96"; 
     97}else{ 
     98 
     99print "<body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > 
    80100<div align=\"center\"> 
    81101"; 
     
    84104  <hr size=\"4\"> 
    85105<p align=\"left\">再生可能ムービーを表示します。<br>"; 
    86  
    87 $serveruri = getserveruri(); 
    88106if ($tid == 0){ 
    89107print "$title 【<A HREF = \"./folcast.php?tid=$tid\">この番組のFolcast</A> [<a href=\"itpc://$serveruri/folcast.php?tid=$tid\">iTunesに登録</a>】 <br>\n"; 
     
    93111                                     htmlspecialchars($tid)  . "\" target=\"_blank\">$title</a> 【<A HREF = \"./folcast.php?tid=$tid\">この番組のFolcast</A> [<a href=\"itpc://$serveruri/folcast.php?tid=$tid\">iTunesに登録</a>]】 <br>\n"; 
    94112} 
     113}// endif if(ereg("iPhone",$useragent)) 
     114 
    95115//確認 
    96116if (file_exists ("$recfolderpath/$tid.localized")){ 
     
    101121        exit; 
    102122}                                         
    103  
    104  
    105123 
    106124//新仕様/* 2006/10/26 */ 
     
    133151$maxrows = pg_num_rows($rs); 
    134152if ($maxrows > 0 ){ 
     153if(ereg("iPhone",$useragent)){ 
     154        print "<ul id=\"home\" title=\"$title\" selected=\"true\">"; 
     155}else{ 
    135156print " 
    136157  <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\"> 
    137158        <tbody> 
    138159"; 
    139  
     160
    140161for ($row = 0; $row < $maxrows; $row++) { 
    141162        $rowdata = pg_fetch_row($rs, $row); 
     
    178199 
    179200if (($sbpluginexist == 1) && (pg_num_rows ($rs ) > 0)){ 
    180  $capimgpath = htmlspecialchars(preg_replace("/.m2p/", "", $rowdata[5])); 
     201 //$capimgpath = htmlspecialchars(preg_replace("/.m2p/", "", $rowdata[5])); 
     202 $capimgpath = htmlspecialchars(preg_replace("/.m2./", "", $rowdata[5])); 
    181203         
    182204        if (($capimgpath != "") && (file_exists("$recfolderpath/$tid.localized/img/$capimgpath") )){ 
     
    195217} 
    196218 
    197  
     219if(ereg("iPhone",$useragent)){ 
     220 
     221print "<li><a href=\"http://$serverfqdn/$httpmediamappath/$tid.localized/mp4/$fName\" target=\"_self\">$count $subtitle $onairdate</a></li>\n"; 
     222 
     223}else{ 
    198224print "  <tr> 
    199225    <td rowspan=\"4\" width=\"170\"><a href = \"$httpmediamappath/$tid.localized/mp4/$fName\" target=\"_blank\"><img src = \"$imgsrcuri\" width=\"160\" height=\"120\"></a></td> 
     
    202228  <tr> 
    203229"; 
    204 if ($tid == 0){ 
    205 print "\n    <td>$subtitle</td>"; 
    206 }else{ 
    207 print "\n    <td><a href = \"http://cal.syoboi.jp/tid/$tid/time#$pid\" target=\"_blank\">$subtitle</a></td>"; 
    208 }//if 
     230       if ($tid == 0){ 
     231       print "\n    <td>$subtitle</td>"; 
     232       }else{ 
     233       print "\n    <td><a href = \"http://cal.syoboi.jp/tid/$tid/time#$pid\" target=\"_blank\">$subtitle</a></td>"; 
     234       }//if 
    209235print "  </tr> 
    210236  <tr> 
     
    216242"; 
    217243 
     244}//endif iPhone 
     245 
    218246}//for 
    219247}else{ 
    220248print "録画ファイルがありません<br>\n"; 
    221249}//if 
     250 
     251if(ereg("iPhone",$useragent)){ 
     252        print "<li><a href=\"http://$serveruri/showlib.php\" target=\"_self\">一覧へ戻る</a></li>\n"; 
     253        print "</ul>\n"; 
     254}else{ 
     255        print "</tbody></table>\n"; 
     256} 
    222257?> 
    223         </tbody> 
    224 </table> 
    225  
    226258</body> 
    227259</html> 
     260 
     261         
  • trunk/install/php/showplaylist.php

    r70 r83  
    1414 省略時、録画順にソートされる。 
    1515 titleのときに、番組順ソートされる。 
    16  rawのときに、DBに記録されている番組録画情報ではなくディレクトリにあるm2pファイルを全て表示する。 
     16 rawのときに、DBに記録されている番組録画情報ではなくディレクトリにあるm2p/m2tファイルを全て表示する。 
    1717 
    1818 DCC-JPL Japan/foltia project 
     
    9797//旧仕様 
    9898if($list == "raw"){ 
    99 exec ("ls -t  $recfolderpath/*.m2p", $m2pfiles); 
     99exec ("ls -t  $recfolderpath/*.m2?", $m2pfiles); 
    100100 
    101101 
     
    106106 
    107107        if(($fName == ".") or ($fName == "..") ){ continue; } 
    108         if (ereg(".m2p", $fName)){ 
     108        if (ereg(".m2.+", $fName)){ 
    109109                $filesplit = split("-",$fName); 
    110110         
     
    230230} 
    231231        if (file_exists("./selectcaptureimage.php") ) { 
    232         $capimgpath = preg_replace("/.m2p/", "", $fName); 
     232        $capimgpath = preg_replace("/.m2.+/", "", $fName); 
    233233        print "                 <td align=\"left\"><a href=\"./selectcaptureimage.php?pid=$pid\">キャプ</a></td>\n"; 
    234234        } 
track feed