#!/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 < function upload(dir) { open("upform.cgi?dir="+escape(dir)+"&trust=$trust", "upload", "toolbar=no,menubar=no,scrollbar=no,width=450,height=200"); } function htmledit(file, dir) { open("edit_html.cgi?file="+escape(file)+"&dir="+escape(dir)+"&trust=$trust", "html", "toolbar=no,menubar=no,scrollbar=no,width=800,height=600"); } $config $session $open $return $disallowed $colours $text{'index_nojava'}

EOF &footer();