-
Notifications
You must be signed in to change notification settings - Fork 1
/
review.php
40 lines (30 loc) · 1.12 KB
/
review.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
<?php
header('Content-type: text/html; charset=ISO-8859-1');
// Allow access from anywhere. Can be domains or * (any)
header('Access-Control-Allow-Origin: *');
// Allow these methods of data retrieval
header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
// Allow these header types
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
include "fhost.php";
$mailid = isset($_GET["mailid"]) ? $_GET["mailid"] : null;
$tracking = isset($_GET["tracking"]) ? $_GET["tracking"] : null;
$object = isset($_GET["object"]) ? $_GET["object"] : null;
$host = new stdClass;
if(!is_null($object)){
$host = unserialize(base64_decode($object));
echo processaRelatorioHost($mailid,$host);
}else if (is_null($mailid)) {
echo ("<h1>Informe um codigo de email enviado</h1>");
exit();
}
else {
$resultado = RecuperaHistoricoGrafico($mailid);
$host = unserialize(base64_decode($resultado));
if (is_null($host->nome)) {
echo ("<h1>Não encontramos o registro do e-mail ($mailid) para o host ($codhost) </br>:(");
exit();
}
echo processaRelatorioHost($mailid,$host);
}
?>