チェンジセット 83: trunk/install/php/showlibc.php
- コミット日時:
- 2008/12/30 22:12:46 (17 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
- 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 - }//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 - 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 


