#!/usr/bin/perl # Show the left-side menu of Virtualmin domains, plus modules do './web-lib.pl'; do './ui-lib.pl'; &init_config(); &ReadParse(); %text = &load_language($current_theme); # Work out what categories we have @modules = &get_visible_module_infos(); %cats = &list_categories(\@modules); if (defined($cats{''})) { $cats{'others'} = $cats{''}; delete($cats{''}); } @cats = sort { ($b eq "others" ? "" : $b) cmp ($a eq "others" ? "" : $a) } keys %cats; $charset = defined($force_charset) ? $force_charset : &get_charset(); &PrintHeader($charset); print <