69 lines
2.4 KiB
PHP
69 lines
2.4 KiB
PHP
<?php
|
|
/*
|
|
+--------------------------------------------------------------------------
|
|
| CubeCart 4
|
|
| ========================================
|
|
| CubeCart is a registered trade mark of Devellion Limited
|
|
| Copyright Devellion Limited 2006. All rights reserved.
|
|
| Devellion Limited,
|
|
| 5 Bridge Street,
|
|
| Bishops Stortford,
|
|
| HERTFORDSHIRE.
|
|
| CM23 2JU
|
|
| UNITED KINGDOM
|
|
| http://www.devellion.com
|
|
| UK Private Limited Company No. 5323904
|
|
| ========================================
|
|
| Web: http://www.cubecart.com
|
|
| Email: info (at) cubecart (dot) com
|
|
| License Type: CubeCart is NOT Open Source Software and Limitations Apply
|
|
| Licence Info: http://www.cubecart.com/site/faq/license.php
|
|
+--------------------------------------------------------------------------
|
|
| confirmed.inc.php
|
|
| ========================================
|
|
| Order Confirmation
|
|
+--------------------------------------------------------------------------
|
|
*/
|
|
|
|
if(!defined('CC_INI_SET') || !isset($_GET['s'])){ die("Access Denied"); }
|
|
|
|
// include lang file
|
|
$lang = getLang("includes".CC_DS."content".CC_DS."confirmed.inc.php");
|
|
|
|
$confirmation = new XTemplate ("content".CC_DS."confirmed.tpl");
|
|
|
|
$confirmation->assign("LANG_CONFIRMATION_SCREEN",$lang['confirmed']['confirmation_screen']);
|
|
|
|
$confirmation->assign("LANG_CART",$lang['confirmed']['cart']);
|
|
$confirmation->assign("LANG_CHECKOUT",$lang['confirmed']['checkout']);
|
|
$confirmation->assign("LANG_PAYMENT",$lang['confirmed']['payment']);
|
|
$confirmation->assign("LANG_COMPLETE",$lang['confirmed']['complete']);
|
|
|
|
// Payment Failed link to try again
|
|
if($_GET['s'] == 1) {
|
|
|
|
$confirmation->assign("LANG_ORDER_FAILED",$lang['confirmed']['order_fail']);
|
|
$confirmation->assign("LANG_ORDER_RETRY",$lang['confirmed']['try_again_desc']);
|
|
$confirmation->assign("LANG_RETRY_BUTTON",$lang['confirmed']['try_again']);
|
|
$confirmation->parse("confirmation.order_failed");
|
|
|
|
}
|
|
// Payment success & complete
|
|
elseif($_GET['s'] == 2) {
|
|
$confirmation->assign("LANG_ORDER_SUCCESSFUL",$lang['confirmed']['order_success']);
|
|
|
|
$confirmation->parse("confirmation.order_success");
|
|
|
|
}
|
|
// Payment may or may not have been approved yet
|
|
elseif($_GET['s'] == 3) {
|
|
$confirmation->assign("LANG_ORDER_PROCESSING",$lang['confirmed']['order_processing']);
|
|
|
|
$confirmation->parse("confirmation.order_processing");
|
|
}
|
|
|
|
|
|
$confirmation->parse("confirmation");
|
|
|
|
$page_content = $confirmation->text("confirmation");
|
|
?>
|