#!/usr/local/bin/perl # index.cgi # Output HTML for the file manager applet require './file-lib.pl'; &ReadParse(); $theme_no_table = 1; @modules = &get_available_module_infos(1); if (@modules == 1 && $gconfig{'gotoone'}) { &header($text{'index_title'}, "", undef, 0, 1); $w = 100; $h = 80; } else { &header($text{'index_title'}); $w = 100; $h = 100; if (!$tconfig{'inframe'}) { $return = ""; $returnhtml = &text('index_index', "$gconfig{'webprefix'}/")."
";
}
}
$root = join(" ", @allowed_roots);
$noroot = join(" ", @denied_roots);
if ($in{'open'}) {
$open = "\n";
}
if ($session_id) {
$session = "\n";
}
if (!$config{'noprefs'}) {
$config = "\n";
}
$iconsize = int($userconfig{'iconsize'});
foreach $d (@disallowed_buttons) {
$disallowed .= "\n";
}
# Create parameters for custom colours
foreach $k (keys %tconfig) {
if ($k =~ /^applet_(.*)/) {
$colours .= "\n";
}
}
$mounting = &foreign_check("usermount");
print <