HEX
Server: Apache/2.4.29 (Ubuntu)
System: Linux bareserver 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: root (0)
PHP: 7.2.24-0ubuntu0.18.04.17
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //usr/share/webmin/vgetty/index.cgi
#!/usr/bin/perl
# index.cgi
# Displays a table of option category icons

require './vgetty-lib.pl';
&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1, 0,
	&help_search_link("vgetty", "man", "doc"));

# Check if vgetty is actually installed
if (!&has_command($config{'vgetty_cmd'})) {
	print "<p>",&text('index_ecmd', "<tt>$config{'vgetty_cmd'}</tt>",
		  "@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n";
	&ui_print_footer("/", $text{'index'});
	exit;
	}

# Check if config file exists
if (!-r $config{'vgetty_config'}) {
	print "<p>",&text('index_econfig', "<tt>$config{'vgetty_config'}</tt>",
		  "@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n";
	&ui_print_footer("/", $text{'index'});
	exit;
	}

# Show icons for various option categories
@titles = ( $text{'vgetty_title'}, $text{'options_title'},
	    $text{'received_title'}, $text{'messages_title'} );
@links = ( "list_vgetty.cgi", "edit_options.cgi", "list_received.cgi",
	   "list_messages.cgi" );
@icons = ( "images/vgetty.gif", "images/options.gif", "images/received.gif",
	   "images/messages.gif" );
&icons_table(\@links, \@titles, \@icons);

print &ui_hr();
print "<form action=vgetty_apply.cgi>\n";
print "<table width=100%><tr>\n";
print "<td><input type=submit value='$text{'vgetty_apply'}'></td>\n";
print "<td>",&text('vgetty_applydesc', "<tt>telinit q</tt>"),"</td>\n";
print "</tr></table></form>\n";

&ui_print_footer("/", $text{'index'});