Esempio n. 1
0
 function ok($orderkey = '', $member = '')
 {
     $this->jquery->script('/ressources/jquery-1.6.2.min.js', TRUE);
     //		$js =$this->jquery->corner('#tt_del');
     $this->javascript->output($js);
     $this->javascript->compile();
     // http://kbhff.skrig.dk/pay/ok?transact=19109947&OrderID=13&Attempts=1&Cardnumber=XXXXXXXXXXXX0121
     $transact = $this->input->get_post('transact', true);
     $OrderID = $this->input->get_post('OrderID', true);
     $Cardnumber = $this->input->get_post('Cardnumber', true);
     $today = strftime("%Y-%m-%d", time());
     $kvit = kvitgetorderhead($OrderID, $orderkey, $transact, $Cardnumber);
     $emailkvittering = kvitgetorderlines($OrderID, $orderkey, $kvit['kvittering']);
     $kvittering = htmlentities($emailkvittering);
     $kvittering = nl2br($kvittering);
     if (getreceiptstatus($OrderID) > '') {
         // er sendt
     } else {
         senderrormail("ok - kvittering ikke sendt - {$OrderID}, {$today}, {$transact}");
         sendreceipt($emailkvittering, $OrderID, $kvit['email'], $kvit['firstname'], $kvit['middlename'], $kvit['lastname']);
         // Update status for Order
         updateorderhead($OrderID, $transact, $Cardnumber, ' ok');
         updatetransactions($OrderID, $transact, $kvit['uid']);
     }
     if ($member) {
         $membercontent = '<br>Velkommen som nyt medlem!';
         $this->_activate_new_member($OrderID, $kvit['uid']);
     }
     $data = array('title' => 'Registrering af betaling', 'heading' => 'Registrering af betaling, trin 5/5', 'content' => '<strong>Ordre ' . $OrderID . ' er betalt.</strong>' . $membercontent . '<br>' . $kvittering);
     $this->load->view('page_noscript', $data);
 }
Esempio n. 2
0
<?
$today = strftime("%Y-%m-%d", time());

//GET /ressources/admin/ok_hidden.php?transact=19194924&OrderID=108&CardType=Visa%2Fdankort&Attempts=1&AttemptsFromIPToday=1&Cardnumber=XXXXXXXXXXXX0121 
//			senderrormail("debug 334khidden - '$OrderID', '$transact', '$Cardnumber'");
$tmp = getreceiptstatus($OrderID);
if (getreceiptstatus($OrderID)> '')	// ff_orderhead.status3
{
	// echo ("'$tmp' kvittering sendt");
} else {
	// echo ("'$tmp' sender kvittering");
	$SessionID = '';
	$kvit = kvitgetorderhead($OrderID, $SessionID, $transact, $Cardnumber);
	$emailkvittering = kvitgetorderlines($OrderID, $SessionID, $kvit['kvittering']);
	sendreceipt($emailkvittering, $OrderID, $kvit['email'], $kvit['firstname'], $kvit['middlename'], $kvit['lastname']);
	updatetransactions($OrderID, $transact, $kvit['uid']);
}

updateorderhead($OrderID, $transact, $Cardnumber, ' hidden');
setpaid($OrderID);

?>

</body>
</html>


<?