diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-09-20 01:14:51 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-09-20 01:14:51 (GMT) |
commit | f6aef0cbb8cb2464854a23566ccb72526c145f55 (patch) | |
tree | 6a491e1c1d76579a72ccf4890e4217a8d23ea44a | |
parent | 95ae5cd3a1b3572d48c8eaae8708866de8c235e5 (diff) |
also exporting log name of dropboxes
-rw-r--r-- | index.html | 1 | ||||
-rwxr-xr-x | lib/rddb.pm | 5 | ||||
-rwxr-xr-x | listshows.cgi | 1 |
3 files changed, 5 insertions, 2 deletions
@@ -78,6 +78,7 @@ starttime: $(this).find('show-starttime').text(), length: $(this).find('show-length').text(), group: $(this).find('group').text(), + log: $(this).find('log').text(), normlevel: $(this).find('normalization-level').text(), trimlevel: $(this).find('autotrim-level').text(), } diff --git a/lib/rddb.pm b/lib/rddb.pm index b78f4d1..966b29f 100755 --- a/lib/rddb.pm +++ b/lib/rddb.pm @@ -101,7 +101,7 @@ sub get_dropboxes { my ($dbh, $username) = @_; - my $sql = qq{select USER_PERMS.GROUP_NAME,DROPBOXES.PATH,DROPBOXES.TO_CART,DROPBOXES.NORMALIZATION_LEVEL,DROPBOXES.AUTOTRIM_LEVEL,DROPBOXES.SET_USER_DEFINED,GROUPS.DESCRIPTION from USER_PERMS, DROPBOXES, GROUPS where USER_PERMS.USER_NAME= ? and DROPBOXES.GROUP_NAME=USER_PERMS.GROUP_NAME and DROPBOXES.GROUP_NAME=GROUPS.NAME;}; + my $sql = qq{select USER_PERMS.GROUP_NAME,DROPBOXES.PATH,DROPBOXES.TO_CART,DROPBOXES.LOG_PATH,DROPBOXES.NORMALIZATION_LEVEL,DROPBOXES.AUTOTRIM_LEVEL,DROPBOXES.SET_USER_DEFINED,GROUPS.DESCRIPTION from USER_PERMS, DROPBOXES, GROUPS where USER_PERMS.USER_NAME= ? and DROPBOXES.GROUP_NAME=USER_PERMS.GROUP_NAME and DROPBOXES.GROUP_NAME=GROUPS.NAME;}; my $sth = $dbh->prepare($sql) or return (undef, 'ERROR', "Database Error: " . $dbh->errstr); @@ -110,13 +110,14 @@ sub get_dropboxes or return (undef, 'ERROR', "Database Error: " . $sth->errstr); my @allowed_dbs; - while(my ($group, $type, $showid, $normlevel, $trimlevel, $params, $groupdesc) = $sth->fetchrow_array()) { + while(my ($group, $type, $showid, $log, $normlevel, $trimlevel, $params, $groupdesc) = $sth->fetchrow_array()) { my $entry = {}; $entry->{'GROUP'} = $group; $entry->{'GROUPDESC'} = $groupdesc; $entry->{'TYPE'} = $type; $entry->{'SHOWID'} = -1; + $entry->{'LOG'} = $log; $entry->{'NORMLEVEL'} = $normlevel; $entry->{'TRIMLEVEL'} = $trimlevel; $entry->{'PARAM'} = $params; diff --git a/listshows.cgi b/listshows.cgi index 7ef0bcf..0bc0dbd 100755 --- a/listshows.cgi +++ b/listshows.cgi @@ -50,6 +50,7 @@ if($responsecode != 200) { print " <group-description>" . $href->{'GROUPDESC'} . "</group-description>\n"; print " <type>" . $href->{'TYPE'} . "</type>\n"; print " <showid>" . $href->{'SHOWID'} . "</showid>\n"; + print " <log>" . $href->{'LOG'} . "</log>\n"; print " <normalization-level>" . $href->{'NORMLEVEL'} . "</normalization-level>\n"; print " <autotrim-level>" . $href->{'TRIMLEVEL'} . "</autotrim-level>\n"; print " <parameters>" . $href->{'PARAM'} . "</parameters>\n"; |