Fixing more broken links.

This commit is contained in:
Matthew Thiffault 2009-03-11 01:13:55 -04:00
parent e325bb8059
commit dd1f2a234f
2 changed files with 12 additions and 8 deletions

View File

@ -8,8 +8,9 @@
<diritem title="Office" href="office/" />
<diritem title="Events" href="events/" />
<diritem title="Media" href="media/" />
<diritem title="Wiki" href="http://wiki.csclub.uwaterloo.ca/" />
<diritem title="Webmail" href="https://mail.csclub.uwaterloo.ca/" />
<diritem title="Gallery" href="/gallery2/" />
<diritem title="Stats" href="stats" />
<diritem title="Wiki" absolute="true" href="http://wiki.csclub.uwaterloo.ca/" />
<diritem title="Webmail" absolute="true" href="https://mail.csclub.uwaterloo.ca/" />
<diritem title="Gallery" absolute="true" href="/gallery2/" />
<diritem title="Stats" absolute="true" href="stats" />
<diritem title="Library" href="library/" />
</directory>

View File

@ -67,9 +67,12 @@ foreach $item (@items){
chomp($fields{'href'});
$fields{'title'} =~ s/"//g;
print "<a class=\"diritem\" href=\"$fields{'href'}\">$fields{'title'}</a>\n";
if($fields{'absolute'} =~ /true/){
print "<a class=\"diritem\" href=\"$fields{'href'}\">$fields{'title'}</a>\n";
}else{
print "<a class=\"diritem\" href=\"$webroot/$fields{'href'}\">$fields{'title'}</a>\n";
}
}
}
@ -79,7 +82,7 @@ print "<br><br><br>\n";
if($field{'do'} eq "home" || $field{'do'} eq ""){
#isbn,title,authors,year,edition,publisher
print <<END;
<center>
<br>