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

環境ポリシー機能搭載

ファイル:

凡例:

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

    r63 r70  
    1717 
    1818*/ 
     19 
     20include("./foltialib.php"); 
     21$con = m_connect(); 
     22 
     23if ($useenvironmentpolicy == 1){ 
     24        if (!isset($_SERVER['PHP_AUTH_USER'])) { 
     25            header("WWW-Authenticate: Basic realm=\"foltia\""); 
     26            header("HTTP/1.0 401 Unauthorized"); 
     27                redirectlogin(); 
     28            exit; 
     29        } else { 
     30        login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); 
     31        } 
     32}//end if login 
     33$userclass = getuserclass($con); 
     34 
    1935?> 
    2036<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
     
    2844 
    2945<?php 
    30  
    31   include("./foltialib.php"); 
    32  
    33 $con = m_connect(); 
    34  
     46$mymemberid = getmymemberid($con); 
    3547$now = getgetnumform(startdate); 
     48 
    3649if ($now > 200501010000){ 
    3750}else{ 
     
    4962foltia_tvrecord.bitrate  ,  
    5063foltia_subtitle.startoffset ,  
    51 foltia_subtitle.pid   
     64foltia_subtitle.pid ,  
     65foltia_subtitle.epgaddedby  
    5266FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 
    5367WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid AND foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid 
     
    6478foltia_tvrecord.bitrate ,  
    6579foltia_subtitle.startoffset ,  
    66 foltia_subtitle.pid   
     80foltia_subtitle.pid ,  
     81foltia_subtitle.epgaddedby  
    6782FROM foltia_tvrecord 
    6883LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) 
     
    130145$tid = htmlspecialchars($rowdata[0]); 
    131146$title = htmlspecialchars($rowdata[2]); 
    132 $subtitle =  htmlspecialchars($rowdata[4]); 
     147$subtitle = htmlspecialchars($rowdata[4]); 
     148$dbepgaddedby = htmlspecialchars($rowdata[10]); 
     149 
    133150//重複検出 
    134151//開始時刻 $rowdata[5] 
     
    268285                                        print "<td><a href=\"http://cal.syoboi.jp/tid/$tid/time#$pid\" target=\"_blank\">$subtitle<br></td>\n"; 
    269286                                        }else{ 
    270                                         if ($protectmode) { 
    271                                         print "<td>$subtitle<br></td>\n"; 
     287                                        //if ( $userclass <= 2){ 
     288                                        if (($mymemberid == $dbepgaddedby)||($userclass <= 1)){ 
     289                                                if ($userclass <= 1 ){//管理者なら 
     290                                                        $membername = getmemberid2name($con,$dbepgaddedby); 
     291                                                        $membername = ":" . $membername ; 
     292                                                }else{ 
     293                                                $membername = ""; 
     294                                                } 
     295                                        print "<td>$subtitle [<a href=\"delepgp.php?pid=$pid\">予約解除</a>$membername]<br></td>\n"; 
    272296                                        }else{ 
    273                                         print "<td>$subtitle [<a href=\"delepgp.php?pid=$pid\">予約解除</a>]<br></td>\n"; 
     297                                        print "<td>$subtitle [解除不能]<br></td>\n"; 
    274298                                        } 
    275299                                        } 
     
    345369                                echo("<tr>\n"); 
    346370                                //予約解除 
    347                                 if ($protectmode) { 
    348                                         echo("<td>−</td>");                              
     371                                if ( $userclass <= 1){ 
     372                                        echo("<td><a href=\"delreserve.php?tid=$tid&sid=" . 
     373                                        htmlspecialchars($rowdata[4])  . "\">解除</a></td>\n"); 
    349374                                }else{ 
    350                                         echo("<td><a href=\"delreserve.php?tid=$tid&sid=" . 
    351                                          htmlspecialchars($rowdata[4])  . "\">解除</a></td>\n"); 
     375                                echo("<td>−</td>");              
    352376                                } 
    353377                                //TID 
track feed