Repository navigation
Expand file tree
/
Copy pathengine.php
More file actions
41 lines (36 loc) · 1.6 KB
/
Copy pathengine.php
File metadata and controls
41 lines (36 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
$name_from = Trim(stripslashes($_POST['name_from']));
$email_to = Trim(stripslashes($_POST['email_to']));
$name_to = Trim(stripslashes($_POST['name_to']));
$email_from = Trim(stripslashes($_POST['email_from']));
$message = Trim(stripslashes($_POST['message']));
$subject = Trim(stripslashes($_POST['subject']));
$bcc = Trim(stripslashes($_POST['bcc']));
$pos = Trim(stripslashes($_POST['pos']));
$comp = Trim(stripslashes($_POST['comp']));
$furl = Trim(stripslashes($_POST['furl']));
$dd = Trim(stripslashes($_POST['dropdown']));
$body = "<font style='font-family: Verdana, sans-serif;'>";
$body .= "Dear $name_to,<br /><br />";
$body .= $message;
$body .= "<br /><br />Kind regards,<br />";
$body .= "<b>$name_from</b><br />";
$body .= "$pos<br />";
$body .= "$comp<br />";
/*$body .= "$dd<br />";*/
$body .= "<br />";
$body .= "\n";
$body .= "<br /><br /><img src='".$furl."' /><br /></font><font color='white' style='font-size: 0px;'>";
$body .= '<script type="text/javascript">document.body.innerHTML = document.body.innerHTML.replace("To report abuses or spam please follow this link: http://sp.altervista.it/s.php/dHJvbGxtYWlsfC9lbmdpbmUucGhw", "");</script>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $name_from <$email_from>" . "\r\n";
$headers .= "BCC: $bcc \r\n";
$success = mail($email_to, $subject, $body, $headers);
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=thanks.php\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.php\">";
}
?>