version 1.420, 2007/07/04 20:28:44
|
version 1.421, 2007/07/06 23:17:28
|
Line 6133 sub gather_clicker_ids {
|
Line 6133 sub gather_clicker_ids {
|
(&Apache::lonnet::userenvironment($domain,$username,'clickers'))[1]; |
(&Apache::lonnet::userenvironment($domain,$username,'clickers'))[1]; |
foreach my $id (split(/\,/,$clickers)) { |
foreach my $id (split(/\,/,$clickers)) { |
$id=~s/^[\#0]+//; |
$id=~s/^[\#0]+//; |
|
$id=~s/[\-\:]//g; |
if (exists($clicker_ids{$id})) { |
if (exists($clicker_ids{$id})) { |
$clicker_ids{$id}.=','.$username.':'.$domain; |
$clicker_ids{$id}.=','.$username.':'.$domain; |
} else { |
} else { |
Line 6155 sub gather_adv_clicker_ids {
|
Line 6156 sub gather_adv_clicker_ids {
|
(&Apache::lonnet::userenvironment($pudom,$puname,'clickers'))[1]; |
(&Apache::lonnet::userenvironment($pudom,$puname,'clickers'))[1]; |
foreach my $id (split(/\,/,$clickers)) { |
foreach my $id (split(/\,/,$clickers)) { |
$id=~s/^[\#0]+//; |
$id=~s/^[\#0]+//; |
|
$id=~s/[\-\:]//g; |
if (exists($clicker_ids{$id})) { |
if (exists($clicker_ids{$id})) { |
$clicker_ids{$id}.=','.$puname.':'.$pudom; |
$clicker_ids{$id}.=','.$puname.':'.$pudom; |
} else { |
} else { |
Line 6301 sub process_clicker_file {
|
Line 6303 sub process_clicker_file {
|
$correct_id=~tr/a-z/A-Z/; |
$correct_id=~tr/a-z/A-Z/; |
$correct_id=~s/\s//gs; |
$correct_id=~s/\s//gs; |
$correct_id=~s/^[\#0]+//; |
$correct_id=~s/^[\#0]+//; |
|
$correct_id=~s/[\-\:]//g; |
if ($correct_id) { |
if ($correct_id) { |
$correct_ids{$correct_id}='specified'; |
$correct_ids{$correct_id}='specified'; |
} |
} |
Line 6462 sub interwrite_eval {
|
Line 6465 sub interwrite_eval {
|
} |
} |
my $id=$entries[4]; |
my $id=$entries[4]; |
$id=~s/^[\#0]+//; |
$id=~s/^[\#0]+//; |
|
$id=~s/^v\d*\://i; |
|
$id=~s/[\-\:]//g; |
$idresponses{$id}[$number]=$entries[6]; |
$idresponses{$id}[$number]=$entries[6]; |
} |
} |
foreach my $id (keys %idresponses) { |
foreach my $id (keys %idresponses) { |