event.cgi -> broadcast.cgi
event.cgi is on a uBlock list, so we rename it.
This commit is contained in:
@@ -767,14 +767,14 @@ sub download {
|
||||
if ( $datetime =~ /(\d\d\d\d\-\d\d\-\d\d)[ T](\d\d)\:(\d\d)/ ) {
|
||||
$datetime = $1 . '\ ' . $2 . '_' . $3;
|
||||
} else {
|
||||
print STDERR "event.cgi::download no valid datetime found $datetime\n";
|
||||
print STDERR "broadcast.cgi::download no valid datetime found $datetime\n";
|
||||
return;
|
||||
}
|
||||
my $archive_dir = $config->{locations}->{local_archive_dir};
|
||||
my $archive_url = $config->{locations}->{local_archive_url};
|
||||
print STDERR "archive_dir: " . $archive_dir . "\n";
|
||||
print STDERR "archive_url: " . $archive_url . "\n";
|
||||
print STDERR "event.cgi::download look for : $archive_dir/$datetime*.mp3\n";
|
||||
print STDERR "broadcast.cgi::download look for : $archive_dir/$datetime*.mp3\n";
|
||||
my @files = glob( $archive_dir . '/' . $datetime . '*.mp3' );
|
||||
|
||||
if ( @files > 0 ) {
|
||||
@@ -814,12 +814,12 @@ sub download_audio {
|
||||
if ( $datetime =~ /(\d\d\d\d\-\d\d\-\d\d)[ T](\d\d)\:(\d\d)/ ) {
|
||||
$datetime = $1 . '\ ' . $2 . '_' . $3;
|
||||
} else {
|
||||
print STDERR "event.cgi::download no valid datetime found $datetime\n";
|
||||
print STDERR "broadcast.cgi::download no valid datetime found $datetime\n";
|
||||
return;
|
||||
}
|
||||
my $archive_dir = $config->{locations}->{local_archive_dir};
|
||||
print STDERR "archive_dir: " . $archive_dir . "\n";
|
||||
print STDERR "event.cgi::download look for : $archive_dir/$datetime*.mp3\n";
|
||||
print STDERR "broadcast.cgi::download look for : $archive_dir/$datetime*.mp3\n";
|
||||
my @files = glob( $archive_dir . '/' . $datetime . '*.mp3' );
|
||||
if ( @files > 0 ) {
|
||||
my $file = $files[0];
|
||||
@@ -800,7 +800,7 @@ function handleEvent(id, event){
|
||||
if (series_id <0) return;
|
||||
if (event_id <0) return;
|
||||
|
||||
var url="event.cgi?action=edit&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id;
|
||||
var url="broadcast.cgi?action=edit&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id;
|
||||
if(event.which==1){
|
||||
load(url);
|
||||
}
|
||||
@@ -840,7 +840,7 @@ function handleSchedule(id, start_date, event){
|
||||
|
||||
if(event.which==1){
|
||||
//left click: create event from schedule
|
||||
var url="event.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&start_date="+start_date;
|
||||
var url="broadcast.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&start_date="+start_date;
|
||||
load(url);
|
||||
}
|
||||
if(event.which==3){
|
||||
|
||||
@@ -101,7 +101,7 @@ function copyFromEvent(resultSelector){
|
||||
|
||||
function loadEvent(projectId,studioId,seriesId,eventId, callback){
|
||||
|
||||
var url="event.cgi";
|
||||
var url="broadcast.cgi";
|
||||
url+="?project_id="+projectId;
|
||||
url+="&studio_id="+studioId;
|
||||
url+="&series_id="+seriesId;
|
||||
@@ -192,7 +192,7 @@ function changeSeries(seriesId){
|
||||
$.post(
|
||||
url,
|
||||
function(data){
|
||||
var url='event.cgi?';
|
||||
var url='broadcast.cgi?';
|
||||
url += '&project_id='+projectId;
|
||||
url += '&studio_id='+studioId;
|
||||
url += '&series_id='+newSeriesId;
|
||||
|
||||
@@ -10,7 +10,7 @@ function edit_event(event_id, series_id, studio_id, project_id, hide_series){
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="event.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id+"&action=edit";
|
||||
var url="broadcast.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id+"&action=edit";
|
||||
if ((hide_series!=null) && (hide_series!=''))url+='&hide_series=1';
|
||||
load(url);
|
||||
}
|
||||
|
||||
@@ -842,7 +842,7 @@ sub reassign_event {
|
||||
}
|
||||
|
||||
my $url =
|
||||
'event.cgi?project_id='
|
||||
'broadcast.cgi?project_id='
|
||||
. $project_id
|
||||
. '&studio_id='
|
||||
. $studio_id
|
||||
@@ -1378,7 +1378,7 @@ sub rebuild_episodes {
|
||||
|
||||
for my $event (@$events) {
|
||||
print qq{<tr class="$event->{class}" onclick="window.location.href=\$(this).attr('href');"}
|
||||
. qq{ href="event.cgi?action=edit&project_id=$event->{project_id}&studio_id=$event->{studio_id}&series_id=$series_id&event_id=$event->{id}"\n}
|
||||
. qq{ href="broadcast.cgi?action=edit&project_id=$event->{project_id}&studio_id=$event->{studio_id}&series_id=$series_id&event_id=$event->{id}"\n}
|
||||
. qq{>}
|
||||
. join( "", map { "<td>" . ( $event->{$_} // '-' ) . "</td>" } @cols )
|
||||
. "</tr>\n";
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
<!-- edit event -->
|
||||
<div id="edit_event" class="panel">
|
||||
<form id="event_<TMPL_VAR event_id>" method="post"
|
||||
action="event.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id><TMPL_UNLESS new_event>&event_id=<TMPL_VAR .event_id></TMPL_UNLESS>"
|
||||
action="broadcast.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id><TMPL_UNLESS new_event>&event_id=<TMPL_VAR .event_id></TMPL_UNLESS>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.create_event>
|
||||
<form action="event.cgi"
|
||||
<form action="broadcast.cgi"
|
||||
style="float:left"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.create_event>
|
||||
<form action="event.cgi"
|
||||
<form action="broadcast.cgi"
|
||||
style="float:left"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
|
||||
Reference in New Issue
Block a user