version 1.97, 2005/05/09 01:51:44
|
version 1.98, 2005/07/08 10:39:49
|
Line 578 sub report_bombs {
|
Line 578 sub report_bombs {
|
$r->print('<h1>'.&Apache::lonnet::clutter($uri).'</h1>'); |
$r->print('<h1>'.&Apache::lonnet::clutter($uri).'</h1>'); |
my ($domain,$author)=($uri=~/^(\w+)\/(\w+)\//); |
my ($domain,$author)=($uri=~/^(\w+)\/(\w+)\//); |
if (&Apache::loncacc::constructaccess('/~'.$author.'/',$domain)) { |
if (&Apache::loncacc::constructaccess('/~'.$author.'/',$domain)) { |
|
if ($env{'form.clearbombs'}) { |
|
&Apache::lonmsg::clear_author_res_msg($uri); |
|
} |
|
my $clear=&mt('Clear all Messages in Subdirectory'); |
|
$r->print(<<ENDCLEAR); |
|
<form method="post"> |
|
<input type="submit" name="clearbombs" value="$clear" /> |
|
</form> |
|
ENDCLEAR |
my %brokenurls = |
my %brokenurls = |
&Apache::lonmsg::all_url_author_res_msg($author,$domain); |
&Apache::lonmsg::all_url_author_res_msg($author,$domain); |
foreach (sort(keys(%brokenurls))) { |
foreach (sort(keys(%brokenurls))) { |
Line 901 sub present_editable_metadata {
|
Line 910 sub present_editable_metadata {
|
$bombs=&mt('Error deleting messages'); |
$bombs=&mt('Error deleting messages'); |
} |
} |
} |
} |
my $del=&mt('Delete Messages'); |
if ($env{'form.clearmsg'}) { |
|
my $cleardir=$target; |
|
$cleardir=~s/\/[^\/]+$/\//; |
|
if (&Apache::lonmsg::clear_author_res_msg($cleardir) eq 'ok') { |
|
$bombs=&mt('Messages cleared.'); |
|
} else { |
|
$bombs=&mt('Error clearing messages'); |
|
} |
|
} |
|
my $del=&mt('Delete Messages for this Resource'); |
|
my $clear=&mt('Clear all Messages in Subdirectory'); |
$r->print(<<ENDBOMBS); |
$r->print(<<ENDBOMBS); |
<h1>$disuri</h1> |
<h1>$disuri</h1> |
<form method="post" name="defaultmeta"> |
<form method="post" name="defaultmeta"> |
<input type="submit" name="delmsg" value="$del" /> |
<input type="submit" name="delmsg" value="$del" /> |
|
<input type="submit" name="clearmsg" value="$clear" /> |
<br />$bombs |
<br />$bombs |
ENDBOMBS |
ENDBOMBS |
} else { |
} else { |
Line 1025 ENDEDIT
|
Line 1045 ENDEDIT
|
1; |
1; |
__END__ |
__END__ |
|
|
|
|
|
|
|
|