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

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

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

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • 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         
track feed