差分発生行の前後
無視リスト:
コミット日時:
2008/01/24 18:27:18 (16 年前)
コミッタ:
sorshi
ログメッセージ:

環境ポリシー機能搭載

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/install/php/deletemovie.php

    r17 r70  
    1515 
    1616*/ 
     17 
     18include("./foltialib.php"); 
     19$con = m_connect(); 
     20 
     21if ($useenvironmentpolicy == 1){ 
     22if (!isset($_SERVER['PHP_AUTH_USER'])) { 
     23    header("WWW-Authenticate: Basic realm=\"foltia\""); 
     24    header("HTTP/1.0 401 Unauthorized"); 
     25        redirectlogin(); 
     26    exit; 
     27} else { 
     28login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); 
     29} 
     30}//end if login 
     31 
    1732?> 
    1833<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
     
    2641 
    2742<?php 
    28   include("./foltialib.php"); 
    29 $con = m_connect(); 
    3043$now = date("YmdHi");    
    3144 
     
    4154  <p align="left"><font color="#494949" size="6">録画番組削除</font></p> 
    4255  <hr size="4"> 
    43 <p align="left">次の番組を削除しました。</p> 
     56<?php 
     57$userclass = getuserclass($con); 
     58if ( $userclass <= 1){ 
     59 
     60print "<p align=\"left\">次の番組を削除しました。</p> 
     61  <table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\"> 
     62        <thead> 
     63                <tr> 
     64                        <th align=\"left\">ファイル名</th> 
     65                        <th align=\"left\">タイトル</th> 
     66                        <th align=\"left\">話数</th> 
     67                        <th align=\"left\">サブタイ</th> 
     68                </tr> 
     69        </thead> 
     70        <tbody>"; 
    4471 
    4572 
    46   <table BORDER="0" CELLPADDING="0" CELLSPACING="2" WIDTH="100%"> 
    47         <thead> 
    48                 <tr> 
    49                         <th align="left">ファイル名</th> 
    50                         <th align="left">タイトル</th> 
    51                         <th align="left">話数</th> 
    52                         <th align="left">サブタイ</th> 
    53                 </tr> 
    54         </thead> 
    5573 
    56         <tbody> 
    57 <? 
    58  
    59 //-- 
    6074 
    6175foreach ($delete as $fName) { 
     
    129143}//foreach 
    130144 
     145print " </tbody></table>\n"; 
     146 
     147}else{//権限なし 
     148        print "<p align=\"left\">ファイル削除権限がありません。</p>"; 
     149} 
     150 
    131151?> 
    132         </tbody> 
    133 </table> 
    134152 
    135153</body> 
track feed