Index: trunk/install/php/deletemovie.php
===================================================================
--- trunk/install/php/deletemovie.php (リビジョン 17)
+++ trunk/install/php/deletemovie.php (リビジョン 70)
@@ -15,4 +15,19 @@
 
 */
+
+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
+
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@@ -26,6 +41,4 @@
 
 <?php
-  include("./foltialib.php");
-$con = m_connect();
 $now = date("YmdHi");   
 
@@ -41,21 +54,22 @@
   <p align="left"><font color="#494949" size="6">録画番組削除</font></p>
   <hr size="4">
-<p align="left">次の番組を削除しました。</p>
+<?php
+$userclass = getuserclass($con);
+if ( $userclass <= 1){
+
+print "<p align=\"left\">次の番組を削除しました。</p>
+  <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">
+	<thead>
+		<tr>
+			<th align=\"left\">ファイル名</th>
+			<th align=\"left\">タイトル</th>
+			<th align=\"left\">話数</th>
+			<th align=\"left\">サブタイ</th>
+		</tr>
+	</thead>
+	<tbody>";
 
 
-  <table BORDER="0" CELLPADDING="0" CELLSPACING="2" WIDTH="100%">
-	<thead>
-		<tr>
-			<th align="left">ファイル名</th>
-			<th align="left">タイトル</th>
-			<th align="left">話数</th>
-			<th align="left">サブタイ</th>
-		</tr>
-	</thead>
 
-	<tbody>
-<?
-
-//--
 
 foreach ($delete as $fName) {
@@ -129,7 +143,11 @@
 }//foreach
 
+print "	</tbody></table>\n";
+
+}else{//権限なし
+	print "<p align=\"left\">ファイル削除権限がありません。</p>";
+}
+
 ?>
-	</tbody>
-</table>
 
 </body>