📄 index.cgi
字号:
#!/usr/local/bin/perl# index.cgi# Display a list of directories and their client(s)require './exports-lib.pl';&header($text{'index_title'}, "", "intro", 1, 1);print "<hr>\n";@exps = &list_exports();if (@exps) { @dirs = &unique(map { $_->{'dir'} } @exps); print "<table border width=100%>\n"; print "<tr $tb> <td><b>$text{'index_dir'}</b></td> ", "<td><b>$text{'index_to'}</b></td> </tr>\n"; foreach $d (@dirs) { print "<tr $cb> <td valign=top>$d</td> <td>\n"; @cl = grep { $_->{'dir'} eq $d } @exps; $ccount = 0; foreach $c (@cl) { print " | " if ($ccount++); print "<a href=\"edit_export.cgi?idx=$c->{'index'}\">", &describe_host($c->{'host'}),"</a>\n"; } print "</td> </tr>\n"; } print "</table>\n"; }else { print "<b>$text{'index_none'}</b> <p>\n"; }print "<a href=\"edit_export.cgi?new=1\">$text{'index_add'}</a> <p>\n";print "<hr>\n";print "<table width=100%> <tr>\n";print "<td><form action=restart_mountd.cgi>\n";print "<input type=submit value=\"$text{'index_apply'}\">\n";print "</form></td>\n";print "<td valign=top>$text{'index_applymsg'}</td>\n";print "</tr> <tr> </table>\n";print "<hr>\n";&footer("/", $text{'index'});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -