チェンジセット 77: trunk/install/php/m.php

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

m.php
 環境ポリシー対応が不十分だったところを修正。

ファイル:

凡例:

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

    r75 r77  
    142142if ($demomode){ 
    143143}else{ 
    144  
    145 $query = " 
    146 insert into foltia_subtitle   
    147 values ( '$insertpid','0','$recstid', 
    148         '$nextcno','$pname','$startdatetime','$enddatetime','0' ,'$lengthmin')"; 
    149  
    150         $rs = m_query($con, $query, "DBクエリに失敗しました"); 
    151  
    152 //addatq.pl 
    153 //キュー入れプログラムをキック 
    154 //引数 TID チャンネルID 
    155 //echo("$toolpath/perl/addatq.pl $tid $station"); 
    156  
    157         $oserr = system("$toolpath/perl/addatq.pl 0 0"); 
    158  
     144        $userclass = getuserclass($con); 
     145        if ( $userclass <= 2){ 
     146        $memberid = getmymemberid($con); 
     147         
     148        $query = " 
     149        insert into foltia_subtitle  (pid ,tid ,stationid , countno ,subtitle , 
     150startdatetime ,enddatetime ,startoffset , lengthmin , epgaddedby )   
     151        values ( '$insertpid','0','$recstid', 
     152                '$nextcno','$pname','$startdatetime','$enddatetime','0' ,'$lengthmin', '$memberid')"; 
     153         
     154                $rs = m_query($con, $query, "DBクエリに失敗しました"); 
     155         
     156        //addatq.pl 
     157        //キュー入れプログラムをキック 
     158        //引数 TID チャンネルID 
     159        //echo("$toolpath/perl/addatq.pl $tid $station"); 
     160         
     161                $oserr = system("$toolpath/perl/addatq.pl 0 0"); 
     162        }else{ 
     163                print "EPG予約を行う権限がありません。"; 
     164        }// end if $userclass <= 2 
    159165}//end if demomode 
    160166 
     
    247253    <input name="pname" type="text" id="pname" value="<?=$pname ?>" /> 
    248254  </p> 
    249 <!- <p  style='background-color: #DDDDFF'> 
     255<!-- <p  style='background-color: #DDDDFF'> 
    250256繰り返し指定-毎週以下の曜日に録画: 
    251257<input name="weeklyloop" type="radio" value="128" />  日曜  
     
    257263<input name="weeklyloop" type="radio" value="2" />  土曜  
    258264 </p> 
    259  -
     265 --
    260266<input type="submit" value="予約">  
    261267</form> 
track feed