version 1.1310, 2016/05/30 04:48:23
|
version 1.1311, 2016/06/19 00:19:24
|
Line 2332 sub get_domain_defaults {
|
Line 2332 sub get_domain_defaults {
|
return %domdefaults; |
return %domdefaults; |
} |
} |
|
|
|
sub course_portal_url { |
|
my ($cnum,$cdom) = @_; |
|
my $chome = &homeserver($cnum,$cdom); |
|
my $hostname = &hostname($chome); |
|
my $protocol = $protocol{$chome}; |
|
$protocol = 'http' if ($protocol ne 'https'); |
|
my %domdefaults = &get_domain_defaults($cdom); |
|
my $firsturl; |
|
if ($domdefaults{'portal_def'}) { |
|
$firsturl = $domdefaults{'portal_def'}; |
|
} else { |
|
$firsturl = $protocol.'://'.$hostname; |
|
} |
|
return $firsturl; |
|
} |
|
|
# --------------------------------------------------- Assign a key to a student |
# --------------------------------------------------- Assign a key to a student |
|
|
sub assign_access_key { |
sub assign_access_key { |
Line 10354 sub get_userresdata {
|
Line 10370 sub get_userresdata {
|
# Parameters: |
# Parameters: |
# $name - Course/user name. |
# $name - Course/user name. |
# $domain - Name of the domain the user/course is registered on. |
# $domain - Name of the domain the user/course is registered on. |
# $type - Type of thing $name is (must be 'course' or 'user' |
# $type - Type of thing $name is (must be 'course' or 'user') |
# $mapp - decluttered URL of enclosing map |
# $mapp - decluttered URL of enclosing map |
# $recursed - Ref to scalar -- set to 1, if nested maps have been recursed. |
# $recursed - Ref to scalar -- set to 1, if nested maps have been recursed. |
# $recurseup - Ref to array of map URLs, starting with map containing |
# $recurseup - Ref to array of map URLs, starting with map containing |