| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/usermin/forward/ |
Upload File : |
#!/usr/bin/perl
# save_vfile.cgi
# Save an vacation reply file
require './forward-lib.pl';
&ReadParseMime();
&error_setup($text{'vfile_err'});
$in{'from_def'} || $in{'from'} =~ /\S/ ||
&error($text{'rfile_efrom'});
$in{'subject_def'} || $in{'subject'} =~ /\S/ ||
&error($text{'vfile_esubject'});
$in{'text'} =~ s/\r//g;
&open_tempfile(FILE, ">$in{'vfile'}", 1) || &error(&text('rfile_ewrite', $!));
if (!$in{'from_def'}) {
&print_tempfile(FILE, "From: $in{'from'}\n");
$hl++;
}
if (!$in{'subject_def'}) {
&print_tempfile(FILE, "Subject: $in{'subject'}\n");
$hl++;
}
if ($hl && $in{'text'} !~ /^(\S+):\s+\S/) {
&print_tempfile(FILE, "\n");
}
&print_tempfile(FILE, $in{'text'});
&close_tempfile(FILE);
&redirect("edit_alias.cgi?num=$in{'num'}&file=$in{'file'}");