summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-28 04:24:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-28 04:24:40 (GMT)
commitb1dbfb3682d7d231ceed2f43819cac10c0012690 (patch)
tree6083b59d087f785f868b4b42a9e10dc3553221ea
parent9666cbf7b7c3f6b9a104203078363c7b29226630 (diff)
listdropboxes now supports type to be specified to limit the list of dropboxes
-rwxr-xr-xrh-bin/listdropboxes.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi
index 2b753d1..61e85d9 100755
--- a/rh-bin/listdropboxes.cgi
+++ b/rh-bin/listdropboxes.cgi
@@ -35,6 +35,7 @@ my @dropboxes = ();
my $q = CGI->new;
my $username = $q->param('LOGIN_NAME');
my $token = $q->param('PASSWORD');
+my $type = $q->param('TYPE');
if(!defined $username) {
$responsecode = 400;
@@ -49,7 +50,7 @@ if(!defined $username) {
($result, $status, $errorstring) = RHRD::rddb::check_token($ctx, $username, $token);
if($result == 1) {
$responsecode = 200;
- @dropboxes = RHRD::rddb::get_dropboxes($ctx, $username);
+ @dropboxes = RHRD::rddb::get_dropboxes($ctx, $username, $type);
if(!defined $dropboxes[0] && defined $dropboxes[1]) {
$responsecode = 500;
$status = $dropboxes[1];