Index: trunk/install/php/reserveepg.php
===================================================================
--- trunk/install/php/reserveepg.php (リビジョン 122)
+++ trunk/install/php/reserveepg.php (リビジョン 1)
@@ -15,18 +15,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
?>
@@ -39,4 +25,5 @@
fetch();
-if (! $rowdata) {
+ $rs = m_query($con, $query, "DBクエリに失敗しました");
+ $maxrows = pg_num_rows($rs);
+
+ if ($maxrows == 0) {
die_exit("登録番組がありません
");
}
-
+ $rowdata = pg_fetch_row($rs, 0);
//$title = htmlspecialchars($rowdata[0]);
?>
@@ -76,4 +64,7 @@