PHP 忒聊
綴豖
ヶ輛
cybermut_testmac
(4.0.5 - 4.2.3 only)
Description
cybermut_testmac() is used to make sure that there was not data diddling contained in the received message of confirmation. Pay attention to parameters code-retour and texte-libre, which cannot be evaluated as is, because of the dash. You must retrieve them by using:
?php $code_retour = $_GET["code-retour"]; $texte_libre = $_GET["texte-libre"];?
瞰赽 1. Last step of payment (equiv cgi2.c)
?php // Make sure that Enable Track Vars is ON. // Directory where are located the keys putenv("CMKEYDIR=/var/creditmut/cles"); // Version number $VERSION="1.2"; $texte_libre = $_GET["texte-libre"]; $code_retour = $_GET["code-retour"]; $mac_ok = cybermut_testmac($MAC,$VERSION,$TPE,$date,$montant,$reference,$texte_libre,$code_retour); if ($mac_ok) {// // insert data processing here // // $result=cybermut_creerreponsecm("OK");} else {$result=cybermut_creerreponsecm("Document Falsifie");}?
See also cybermut_creerformulairecm() and cybermut_creerreponsecm().
綴豖
れ萸
ヶ輛
cybermut_creerreponsecm
奻珨撰
Cyrus IMAP administration functions