3 # Redirect to default index
5 require './proc-lib.pl';
6 if ($config{'default_mode'} ne "last") {
7 $idx = "index_$config{'default_mode'}.cgi";
9 elsif (open(INDEX, $index_file)) {
13 $idx = "index_tree.cgi";
17 $idx = "index_tree.cgi";
19 ($idxfn = $idx) =~ s/\?.*$//;
20 if (!-r "$module_root_directory/$idxfn") {
22 $idx = "index_tree.cgi";
24 &redirect("/$module_name/$idx");