⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
qmailadmin
/
View File Name :
old_edit_ffile.cgi
#!/usr/bin/perl # edit_ffile.cgi # Allow editing of a filter config file require './qmail-lib.pl'; &ReadParse(); &ui_print_header(undef, $text{'ffile_title'}, ""); open(FILE, "<$in{'file'}"); while(<FILE>) { s/\r|\n//g; if (/^(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/) { push(@filter, [ $1, $2, $3, $4 ]); } elsif (/^(2)\s+(\S+)$/) { $other = $2; } } close(FILE); print "<b>",&text('ffile_desc', "<tt>$in{'file'}</tt>"),"</b><p>\n"; print "<form action=save_ffile.cgi method=post enctype=multipart/form-data>\n"; print "<input type=hidden name=file value=\"$in{'file'}\">\n"; print "<input type=hidden name=name value=\"$in{'name'}\">\n"; $i = 0; foreach $f (@filter, [ 1, '', '', '' ]) { $field = "<select name=field_$i>\n"; foreach $ft ('', 'from', 'to', 'subject', 'cc', 'body') { $field .= sprintf "<option value='%s' %s>%s</option>\n", $ft, $f->[2] eq $ft ? "selected" : "", $ft ? $text{"ffile_$ft"} : " "; } $field .= "</select>\n"; $what = "<select name=what_$i>\n"; $what .= sprintf "<option value=0 %s>%s</option>\n", $f->[0] == 0 ? "selected" : "", $text{"ffile_what0"}; $what .= sprintf "<option value=1 %s>%s</option>\n", $f->[0] == 1 ? "selected" : "", $text{"ffile_what1"}; $what .= "</select>\n"; $match = "<input name=match_$i size=20 value='$f->[3]'>\n"; $action = "<input name=action_$i size=30 value='$f->[1]'>\n"; print &text('ffile_line', $field, $what, $match, $action),"<br>\n"; $i++; } print &text('ffile_other', "<input name=other size=30 value='$other'>"),"<br>\n"; print "<input type=submit value=\"$text{'save'}\">\n"; print "</form>\n"; &ui_print_footer("edit_alias.cgi?name=$in{'name'}", $text{'aform_return'});