チェンジセット 94: trunk/install/php/showlibc.php
- コミット日時:
- 2010/02/28 22:28:26 (15 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/showlibc.php
r83 r94 68 68 SELECT foltia_program.title 69 69 FROM foltia_program 70 WHERE foltia_program.tid = $tid 71 "; 72 $rs = m_query($con, $query, "DBクエリに失敗しました"); 73 $maxrows = pg_num_rows($rs); 74 if ($maxrows == 0 ){ 75 $syobocaldb = `curl "http://cal.syoboi.jp/db?Command=TitleLookup&TID=$tid" | head -2 `; 70 WHERE foltia_program.tid = ? 71 "; 72 //$rs = m_query($con, $query, "DBクエリに失敗しました"); 73 $rs = sql_query($con, $query, "DBクエリに失敗しました",array($tid)); 74 $rowdata = $rs->fetch(); 75 if (! $rowdata) { 76 $syobocaldb = `curl "http://cal.syoboi.jp/db?Command=TitleLookup&TID=$tid" | head -2 `; 76 77 $syobocaldb = mb_convert_encoding($syobocaldb, "EUC-JP", "UTF-8"); 77 78 $syobocaldb = preg_match("/<Title>.*<\/Title>/", $syobocaldb,$title); … … 80 81 $title = htmlspecialchars($title) ; 81 82 }else{ 82 $rowdata = pg_fetch_row($rs, 0);83 83 $title = $rowdata[0]; 84 84 $title = htmlspecialchars($title) ; … … 143 143 LEFT JOIN foltia_program 144 144 ON foltia_mp4files.tid = foltia_program.tid 145 WHERE foltia_mp4files.tid = $tid145 WHERE foltia_mp4files.tid = ? 146 146 ORDER BY \"startdatetime\" ASC 147 147 "; 148 148 149 149 $rs = ""; 150 $rs = m_query($con, $query, "DBクエリに失敗しました"); 151 $maxrows = pg_num_rows($rs); 152 if ($maxrows > 0 ){ 150 //$rs = m_query($con, $query, "DBクエリに失敗しました"); 151 $rs = sql_query($con, $query, "DBクエリに失敗しました",array($tid)); 152 $rowdata = $rs->fetch(); 153 if ($rowdata) { 153 154 if(ereg("iPhone",$useragent)){ 154 155 print "<ul id=\"home\" title=\"$title\" selected=\"true\">"; … … 159 160 "; 160 161 } 161 for ($row = 0; $row < $maxrows; $row++) { 162 $rowdata = pg_fetch_row($rs, $row); 163 162 do { 164 163 $title = $rowdata[1]; 165 164 … … 195 194 } 196 195 //Starlight Breaker向け拡張 197 //$debug_pg_num_rows = pg_num_rows ($rs);196 //$debug_pg_num_rows = $rs ->rowCount(); 198 197 $caplink = ""; 199 198 200 if (($sbpluginexist == 1) && (pg_num_rows ($rs ) > 0)){199 if ($sbpluginexist == 1) { 201 200 //$capimgpath = htmlspecialchars(preg_replace("/.m2p/", "", $rowdata[5])); 202 201 $capimgpath = htmlspecialchars(preg_replace("/.m2./", "", $rowdata[5])); … … 244 243 }//endif iPhone 245 244 246 }//for 245 } while ($rowdata = $rs->fetch()); 247 246 }else{ 248 247 print "録画ファイルがありません<br>\n";