version 1.1172.2.146.2.25, 2024/09/25 17:33:08
|
version 1.1172.2.146.2.26, 2025/01/15 18:43:08
|
Line 221 sub get_server_distarch {
|
Line 221 sub get_server_distarch {
|
} |
} |
} |
} |
my $rep = &reply('serverdistarch',$lonhost); |
my $rep = &reply('serverdistarch',$lonhost); |
unless ($rep eq 'unknown_command' || $rep eq 'no_such_host' || |
unless ($rep eq 'unknown_cmd' || $rep eq 'no_such_host' || |
$rep eq 'con_lost' || $rep eq 'rejected' || $rep eq 'refused' || |
$rep eq 'con_lost' || $rep eq 'rejected' || $rep eq 'refused' || |
$rep eq '') { |
$rep eq '') { |
return &do_cache_new('serverdistarch',$lonhost,$rep,$cachetime); |
return &do_cache_new('serverdistarch',$lonhost,$rep,$cachetime); |
Line 5848 sub courselastaccess {
|
Line 5848 sub courselastaccess {
|
sub extract_lastaccess { |
sub extract_lastaccess { |
my ($returnhash,$rep) = @_; |
my ($returnhash,$rep) = @_; |
if (ref($returnhash) eq 'HASH') { |
if (ref($returnhash) eq 'HASH') { |
unless ($rep eq 'unknown_command' || $rep eq 'no_such_host' || |
unless ($rep eq 'unknown_cmd' || $rep eq 'no_such_host' || |
$rep eq 'con_lost' || $rep eq 'rejected' || $rep eq 'refused' || |
$rep eq 'con_lost' || $rep eq 'rejected' || $rep eq 'refused' || |
$rep eq '') { |
$rep eq '') { |
my @pairs=split(/\&/,$rep); |
my @pairs=split(/\&/,$rep); |
Line 10121 sub auto_instsec_reformat {
|
Line 10121 sub auto_instsec_reformat {
|
my $info = &freeze_escape($instsecref); |
my $info = &freeze_escape($instsecref); |
my $response=&reply('autoinstsecreformat:'.$cdom.':'. |
my $response=&reply('autoinstsecreformat:'.$cdom.':'. |
$action.':'.$info,$server); |
$action.':'.$info,$server); |
next if ($response =~ /(con_lost|error|no_such_host|refused|unknown_command)/); |
next if ($response =~ /(con_lost|error|no_such_host|refused|unknown_cmd)/); |
my @items = split(/&/,$response); |
my @items = split(/&/,$response); |
foreach my $item (@items) { |
foreach my $item (@items) { |
my ($key,$value) = split(/=/,$item); |
my ($key,$value) = split(/=/,$item); |
Line 10202 sub auto_export_grades {
|
Line 10202 sub auto_export_grades {
|
my $grades = &freeze_escape($gradesref); |
my $grades = &freeze_escape($gradesref); |
my $response=&reply('encrypt:autoexportgrades:'.$cdom.':'.$cnum.':'. |
my $response=&reply('encrypt:autoexportgrades:'.$cdom.':'.$cnum.':'. |
$info.':'.$grades,$homeserver); |
$info.':'.$grades,$homeserver); |
unless ($response =~ /(con_lost|error|no_such_host|refused|unknown_command)/) { |
unless ($response =~ /(con_lost|error|no_such_host|refused|unknown_cmd)/) { |
my @items = split(/&/,$response); |
my @items = split(/&/,$response); |
foreach my $item (@items) { |
foreach my $item (@items) { |
my ($key,$value) = split('=',$item); |
my ($key,$value) = split('=',$item); |