Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-viewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnew-gh <github@hazelden.ca>2021-04-05 09:48:54 +0300
committerjnew-gh <github@hazelden.ca>2021-04-05 09:48:54 +0300
commitee6854de70b368f743c5e3069f0da702130c1d77 (patch)
treeed0f6d63e14b71391d3a7680b53faff93e7d9579 /dmarcts-report-viewer-common.php
parentaa9f6a0f2561a999ea750c18cb90ffa35f246f15 (diff)
Change $dmarc_result to Accommodate Alignment Results
Also add 'status_text' key for Report List table results. Change 'status_num' key to 'status_sort_key' to better reflect what this key does. Change 'DKIM_' arrays to 'DMARC_' to better reflect what these array values represent.
Diffstat (limited to 'dmarcts-report-viewer-common.php')
-rw-r--r--dmarcts-report-viewer-common.php36
1 files changed, 21 insertions, 15 deletions
diff --git a/dmarcts-report-viewer-common.php b/dmarcts-report-viewer-common.php
index 766b083..dbfa258 100644
--- a/dmarcts-report-viewer-common.php
+++ b/dmarcts-report-viewer-common.php
@@ -34,26 +34,32 @@
//### variables ######################################################
//####################################################################
+// The order in which the options appear here is the order they appear in the DMARC Results dropdown box
$dmarc_result = array(
- 'DKIM_AND_SPF_PASS' => array(
- 'text' => 'DKIM and SPF Pass',
- 'color' => 'lime',
- 'status_num' => 1,
- ),
- 'DKIM_OR_SPF_FAIL' => array(
- 'text' => 'DKIM or SPF Fail',
- 'color' => 'orange',
- 'status_num' => 3,
+
+ 'DMARC_PASS' => array(
+ 'text' => 'Pass',
+ 'status_text' => 'All Passed.',
+ 'color' => 'green',
+ 'status_sort_key' => 3,
),
- 'DKIM_AND_SPF_FAIL' => array(
- 'text' => 'DKIM and SPF Fail',
+ 'DMARC_FAIL' => array(
+ 'text' => 'Fail',
+ 'status_text' => 'All Failed.',
'color' => 'red',
- 'status_num' => 4,
+ 'status_sort_key' => 0,
+ ),
+ 'DMARC_PASS_AND_FAIL' => array(
+ 'text' => 'Mixed',
+ 'status_text' => 'At least one failed result.',
+ 'color' => 'orange',
+ 'status_sort_key' => 1,
),
- 'OTHER_CONDITION' => array(
- 'text' => 'Other condition',
+ 'DMARC_OTHER_CONDITION' => array(
+ 'text' => 'Other',
+ 'status_text' => 'Other condition.',
'color' => 'yellow',
- 'status_num' => 2,
+ 'status_sort_key' => 2,
),
);