--- capa/capa51/Discuss/Ver1.3/Attic/capadiscuss 2000/01/05 21:11:15 1.6
+++ capa/capa51/Discuss/Ver1.3/Attic/capadiscuss 2000/01/31 18:34:12 1.7
@@ -172,6 +172,7 @@ if($debug) {$BenchmarkTb = new Benchmark
}
sub ViewSet {
+ local($hidden);
if ($debug) {print "InsideViewSet
";$BenchmarkTa = new Benchmark;}
&Log("ViewSet");
&CheckAdmin;
@@ -215,6 +216,7 @@ if($debug) {$BenchmarkTb = new Benchmark
$col = 1;
for($probnum=1; $probnum<=$maxprobs; $probnum++) {
+ $hidden=0;
if($col eq "1" && $probnum > $col1size && $bigtable eq "yes") {
$col = 2;
&ViewSetEndColHTML;
@@ -226,13 +228,19 @@ if($debug) {$BenchmarkTb = new Benchmark
closedir(MSG);
foreach $msg(@msgs) {
if(&RemZero(substr($msg,0,6)) eq $probnum) {
- push(@good,$msg);
+ &OpenMsg("$capadir/$class/discussion/$setid/$msg");
+ if(!($status eq "hidden" && $validadmin ne "yes")) {
+ push(@good,$msg);
+ } else { $hidden++; }
}
}
-
- &OpenMsg("$capadir/$class/discussion/$setid/$good[$#good]");
- $lastpost = "$date at $time";
- $posts = $found[$probnum];
+ $posts = $found[$probnum]-$hidden;
+ if ($posts >0) {
+ &OpenMsg("$capadir/$class/discussion/$setid/$good[$#good]");
+ $lastpost = "$date at $time";
+ } else {
+ $lastpost = "--";
+ }
}
else {
$lastpost = "--";
@@ -585,7 +593,7 @@ sub WriteMsg {
# add sr to grab e-mail address of user
- #