version 1.119, 2001/04/02 13:43:15
|
version 1.121, 2001/04/16 11:46:22
|
Line 52
|
Line 52
|
# receipt() : returns a receipt to be given out to users |
# receipt() : returns a receipt to be given out to users |
# getfile(filename) : returns the contents of filename, or a -1 if it can't |
# getfile(filename) : returns the contents of filename, or a -1 if it can't |
# be found, replicates and subscribes to the file |
# be found, replicates and subscribes to the file |
# filelocation(dir,file) : returns a farily clean absolute reference to file |
# filelocation(dir,file) : returns a fairly clean absolute reference to file |
# from the directory dir |
# from the directory dir |
# hreflocation(dir,file) : same as filelocation, but for hrefs |
# hreflocation(dir,file) : same as filelocation, but for hrefs |
# log(domain,user,home,msg) : write to permanent log for user |
# log(domain,user,home,msg) : write to permanent log for user |
Line 1245 sub definerole {
|
Line 1245 sub definerole {
|
sub metadata_query { |
sub metadata_query { |
my ($query,$custom,$customshow)=@_; |
my ($query,$custom,$customshow)=@_; |
# need to put in a library server loop here and return a hash |
# need to put in a library server loop here and return a hash |
# for my $server (keys %libserv) { |
|
my %rhash; |
my %rhash; |
|
# for my $server (keys %libserv) { |
for my $server ('msul3') { |
for my $server ('msul3') { |
unless ($custom or $customshow) { |
unless ($custom or $customshow) { |
my $reply=&reply("querysend:".&escape($query),$server); |
my $reply=&reply("querysend:".&escape($query),$server); |
$rhash{$server}=$reply; |
$rhash{$server}=$reply; |
return $reply; |
|
} |
} |
else { |
else { |
my $reply=&reply("querysend:".&escape($query).':'. |
my $reply=&reply("querysend:".&escape($query).':'. |
&escape($custom).':'.&escape($customshow), |
&escape($custom).':'.&escape($customshow), |
$server); |
$server); |
$rhash{$server}=$reply; |
$rhash{$server}=$reply; |
return $reply; |
|
} |
} |
} |
} |
return \%rhash; |
return \%rhash; |