version 1.629, 2005/04/25 17:18:15
|
version 1.632, 2005/05/03 19:22:22
|
Line 2614 sub put {
|
Line 2614 sub put {
|
return &reply("put:$udomain:$uname:$namespace:$items",$uhome); |
return &reply("put:$udomain:$uname:$namespace:$items",$uhome); |
} |
} |
|
|
# ---------------------------------------------------------- putstore interface |
# ------------------------------------------------------------ newput interface |
|
|
|
sub newput { |
|
my ($namespace,$storehash,$udomain,$uname)=@_; |
|
if (!$udomain) { $udomain=$env{'user.domain'}; } |
|
if (!$uname) { $uname=$env{'user.name'}; } |
|
my $uhome=&homeserver($uname,$udomain); |
|
my $items=''; |
|
foreach my $key (keys(%$storehash)) { |
|
$items.=&escape($key).'='.&freeze_escape($$storehash{$key}).'&'; |
|
} |
|
$items=~s/\&$//; |
|
return &reply("newput:$udomain:$uname:$namespace:$items",$uhome); |
|
} |
|
|
|
# --------------------------------------------------------- putstore interface |
|
|
sub putstore { |
sub putstore { |
my ($namespace,$storehash,$udomain,$uname)=@_; |
my ($namespace,$storehash,$udomain,$uname)=@_; |
if (!$udomain) { $udomain=$env{'user.domain'}; } |
if (!$udomain) { $udomain=$env{'user.domain'}; } |
Line 3898 sub unmark_as_readonly {
|
Line 3913 sub unmark_as_readonly {
|
my @del_keys; |
my @del_keys; |
if (ref($current_locks) eq "ARRAY"){ |
if (ref($current_locks) eq "ARRAY"){ |
foreach my $locker (@{$current_locks}) { |
foreach my $locker (@{$current_locks}) { |
&logthis("$$locker[0].$$locker[1] eq $symb_crs"); |
my $compare=$locker; |
if ($$locker[0].$$locker[1] eq $symb_crs) { |
if (ref($locker)) { $compare=join('',@{$locker}) }; |
|
if ($compare eq $symb_crs) { |
if (defined($file_name) && ($file_name ne $file)) { |
if (defined($file_name) && ($file_name ne $file)) { |
push(@new_locks, $what); |
push(@new_locks, $what); |
} |
} |
Line 5332 sub receipt {
|
Line 5348 sub receipt {
|
|
|
sub getfile { |
sub getfile { |
my ($file) = @_; |
my ($file) = @_; |
&Apache::lonnet::logthis("file name is $file"); |
|
if ($file =~ m -^/*(uploaded|editupload)/-) { $file=&filelocation("",$file); } |
if ($file =~ m -^/*(uploaded|editupload)/-) { $file=&filelocation("",$file); } |
&repcopy($file); |
&repcopy($file); |
return &readfile($file); |
return &readfile($file); |
Line 6180 revokecustomrole($udom,$uname,$url,$role
|
Line 6195 revokecustomrole($udom,$uname,$url,$role
|
|
|
=item * |
=item * |
|
|
coursedescription($courseid) : course description |
coursedescription($courseid) : returns a hash of information about the |
|
specified course id, including all environment settings for the |
|
course, the description of the course will be in the hash under the |
|
key 'description' |
|
|
=item * |
=item * |
|
|