#!/usr/local/bin/perl # index.cgi # Display a table of all filesystems that can be mounted/unmounted by # a user, due to having the user flag set require './usermount-lib.pl'; &ui_print_header(undef, $text{'index_title'}, "", undef, 0, 1); @mounts = &list_mounts(); foreach $m (@mounts) { local %options; &parse_options($m->[2], $m->[3]); if (defined($options{'user'})) { push(@usermounts, $m); } } foreach $m (&list_mounted()) { $mounted{$m->[0],$m->[1]}++; } if (@usermounts) { print "
\n"; } else { print "$text{'index_none'}\n"; } &ui_print_footer("/", $text{'index'});