HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
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,pcntl_unshare,
Upload Files
File: //usr/share/usermin/chfn/index.cgi
#!/usr/bin/perl
# index.cgi
# Display a form for changing user details

require './chfn-lib.pl';
&switch_to_remote_user();
&ui_print_header(undef, $text{'index_title'}, "", undef, 0, 1);

if ($config{'change_shell'}) {
	print "$text{'index_desc'}<p>\n";
	}
else {
	print "$text{'index_desc2'}<p>\n";
	}

print &ui_form_start("save.cgi", "post");
print &ui_table_start($text{'index_header'}, undef, 2, [ "width=30%" ]);

@uinfo = split(/,/, $remote_user_info[6]);
if ($config{'change_real'}) {
	print &ui_table_row($text{'index_real'},
		&ui_textbox("real", $uinfo[0], 40));
	}

if ($config{'change_office'}) {
	print &ui_table_row($text{'index_office'},
		&ui_textbox("office", $uinfo[1], 40));
	}

if ($config{'change_ophone'}) {
	print &ui_table_row($text{'index_ophone'},
		&ui_textbox("ophone", $uinfo[2], 40));
	}

if ($config{'change_hphone'}) {
	print &ui_table_row($text{'index_hphone'},
		&ui_textbox("hphone", $uinfo[3], 40));
	}

if ($config{'change_shell'}) {
	open(SHELL, $config{'shells'} || "/etc/shells");
	while($s = <SHELL>) {
		$s =~ s/\r|\n//g;
		$s =~ s/#.*$//;
		next if ($s !~ /\S/);
		push(@opts, $s);
		}
	close(SHELL);
	print &ui_table_row($text{'index_shell'},
		&ui_select("shell", $remote_user_info[8], \@opts, 1, 0, 1));
	}

print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);

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