Server IP : 195.201.23.43 / Your IP : 18.118.207.114 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 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_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, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/usermin/ |
Upload File : |
#!/usr/bin/perl # feedback_form.cgi # Display a form so that the user can send in a webmin bug report BEGIN { push(@INC, "."); }; use WebminCore; &init_config(); if (&get_product_name() eq 'usermin') { &switch_to_remote_user(); } &ReadParse(); &error_setup($text{'feedback_err'}); %access = &get_module_acl(); $access{'feedback'} || &error($text{'feedback_ecannot'}); &ui_print_header(undef, $text{'feedback_title'}, "", undef, 0, 1); %minfo = &get_module_info($in{'module'}) if ($in{'module'}); $fb = $gconfig{'feedback_to'} || $minfo{'feedback'} || $webmin_feedback_address; print &text('feedback_desc', "<tt>$fb</tt>"),"<p>\n"; print "<b>$text{'feedback_desc2'}</b><p>\n" if (!$gconfig{'feedback_to'}); print "<form action=feedback.cgi method=post enctype=multipart/form-data>\n"; print "<table border width=100%>\n"; print "<tr $tb> <td><b>$text{'feedback_header'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; print "<tr> <td><b>$text{'feedback_name'}</b></td>\n"; print "<td><input name=name size=25 value='$gconfig{'feedback_name'}'></td>\n"; print "<td><b>$text{'feedback_email'}</b></td>\n"; print "<td><input name=email size=25 value='$gconfig{'feedback_email'}'></td> </tr>\n"; print "<tr> <td><b>$text{'feedback_module'}</b></td>\n"; print "<td><select name=module>\n"; printf "<option value='' %s>%s</option>\n", $in{'module'} ? "" : "selected", $text{'feedback_all'}; @modules = ( ); foreach $minfo (&get_all_module_infos()) { if (&check_os_support($minfo) && ($minfo->{'longdesc'} || $minfo->{'feedback'})) { push(@modules, $minfo); } } foreach $m (sort { $a->{'desc'} cmp $b->{'desc'} } @modules) { printf "<option %s value=%s>%s</option>\n", $in{'module'} eq $m->{'dir'} ? "selected" : "", $m->{'dir'}, $m->{'desc'}; } print "</select></td>\n"; print "<td><b>$text{'feedback_mailserver'}</b></td>\n"; printf "<td><input type=radio name=mailserver_def value=1 %s> %s\n", $gconfig{'feedback_mailserver'} ? "" : "checked", $text{'feedback_mailserver_def'}; printf "<input type=radio name=mailserver_def value=0 %s>\n", $gconfig{'feedback_mailserver'} ? "checked" : ""; printf "<input name=mailserver size=15 value='%s'></td> </tr>\n", $gconfig{'feedback_mailserver'}; if (!$gconfig{'nofeedbackcc'}) { print "<tr> <td valign=top><b>$text{'feedback_to'}</b></td>\n"; print "<td colspan=3><textarea name=to rows=4 cols=50>", $fb,"</textarea></td> </tr>\n"; } print "<tr> <td valign=top><b>$text{'feedback_text'}</b></td>\n"; print "<td colspan=3><textarea name=text rows=6 cols=70 wrap=on>", "</textarea></td> </tr>\n"; print "<tr> <td colspan=2 nowrap><b>$text{'feedback_os'}</b> \n"; printf "<input type=radio name=os value=1> $text{'yes'}\n"; printf "<input type=radio name=os value=0 checked> $text{'no'}</td>\n"; print "<td colspan=2>($text{'feedback_osdesc'})</td> </tr>\n"; if (!$gconfig{'nofeedbackconfig'}) { print "<tr> <td colspan=2 nowrap><b>$text{'feedback_config'}</b> \n"; printf "<input type=radio name=config value=1> $text{'yes'}\n"; printf "<input type=radio name=config value=0 checked> $text{'no'}</td>\n"; print "<td colspan=2>($text{'feedback_configdesc'})</td> </tr>\n"; } print "<tr> <td><b>$text{'feedback_attach'}</b></td>\n"; print "<td><input type=file name=attach0></td>", "<td colspan=2><input type=file name=attach1></td> </tr>\n"; print "</table></td></tr></table>\n"; print "<input type=submit value='$text{'feedback_send'}'></form>\n"; &ui_print_footer("/", $text{'index'});Private