-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrefuse.php
More file actions
executable file
·66 lines (63 loc) · 2.89 KB
/
Copy pathrefuse.php
File metadata and controls
executable file
·66 lines (63 loc) · 2.89 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
include_once 'config/client.php';
include_once 'utils/functions.php';
include_once 'utils/auth.php';
// Force HTTPS only if force_https = true (cf config/client.php)
if ( $force_https ) { include 'utils/force-https.php'; }
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Règlement refusé | Centre de Pathologie des Hauts-de-France</title>
<meta name="description" content="Votre règlement a été refusé !">
<meta name="robots" content="noindex, nofollow, noodp">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="<?php echo $client_dir_ui_js ?>/static/favicon-anapath-amiens.png" />
</head>
<?php include 'assets/style.css.php'; ?>
<body>
<?php
// Vérification RSA de la requête - Securité !
$IS_AUTH_REQUEST = IsAuthRequest('all');
if ( $IS_AUTH_REQUEST === 1 ) { // Si le corps de la requête n'est pas modifié et provient bien de e-transactions
// Si toutes les variables necessaires existent
if ( isset($_GET[$client_pbx_ref]) && isset($_GET[$client_prv_email]) && isset($_GET[$client_prv_ddn]) ) {
?>
<div class="entete">
<a href="<?php echo $client_url_server ?>" title="Retour sur le site du Centre de Pathologie des Hauts-de-France"><img src="<?php echo $client_file_logo ?>" alt="Logo Laboratoire Anapathologie Amiens"></a>
<h1>Transaction refusée</h1>
</div>
<div class="info">
<?php
echo verifBeforePrintOut($client_prv_email);
echo verifBeforePrintOut($client_prv_ddn);
echo verifBeforePrintOut($client_pbx_ref);
echo verifBeforePrintOut($client_pbx_montant);
echo verifBeforePrintOut($client_pbx_type_paiement);
echo verifBeforePrintOut($client_pbx_cb);
echo verifBeforePrintOut($client_pbx_transaction);
echo verifBeforePrintOut($client_pbx_date);
echo verifBeforePrintOut($client_pbx_heure);
echo verifBeforePrintOut($client_pbx_autorisation);
echo verifBeforePrintOut($client_pbx_error, 'alert');
?>
<?php include 'template/button-form-vuejs.php'; ?>
<?php if ( isset($_GET[$client_pbx_montant]) ) { include 'template/button-form-bank.php'; } ?>
<?php include 'template/button-print.php'; ?>
</div>
<?php
} else { // Il manque des variables importantes et nécessaires
include 'template/query-missing.php';
customLog('Variables manquantes dans la query string.');
}
} else if ( $IS_AUTH_REQUEST === 0 ) { // requête non sécurisée.
include 'template/query-not-sign.php';
customLog('Query string non signée.');
} else { // Problème interne (dépendances, ouverture clé, etc ...)
include 'template/query-sign-intern-error.php';
customLog('Problème interne de décodage signature.');
}
?>
</body>
</html>