-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.php
50 lines (41 loc) · 1.33 KB
/
example.php
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
42
43
44
45
46
47
48
49
50
<!-- simple form example -->
<html>
<head>
<title>DMARC Compliance Check in PHP</title>
</head>
<body>
<form action="" method="Post" name="check">
<?php
/**
* Created by ToTheBeat.CEO
* @package zulu-trusted-sender
* subversion - DMARC-Check
* @version 0.02
* @author Dave Barnes (tothebeatCEO/zulu-trusted-sender) <[email protected]>
* DMARC Check for general SPOOF protection
* Used as part if the Zulu eDM Trusted Sender Program
* Returns True if implemented with > Quarantine + pct == 100pc
* Date: 18/05/2018
* URL being used for public help https://zuluedm.com/trusted-sender
*/
include __DIR__ . '/pathtofunction/Trusted-Sender-DMARC.php';
if (isset($_POST['emaildomain'])) {
// see if the form posted
echo '<input type="text" class="form-control" name="emaildomain" value="' . $_POST["emaildomain"] . '">';
if (setDMARCpof($_POST["emaildomain"]) === true) {
echo "<pre>";
echo "True, you have a safe domain";
echo "</pre>";
} else {
echo "<pre>";
echo "False, delete the email";
echo "</pre>";
} else {
echo '<input type="text" class="form-control" name="emaildomain" value="zululabs.com">';
}
}
?>
<input type="submit" value="Check" name="check" onclick="showLoader();">
</form>
</body>
</html>