コード例 #1
0
<?php

/**
 * @version SOFORT Gateway 5.2.0 - $Date: 2012-09-06 14:27:56 +0200 (Thu, 06 Sep 2012) $
 * @author SOFORT AG (integration@sofort.com)
 * @link http://www.sofort.com/
 *
 * Copyright (c) 2012 SOFORT AG
 *
 * $Id: confirmVorkasse.php 3751 2012-10-10 08:36:20Z gtb-modified $
 */
require_once '../../library/sofortLib.php';
chdir('../../../..');
include 'includes/application_top.php';
require_once DIR_FS_CATALOG . 'callback/sofort/helperFunctions.php';
$language = HelperFunctions::getSofortLanguage($_SESSION['language']);
include DIR_WS_LANGUAGES . $language . '/modules/payment/sofort_sofortvorkasse.php';
// create smarty elements
$smarty = new Smarty();
// include boxes
require_once DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// if the customer is not logged on, redirect them to the shopping cart page
if (!isset($_SESSION['customer_id'])) {
    xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
}
$breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_CONFIRMATION);
$breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_CONFIRMATION);
require_once DIR_WS_INCLUDES . 'header.php';
$smarty->assign('FORM_ACTION', xtc_draw_form('order', xtc_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')));
$smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$smarty->assign('BUTTON_PRINT', '<img src="' . 'templates/' . CURRENT_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/button_print.gif" style="cursor:hand"