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

環境ポリシー機能搭載

ファイル:

凡例:

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

    r1 r70  
    1919 
    2020*/ 
     21 
     22include("./foltialib.php"); 
     23$con = m_connect(); 
     24 
     25if ($useenvironmentpolicy == 1){ 
     26if (!isset($_SERVER['PHP_AUTH_USER'])) { 
     27    header("WWW-Authenticate: Basic realm=\"foltia\""); 
     28    header("HTTP/1.0 401 Unauthorized"); 
     29        redirectlogin(); 
     30    exit; 
     31} else { 
     32login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); 
     33} 
     34}//end if login 
     35 
     36 
    2137?> 
    2238<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
     
    2945 
    3046<?php  
    31   include("./foltialib.php"); 
    3247 
    3348        printhtmlpageheader(); 
     
    4964print " <title>foltia:EPG予約:完了</title> 
    5065</head>\n"; 
    51 $con = m_connect(); 
    5266$now = date("YmdHi");    
    5367// - DB登録作業 
     
    8195//INSERT 
    8296if ($demomode){ 
     97        print "下記予約を完了いたしました。<br>"; 
    8398}else{ 
     99$userclass = getuserclass($con); 
     100if ( $userclass <= 2){ 
     101/* 
     102pid  
     103tid  
     104stationid   
     105countno  
     106subtitle 
     107startdatetime   
     108enddatetime   
     109startoffset   
     110lengthmin   
     111m2pfilename  
     112pspfilename  
     113epgaddedby   
    84114 
    85 $query = " 
    86 insert into foltia_subtitle   
     115*/ 
     116 
     117$memberid = getmymemberid($con); 
     118        $query = " 
     119insert into foltia_subtitle  (pid ,tid ,stationid , countno ,subtitle , 
     120startdatetime ,enddatetime ,startoffset , lengthmin , epgaddedby )  
    87121values ( '$insertpid','0','$stationid', 
    88         '$nextcno','$subtitle','$startdatetime','$enddatetime','0' ,'$lengthmin')"; 
     122        '$nextcno','$subtitle','$startdatetime','$enddatetime','0' ,'$lengthmin' , '$memberid')"; 
    89123 
    90124        $rs = m_query($con, $query, "DBクエリに失敗しました"); 
    91125 
    92 //addatq.pl 
    93 //キュー入れプログラムをキック 
    94 //引数 TID チャンネルID 
    95 //echo("$toolpath/perl/addatq.pl $tid $station"); 
     126       //addatq.pl 
     127       //キュー入れプログラムをキック 
     128       //引数 TID チャンネルID 
     129       //echo("$toolpath/perl/addatq.pl $tid $station"); 
    96130 
    97131        $oserr = system("$toolpath/perl/addatq.pl 0 0"); 
    98  
     132        print "下記予約を完了いたしました。<br>"; 
     133}else{ 
     134        print "EPG予約を行う権限がありません。"; 
     135}// end if $userclass <= 2 
    99136}//end if demomode 
    100137 
    101 print "下記予約を完了いたしました。<br>"; 
     138 
    102139 
    103140}else{ 
track feed