Pixel schupser
PHP:
<?php
$your_email = 'tech1@profi-glue.com'; // Your email address
$subject = 'Email from your support form'; // Email subject
$name = isset($_POST['name']) && $_POST['name'] ? $_POST['name'] : ''; // Visitor Name
$email = isset($_POST['email']) && $_POST['email'] ? $_POST['email'] : ''; // Visitor Email
$message = isset($_POST['message']) && $_POST['message'] ? $_POST['message'] : ''; // Visitor Message
$website = isset($_POST['website']) && $_POST['website'] ? $_POST['website'] : ''; // Visitor Message
$full_message = 'Website: '.$website. "\r\n\r\n Message:".$message;
if($name && $email && $message)
{
$headers = 'From: '.$name.' <'.$email.'>' . "\r\n" .
'Reply-To: '.$email.'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n";
//------------------------------------------------
// Send out email to site admin
//------------------------------------------------
if(@mail($your_email, $subject, $full_message, $headers))
die("success");
else
die("error");
}
else
{
die("error");
}
?>"
Habe foldendes scribt, js und php benutzt um ein Contact Formular zu erstellen, nun bekomme ich von meinem Provider folgende E-Mail
"Dear Customer,
As provider of Shared Hosting services, we monitor the usage of all our customers to ensure that our Quality of Service is not adversely affected. Our goal is to ensure that one customer should not affect all the other customers on the same server.
As part of our routine monitoring, we have observed that some of the files hosted on this server belonging to domain name profi-glue.com hosted under your account, has some malicious files hosted.
In order to prevent blacklisting of our service with various service providers, we have blocked outbound port 80 for this domain name as a precautionary measure. Here are the details of the files that were detected to be malicious.
/home/profi7ik/public_html/test/contact.html
We strongly suggest you to scan all the above listed files for any vulnerabilities. If the files are part of some plugins of your CMS, then we suggest you to update the plugin to the latest version or contact the plugin developer directly.
Please refer our AUP for further information. If you have any queries, please feel free to contact our Support team"
HTML:
"
HTML:
<!-- START CONTACT FORM -->
<form action="#" class="contact_form">
<p>
<label for="name">Name <span>*</span></label>
<input class="inputText" type="text" id="name" name="name" />
</p>
<div class="clear"></div>
<p>
<label for="email">E-mail <span>*</span></label>
<input class="inputText" type="text" id="email" name="email" />
</p>
<div class="clear"></div>
<p>
<label for="website">Image link</label>
<input class="inputText" type="text" id="website" name="website" />
</p>
<div class="clear"></div>
<p>
<label for="message">Message <span>*</span></label>
<textarea class="inputTextarea" cols="88" rows="6" id="message" name="message"></textarea>
</p>
<div class="clear"></div>
<p class="submit">
<a href="javascript:void(0);" class="button white" onclick="$('.contact_form').submit();">Send</a>
</p>
</form>
js-Script:
"
Javascript:
$(document).ready(function () {
$('#name').focus(function () {
$(this).removeClass('error_class');
});
$('#email').focus(function () {
$(this).removeClass('error_class');
});
$('#message').focus(function () {
$(this).removeClass('error_class');
});
$('.contact_form').submit(function () {
hasError = false;
if ($('#name').val() == '') {
$('#name').addClass('error_class');
hasError = true;
}
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
var emailaddressVal = $('#email').val();
if (emailaddressVal == '') {
$('#email').addClass('error_class');
hasError = true;
}
else if (!emailReg.test(emailaddressVal)) {
$('#email').addClass('error_class');
hasError = true;
}
if ($('#email').val() == '') {
$('#email').addClass('error_class');
hasError = true;
}
if ($('#message').val() == '') {
$('#message').addClass('error_class');
hasError = true;
}
if (hasError == true) {
$('.info_box').hide();
$('.error_box').show();
}
else {
$.ajax({
type: 'POST',
url: 'support.php',
cache: false,
data: $(".contact_form").serialize(),
success: function (data) {
if (data == "error") {
$('.success_box').hide();
$('.error_box').show();
}
else {
$('#name').val('');
$('#email').val('');
$('#message').val('');
$('#website').val('');
$('.error_box').hide();
$('.success_box').show();
}
}
});
}
return false;
});
});
PHP
"
PHP:
<?php
$your_email = 'tech1@profi-glue.com'; // Your email address
$subject = 'Email from your support form'; // Email subject
$name = isset($_POST['name']) && $_POST['name'] ? $_POST['name'] : ''; // Visitor Name
$email = isset($_POST['email']) && $_POST['email'] ? $_POST['email'] : ''; // Visitor Email
$message = isset($_POST['message']) && $_POST['message'] ? $_POST['message'] : ''; // Visitor Message
$website = isset($_POST['website']) && $_POST['website'] ? $_POST['website'] : ''; // Visitor Message
$full_message = 'Website: '.$website. "\r\n\r\n Message:".$message;
if($name && $email && $message)
{
$headers = 'From: '.$name.' <'.$email.'>' . "\r\n" .
'Reply-To: '.$email.'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n";
//------------------------------------------------
// Send out email to site admin
//------------------------------------------------
if(@mail($your_email, $subject, $full_message, $headers))
die("success");
else
die("error");
}
else
{
die("error");
}
?>
Irgend eine Idee was ich Falsch mache??
Zuletzt bearbeitet von einem Moderator: