summaryrefslogtreecommitdiff
path: root/rh-bin/listdropboxes.cgi
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-24 21:57:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-24 21:57:59 (GMT)
commitd2fb142fc08989cd0397ecfb3941e35851a28ec9 (patch)
tree7e5a1bf77b038dbdbaecb5b718c71b235421ddc4 /rh-bin/listdropboxes.cgi
parent20b2dfa532c2a931bebebc5894639215623e9671 (diff)
move to systemwide RHRD:: libs
Diffstat (limited to 'rh-bin/listdropboxes.cgi')
-rwxr-xr-xrh-bin/listdropboxes.cgi12
1 files changed, 5 insertions, 7 deletions
diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi
index 69ade9f..53da91b 100755
--- a/rh-bin/listdropboxes.cgi
+++ b/rh-bin/listdropboxes.cgi
@@ -22,9 +22,7 @@
use strict;
use CGI;
-use File::Basename;
-use lib dirname( __FILE__ ) . '/../lib';
-use rddb;
+use RHRD::rddb;
my $status = 'ERROR';
my $errorstring = 'unknown';
@@ -36,13 +34,13 @@ my $username = $q->param('LOGIN_NAME');
my $token = $q->param('PASSWORD');
my $dbh;
-($dbh, $status, $errorstring) = rddb::opendb();
+($dbh, $status, $errorstring) = RHRD::rddb::opendb();
if(defined $dbh) {
my $result;
- ($result, $status, $errorstring) = rddb::check_token($dbh, $username, $token);
+ ($result, $status, $errorstring) = RHRD::rddb::check_token($dbh, $username, $token);
if($result == 1) {
$responsecode = 200;
- @dropboxes = rddb::get_dropboxes($dbh, $username);
+ @dropboxes = RHRD::rddb::get_dropboxes($dbh, $username);
unless (defined $dropboxes[0]) {
$responsecode = 500;
$status = $dropboxes[1];
@@ -53,7 +51,7 @@ if(defined $dbh) {
} else {
$responsecode = 500;
}
- rddb::closedb($dbh);
+ RHRD::rddb::closedb($dbh);
}
print "Content-type: application/xml; charset=UTF-8\n\n";