Index: trunk/install/php/titlelist.php
===================================================================
--- trunk/install/php/titlelist.php (リビジョン 119)
+++ trunk/install/php/titlelist.php (リビジョン 1)
@@ -16,20 +16,4 @@
*/
-
-include("./foltialib.php");
-$con = m_connect();
-
-
-if ($useenvironmentpolicy == 1){
-if (!isset($_SERVER['PHP_AUTH_USER'])) {
- header("WWW-Authenticate: Basic realm=\"foltia\"");
- header("HTTP/1.0 401 Unauthorized");
- redirectlogin();
- exit;
-} else {
-login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);
-}
-}//end if login
-
?>
@@ -44,14 +28,9 @@
fetch();
- if (! $rowdata) {
- die_exit("番組データがありません
");
- }
-
- $query2 = "
-SELECT COUNT(*) AS cnt FROM foltia_program
- ";
-$rs2 = sql_query($con, $query2, "DBクエリに失敗しました");
-$rowdata2 = $rs2->fetch();
- if (! $rowdata2) {
- die_exit("番組データがありません
");
- }
-//行数取得
-$dtcnt = $rowdata2[0];
+ $rs = m_query($con, $query, "DBクエリに失敗しました");
+ $maxrows = pg_num_rows($rs);
+
+ if ($maxrows == 0) {
+ die_exit("番組データがありません
");
+
+ }
?>
@@ -85,5 +53,4 @@
" . - htmlspecialchars($rowdata[0]) . " | \n"); + htmlspecialchars($rowdata[0]) . "\">" . + htmlspecialchars($rowdata[0]) . "\n"); //タイトル - echo("" . - htmlspecialchars($rowdata[1]) . " | \n"); + echo("" . + htmlspecialchars($rowdata[1]) . " | \n"); print "mp4 | \n"; - echo("\n"); - } while ($rowdata = $rs->fetch()); - + } ?> -