%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/shorewall6/ |
Upload File : |
#!/usr/bin/perl # index.cgi # Display icons for the various shorewall6 configuration files require './shorewall6-lib.pl'; if (!&has_command($config{'shorewall6'})) { &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1); print "<p>",&text('index_ecmd', "<tt>$config{'shorewall6'}</tt>", "@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n"; } else { # Get the version $shorewall6_version = &get_shorewall6_version(1); &open_tempfile(VERSION, ">$module_config_directory/version"); &print_tempfile(VERSION, $shorewall6_version,"\n"); &close_tempfile(VERSION); &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0, &help_search_link("shorewall6", "doc", "google"), undef, undef, &text('index_version', &get_printable_version($shorewall6_version))); if (!-d $config{'config_dir'}) { # Config dir not found! print "<p>",&text('index_edir', "<tt>$config{'config_dir'}</tt>", "@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n"; } else { # Just show the file icons @files = grep { &can_access($_) } @shorewall6_files; @titles = map { $text{&clean_name($_)."_title"}."<br>($_)" } @files; @links = map { "list.cgi?table=".$_ } @files; @icons = map { "images/".$_.".gif" } @files; &icons_table(\@links, \@titles, \@icons, 4); # Check if shorewall6 is running by looking for the 'shorewall6' # chain in the filter table print &ui_hr(); print "<table width=100%>\n"; system("$config{'shorewall6'} status 2>&1"); if ($?) { # Down .. offer to start # unless no permissions unless ($access{'nochange'}) { print "<form action=start.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_start'}'></td>\n"; print "<td>$text{'index_startdesc'}</td> </tr>\n"; print "</form>\n"; } } else { # Up .. offer to restart, clear and stop # unless nochange is set unless ($access{'nochange'}) { print "<form action=restart.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_restart'}'></td>\n"; print "<td>$text{'index_restartdesc'}</td> </tr>\n"; print "</form>\n"; print "<form action=refresh.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_refresh'}'></td>\n"; print "<td>$text{'index_refreshdesc'}</td> </tr>\n"; print "</form>\n"; print "<form action=clear.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_clear'}'></td>\n"; print "<td>$text{'index_cleardesc'}</td> </tr>\n"; print "</form>\n"; print "<form action=stop.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_stop'}'></td>\n"; print "<td>$text{'index_stopdesc'}</td> </tr>\n"; print "</form>\n"; } print "<form action=status.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_status'}'></td>\n"; print "<td>$text{'index_statusdesc'}</td> </tr>\n"; print "</form>\n"; } # Always offer to check print "<form action=check.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_check'}'></td>\n"; print "<td>$text{'index_checkdesc'}</td> </tr>\n"; print "</form>\n"; print "<form action=dump.cgi>\n"; print "<tr> <td><input type=submit ", "value='$text{'index_dump'}'></td>\n"; print "<td>$text{'index_dumpdesc'}</td> </tr>\n"; print "</form>\n"; print "</table>\n"; } } &ui_print_footer("/", $text{'index'});