Index: trunk/install/php/m.php =================================================================== --- trunk/install/php/m.php (リビジョン 75) +++ trunk/install/php/m.php (リビジョン 77) @@ -142,19 +142,25 @@ if ($demomode){ }else{ - -$query = " -insert into foltia_subtitle -values ( '$insertpid','0','$recstid', - '$nextcno','$pname','$startdatetime','$enddatetime','0' ,'$lengthmin')"; - - $rs = m_query($con, $query, "DBクエリに失敗しました"); - -//addatq.pl -//キュー入れプログラムをキック -//引数 TID チャンネルID -//echo("$toolpath/perl/addatq.pl $tid $station"); - - $oserr = system("$toolpath/perl/addatq.pl 0 0"); - + $userclass = getuserclass($con); + if ( $userclass <= 2){ + $memberid = getmymemberid($con); + + $query = " + insert into foltia_subtitle (pid ,tid ,stationid , countno ,subtitle , +startdatetime ,enddatetime ,startoffset , lengthmin , epgaddedby ) + values ( '$insertpid','0','$recstid', + '$nextcno','$pname','$startdatetime','$enddatetime','0' ,'$lengthmin', '$memberid')"; + + $rs = m_query($con, $query, "DBクエリに失敗しました"); + + //addatq.pl + //キュー入れプログラムをキック + //引数 TID チャンネルID + //echo("$toolpath/perl/addatq.pl $tid $station"); + + $oserr = system("$toolpath/perl/addatq.pl 0 0"); + }else{ + print "EPG予約を行う権限がありません。"; + }// end if $userclass <= 2 }//end if demomode @@ -247,5 +253,5 @@

- +