チェンジセット 83: trunk/install/php
- コミット日時:
- 2008/12/30 22:12:46 (16 年前)
- ファイル:
-
- trunk/install/php/foltia_config2.php.template (更新) (2 diffs)
- trunk/install/php/img/icon.png (追加)
- trunk/install/php/index.php (更新) (6 diffs)
- trunk/install/php/iui (追加)
- trunk/install/php/listreserve.php (更新) (15 diffs)
- trunk/install/php/m.php (更新) (6 diffs)
- trunk/install/php/reservecomp.php (更新) (2 diffs)
- trunk/install/php/reserveepgcomp.php (更新) (3 diffs)
- trunk/install/php/reserveprogram.php (更新) (2 diffs)
- trunk/install/php/selectcaptureimage.php (更新) (2 diffs)
- trunk/install/php/showlib.php (更新) (6 diffs)
- trunk/install/php/showlibc.php (更新) (10 diffs)
- trunk/install/php/showplaylist.php (更新) (4 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/foltia_config2.php.template
r70 r83 17 17 $recfolderpath = '/home/foltia/php/tv'; //録画ファイルの保存先のパス。 18 18 $httpmediamappath = '/tv'; //ブラウザから見える録画ファイルのある位置。 19 $recunits = '4'; //搭載 エンコーダの数19 $recunits = '4'; //搭載アナログキャプチャカードチャンネル数 20 20 21 21 $protectmode = 0; //未使用:(ブラウザからの予約削除を禁止するなどの保護モードで動作します) … … 24 24 $environmentpolicytoken = "";//環境ポリシーのパスワードに連結されるセキュリティコード 25 25 $perltoolpath = $toolpath ;//perl版の初期設定の位置。デフォルトではphpと同じ位置 26 $usedigital = 1;//Friioなどでデジタル録画をするか 1:する 0:しない 26 27 27 28 // データベース接続設定 trunk/install/php/index.php
r70 r83 13 13 オプション 14 14 mode:"new"を指定すると、新番組(第1話)のみの表示となる。 15 now:YmdHi形式で日付を指定するとその日からの番組表が表示される。 15 16 16 17 DCC-JPL Japan/foltia project … … 32 33 }//end if login 33 34 34 $now = date("YmdHi"); 35 35 $now = getgetnumform(date); 36 if(($now < 200001010000 ) || ($now > 209912342353 )){ 37 $now = date("YmdHi"); 38 } 36 39 function printtitle(){ 37 40 … … 64 67 WHERE foltia_tvrecord.tid = foltia_program.tid 65 68 AND foltia_program.tid = foltia_subtitle.tid 66 AND foltia_subtitle.enddatetime >= '$now' 67 ORDER BY \"startdatetime\" ASC 69 AND foltia_subtitle.enddatetime >= '$now' 70 ORDER BY \"startdatetime\" ASC 71 LIMIT 1000 68 72 "; 69 73 $reservedrssametid = m_query($con, $query, "DBクエリに失敗しました"); … … 112 116 LEFT OUTER JOIN foltia_station on (foltia_subtitle.stationid = foltia_station.stationid ) 113 117 WHERE foltia_tvrecord.stationid = 0 AND 114 foltia_subtitle.enddatetime >= '$now' ORDER BY \"startdatetime\" ASC 118 foltia_subtitle.enddatetime >= '$now' ORDER BY \"startdatetime\" ASC 119 LIMIT 1000 115 120 "; 116 121 … … 145 150 WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid 146 151 AND foltia_subtitle.enddatetime >= '$now' AND foltia_subtitle.countno = '1' 147 ORDER BY foltia_subtitle.startdatetime ASC 152 ORDER BY foltia_subtitle.startdatetime ASC 153 LIMIT 1000 148 154 "; 149 155 $rs = m_query($con, $query, "DBクエリに失敗しました"); … … 166 172 WHERE foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid 167 173 AND foltia_subtitle.enddatetime >= '$now' 168 ORDER BY foltia_subtitle.startdatetime ASC 174 ORDER BY foltia_subtitle.startdatetime ASC 175 LIMIT 1000 169 176 "; 170 177 $rs = m_query($con, $query, "DBクエリに失敗しました"); trunk/install/php/listreserve.php
r70 r83 46 46 $mymemberid = getmymemberid($con); 47 47 $now = getgetnumform(startdate); 48 *if ($now == ""){ 49 $now = getgetnumform(date); 50 } 48 51 49 52 if ($now > 200501010000){ … … 63 66 foltia_subtitle.startoffset , 64 67 foltia_subtitle.pid , 65 foltia_subtitle.epgaddedby 68 foltia_subtitle.epgaddedby , 69 foltia_tvrecord.digital 66 70 FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 67 71 WHERE 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 … … 79 83 foltia_subtitle.startoffset , 80 84 foltia_subtitle.pid , 81 foltia_subtitle.epgaddedby 85 foltia_subtitle.epgaddedby , 86 foltia_tvrecord.digital 82 87 FROM foltia_tvrecord 83 88 LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) … … 127 132 <th align="left">話数</th> 128 133 <th align="left">サブタイトル</th> 129 <th align="left">開始時刻 </th>134 <th align="left">開始時刻(ズレ)</th> 130 135 <th align="left">総尺</th> 131 136 <th align="left">画質</th> 137 <th align="left">デジタル優先</th> 132 138 133 139 </tr> … … 165 171 foltia_tvrecord.bitrate , 166 172 foltia_subtitle.startoffset , 167 foltia_subtitle.pid 173 foltia_subtitle.pid , 174 foltia_tvrecord.digital 168 175 FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 169 176 WHERE 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 … … 181 188 foltia_tvrecord.bitrate , 182 189 foltia_subtitle.startoffset , 183 foltia_subtitle.pid 190 foltia_subtitle.pid , 191 foltia_tvrecord.digital 184 192 FROM foltia_tvrecord 185 193 LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) … … 218 226 foltia_tvrecord.bitrate , 219 227 foltia_subtitle.startoffset , 220 foltia_subtitle.pid 228 foltia_subtitle.pid , 229 foltia_tvrecord.digital 221 230 FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 222 231 WHERE 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 … … 235 244 foltia_tvrecord.bitrate , 236 245 foltia_subtitle.startoffset , 237 foltia_subtitle.pid 246 foltia_subtitle.pid , 247 foltia_tvrecord.digital 238 248 FROM foltia_tvrecord 239 249 LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) … … 277 287 }else{ 278 288 print "<a href=\"http://cal.syoboi.jp/tid/$tid\" target=\"_blank\">$title</a>"; 289 279 290 } 280 291 print "</td>\n"; … … 305 316 //録画レート 306 317 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"); 307 327 echo("</tr>\n"); 308 328 } … … 313 333 314 334 <table> 335 <tr><td>アナログ重複表示</td><td><br /></td></tr> 315 336 <tr><td>エンコーダ数</td><td><?=$recunits ?></td></tr> 316 337 <tr class="overwraped"><td>チューナー重複</td><td><br /></td></tr> … … 329 350 foltia_program .title , 330 351 foltia_tvrecord.bitrate , 331 foltia_tvrecord.stationid 352 foltia_tvrecord.stationid , 353 foltia_tvrecord.digital 332 354 FROM foltia_tvrecord , foltia_program , foltia_station 333 WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid 355 WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid 334 356 ORDER BY foltia_program.tid DESC 335 357 "; … … 354 376 <th align="left">録画リスト</th> 355 377 <th align="left">画質</th> 378 <th align="left">デジタル優先</th> 379 356 380 </tr> 357 381 </thead> … … 385 409 //MP4 386 410 echo("<td><a href=\"showlibc.php?tid=$tid\">mp4</a></td>\n"); 387 411 //画質(アナログビットレート) 388 412 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 } 390 420 echo("</tr>\n"); 391 421 }else{ … … 395 425 <td>EPG録画</td> 396 426 <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>"); 398 436 }//if tid 0 399 437 }//for trunk/install/php/m.php
r77 r83 35 35 36 36 $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")))); 37 39 $errflag = 0; 38 40 $pname = "手動録画"; … … 74 76 $recstid = getgetnumform(recstid); 75 77 $pname = getgetform(pname); 78 //$usedigital = getgetnumform(usedigital); 79 76 80 //確認 77 81 $startdatetime = "$startdate"."$starttime"; … … 105 109 } 106 110 } 111 //デジタル優先 112 /*if ($usedigital == 1){ 113 }else{ 114 $usedigital = 0; 115 } 116 */ 107 117 //正しければ 108 118 if ($errflag == 0){ … … 193 203 <p>放送日: 194 204 <input name="startdate" type="text" id="startdate" size="9" value="<?=$startdate?>" /> 195 年月日 Ex. 19800121</p>205 年月日 Ex.<?=$today?></p> 196 206 <p>録画開始時刻: 197 207 <input name="starttime" type="text" id="starttime" size="5" value="<?=$starttime?>" /> 198 時分 Ex. 2304</p>208 時分 Ex.<?=$nowdate?> </p> 199 209 <p> 200 210 録画尺: … … 205 215 <?php 206 216 $query = " 207 SELECT stationid,stationname,stationrecch 217 SELECT stationid,stationname,stationrecch ,digitalch 208 218 FROM foltia_station 209 219 WHERE stationrecch > 0 220 UNION 221 SELECT DISTINCT stationid,stationname,stationrecch ,digitalch 222 FROM foltia_station 223 WHERE digitalch > 0 210 224 ORDER BY \"stationid\" ASC"; 211 225 … … 248 262 } 249 263 } 250 264 /* 265 print "<p>デジタル録画を優先:"; 266 267 if ($usedigital == 1){ 268 print "<input name="useditial" type="radio" value="1" selected /> する 269 <input name="useditial" type="radio" value="0" /> しない 270 "; 271 }else{ 272 print "<input name="useditial" type="radio" value="1" /> する 273 <input name="useditial" type="radio" value="0" selected /> しない 274 "; 275 } 276 */ 251 277 ?> 252 278 <p>番組名: trunk/install/php/reservecomp.php
r70 r83 54 54 $station = 0; 55 55 } 56 56 $usedigital = getgetnumform(usedigital); 57 if ($usedigital == "") { 58 $usedigital = 0; 59 } 57 60 $bitrate = getgetnumform(bitrate); 58 61 if ($bitrate == "") { … … 202 205 203 206 if ($maxrows == 0) { //新規追加 204 $query = "INSERT INTO foltia_tvrecord values ('$tid','$station','$bitrate' )";207 $query = "INSERT INTO foltia_tvrecord values ('$tid','$station','$bitrate','$usedigital')"; 205 208 $rs = m_query($con, $query, "DB書き込みに失敗しました"); 206 209 }else{//修正 (ビットレート) 207 210 $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' "; 210 212 $rs = m_query($con, $query, "DB書き込みに失敗しました"); 211 213 } trunk/install/php/reserveepgcomp.php
r70 r83 78 78 }else{ 79 79 $rowdata = pg_fetch_row($rs, 0); 80 80 81 $insertpid = $rowdata[0]; 81 $insertpid-- ; 82 if ($insertpid > 0){ 83 $insertpid = -1; 84 }else{ 85 $insertpid-- ; 86 } 82 87 } 83 88 // next 話数を探す … … 121 126 values ( '$insertpid','0','$stationid', 122 127 '$nextcno','$subtitle','$startdatetime','$enddatetime','0' ,'$lengthmin' , '$memberid')"; 123 124 128 $rs = m_query($con, $query, "DBクエリに失敗しました"); 125 129 … … 143 147 } 144 148 145 ?>146 149 147 148 <?php149 150 print "<table width=\"100%\" border=\"0\"> 150 151 <tr><td>放送開始</td><td>$startdatetime</td></tr> trunk/install/php/reserveprogram.php
r70 r83 89 89 <tr> 90 90 <td>放送局</td> 91 <td>ビットレート</td> 91 <td>デジタル録画優先</td> 92 <td>アナログビットレート</td> 92 93 </tr> 93 94 <tr> … … 128 129 129 130 </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 130 150 <td><select name="bitrate"> 131 151 <option value="14">最高画質</option> trunk/install/php/selectcaptureimage.php
r70 r83 116 116 $tid = ereg_replace("[^0-9]", "", $tid); 117 117 118 $path = ereg_replace("\.m2p$ ", "", $m2pfilename);118 $path = ereg_replace("\.m2p$|\.m2t$", "", $m2pfilename); 119 119 $serveruri = getserverfqdn (); 120 120 … … 124 124 125 125 if (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";126 print "<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"; 127 127 }else{ 128 print "<img src='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' width='160' height='120'alt='$tid:$countno:$filetid'>\n";128 print "<img src='http://$serveruri$httpmediamappath/$tid.localized/img/$path/$filetid' alt='$tid:$countno:$filetid'>\n"; 129 129 } 130 130 }//foreach trunk/install/php/showlib.php
r70 r83 36 36 <head> 37 37 <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 39 if (file_exists ( "./iui/iui.css" )){ 40 $useragent = $_SERVER['HTTP_USER_AGENT']; 41 } 42 if(ereg("iPhone",$useragent)){ 43 print "<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{ 49 print "<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 ?> 41 54 <title>foltia:MP4 Lib</title> 42 55 </head> 43 56 44 57 <?php 45 $now = date("YmdHi"); 58 $now = date("YmdHi"); 59 if(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(); 71 print " <p align=\"left\"><font color=\"#494949\" size=\"6\">録画ライブラリ表示</font></p> 72 <hr size=\"4\"> 73 <p align=\"left\">再生可能ライブラリを表示します。<br> 74 "; 75 } 46 76 47 ?>48 <body BGCOLOR="#ffffff" TEXT="#494949" LINK="#0047ff" VLINK="#000000" ALINK="#c6edff" >49 <div align="center">50 <?php51 printhtmlpageheader();52 ?>53 <p align="left"><font color="#494949" size="6">録画ライブラリ表示</font></p>54 <hr size="4">55 <p align="left">再生可能ライブラリを表示します。<br>56 57 <?58 77 //新仕様 /* 2006/10/26 */ 59 78 $query = " … … 70 89 71 90 if ($maxrows > 0 ){ 91 if(ereg("iPhone",$useragent)){ 92 print "<ul id=\"home\" title=\"録画ライブラリ表示\" selected=\"true\">"; 93 }else{ 72 94 print " 73 95 <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\"> … … 82 104 <tbody> 83 105 "; 106 } 84 107 for ($row = 0; $row < $maxrows; $row++) { 85 108 $rowdata = pg_fetch_row($rs, $row); … … 90 113 $counts = htmlspecialchars($counts); 91 114 115 if(ereg("iPhone",$useragent)){ 116 print "<li><a href=\"showlibc.php?tid=$tid\" target=\"_self\">$title</a></li>\n"; 117 }else{ 92 118 print " 93 119 <tr> … … 98 124 </tr>\n 99 125 "; 126 } 100 127 }//for 128 129 if(ereg("iPhone",$useragent)){ 130 print "</ul>\n</body>\n</html>\n"; 131 }else{ 101 132 print " 102 133 </tbody> … … 105 136 </html> 106 137 "; 138 } 139 107 140 }else{ 108 141 print "録画ファイルが存在しません。</body></html>"; trunk/install/php/showlibc.php
r74 r83 41 41 <head> 42 42 <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>46 43 <?php 47 print "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"./folcast.php?tid=$tid\" /> 48 "; 49 if ($tid == "") { 44 if (file_exists ( "./iui/iui.css" )){ 45 $useragent = $_SERVER['HTTP_USER_AGENT']; 46 } 47 if(ereg("iPhone",$useragent)){ 48 print "<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{ 53 print "<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 } 59 if ($tid == "") { 50 60 print "<title>foltia:Lib</title> 51 61 </head><body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > \n"; 52 62 printhtmlpageheader(); 53 63 die_exit("再生可能番組がありません<BR>"); 54 64 } 55 65 $now = date("YmdHi"); 56 66 … … 75 85 } 76 86 //ヘッダ続き 77 print "<title>foltia:Lib $tid:$title</title> 78 </head> 79 <body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > 87 print "<title>foltia:Lib $tid:$title</title></head>"; 88 $serveruri = getserveruri(); 89 90 if(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 99 print "<body BGCOLOR=\"#ffffff\" TEXT=\"#494949\" LINK=\"#0047ff\" VLINK=\"#000000\" ALINK=\"#c6edff\" > 80 100 <div align=\"center\"> 81 101 "; … … 84 104 <hr size=\"4\"> 85 105 <p align=\"left\">再生可能ムービーを表示します。<br>"; 86 87 $serveruri = getserveruri();88 106 if ($tid == 0){ 89 107 print "$title 【<A HREF = \"./folcast.php?tid=$tid\">この番組のFolcast</A> [<a href=\"itpc://$serveruri/folcast.php?tid=$tid\">iTunesに登録</a>】 <br>\n"; … … 93 111 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"; 94 112 } 113 }// endif if(ereg("iPhone",$useragent)) 114 95 115 //確認 96 116 if (file_exists ("$recfolderpath/$tid.localized")){ … … 101 121 exit; 102 122 } 103 104 105 123 106 124 //新仕様/* 2006/10/26 */ … … 133 151 $maxrows = pg_num_rows($rs); 134 152 if ($maxrows > 0 ){ 153 if(ereg("iPhone",$useragent)){ 154 print "<ul id=\"home\" title=\"$title\" selected=\"true\">"; 155 }else{ 135 156 print " 136 157 <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\"> 137 158 <tbody> 138 159 "; 139 160 } 140 161 for ($row = 0; $row < $maxrows; $row++) { 141 162 $rowdata = pg_fetch_row($rs, $row); … … 178 199 179 200 if (($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])); 181 203 182 204 if (($capimgpath != "") && (file_exists("$recfolderpath/$tid.localized/img/$capimgpath") )){ … … 195 217 } 196 218 197 219 if(ereg("iPhone",$useragent)){ 220 221 print "<li><a href=\"http://$serverfqdn/$httpmediamappath/$tid.localized/mp4/$fName\" target=\"_self\">$count $subtitle $onairdate</a></li>\n"; 222 223 }else{ 198 224 print " <tr> 199 225 <td rowspan=\"4\" width=\"170\"><a href = \"$httpmediamappath/$tid.localized/mp4/$fName\" target=\"_blank\"><img src = \"$imgsrcuri\" width=\"160\" height=\"120\"></a></td> … … 202 228 <tr> 203 229 "; 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 }//if230 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 209 235 print " </tr> 210 236 <tr> … … 216 242 "; 217 243 244 }//endif iPhone 245 218 246 }//for 219 247 }else{ 220 248 print "録画ファイルがありません<br>\n"; 221 249 }//if 250 251 if(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 } 222 257 ?> 223 </tbody>224 </table>225 226 258 </body> 227 259 </html> 260 261 trunk/install/php/showplaylist.php
r70 r83 14 14 省略時、録画順にソートされる。 15 15 titleのときに、番組順ソートされる。 16 rawのときに、DBに記録されている番組録画情報ではなくディレクトリにあるm2p ファイルを全て表示する。16 rawのときに、DBに記録されている番組録画情報ではなくディレクトリにあるm2p/m2tファイルを全て表示する。 17 17 18 18 DCC-JPL Japan/foltia project … … 97 97 //旧仕様 98 98 if($list == "raw"){ 99 exec ("ls -t $recfolderpath/*.m2 p", $m2pfiles);99 exec ("ls -t $recfolderpath/*.m2?", $m2pfiles); 100 100 101 101 … … 106 106 107 107 if(($fName == ".") or ($fName == "..") ){ continue; } 108 if (ereg(".m2 p", $fName)){108 if (ereg(".m2.+", $fName)){ 109 109 $filesplit = split("-",$fName); 110 110 … … 230 230 } 231 231 if (file_exists("./selectcaptureimage.php") ) { 232 $capimgpath = preg_replace("/.m2 p/", "", $fName);232 $capimgpath = preg_replace("/.m2.+/", "", $fName); 233 233 print " <td align=\"left\"><a href=\"./selectcaptureimage.php?pid=$pid\">キャプ</a></td>\n"; 234 234 }