function let()
 {
     $GLOBALS['TL_CONFIG']['encryptionKey'] = 'gg889';
     $GLOBALS['TL_CONFIG']['encryptionMode'] = 'cfb';
     $GLOBALS['TL_CONFIG']['encryptionCipher'] = 'rijndael-256';
     $this->beConstructedWith(\Encryption::getInstance());
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->BackendUser = BackendUser::getInstance();
     parent::__construct();
     $this->Encryption = Encryption::getInstance();
     $this->Config = Config::getInstance();
     $this->objSyncCtoFiles = SyncCtoFiles::getInstance();
     $this->objSyncCtoDatabase = SyncCtoDatabase::getInstance();
     $this->objSyncCtoHelper = SyncCtoHelper::getInstance();
     $this->loadLanguageFile("default");
     $this->arrDebug = array();
 }
Example #3
0
         // Display transactions for this order
         $transaction['status'] = empty($transaction['status']) ? $GLOBALS['lang']['common']['null'] : $transaction['status'];
         $transaction['time'] = formatTime($transaction['time']);
         $transaction['amount'] = Tax::getInstance()->priceFormat($transaction['amount']);
         $smarty_data['list_transactions'][] = $transaction;
         if (isset($transaction['actions'])) {
             $GLOBALS['smarty']->assign('DISPLAY_ACTIONS', true);
         }
     }
     $GLOBALS['smarty']->assign('TRANSACTIONS', $smarty_data['list_transactions']);
     $GLOBALS['smarty']->assign('DISPLAY_TRANSACTIONS', true);
 }
 // Load credit card details, if any
 if (!empty($summary[0]['offline_capture'])) {
     $GLOBALS['main']->addTabControl($lang['orders']['title_card_details'], 'credit_card');
     $decrypt = Encryption::getInstance();
     $decrypt->setup(false, $summary[0]['cart_order_id']);
     $card = unserialize($decrypt->decrypt(stripslashes($summary[0]['offline_capture'])));
     if (empty($card)) {
         // Decrypt CC3/CC4 Card Details
         $card = unserialize($decrypt->decryptDepreciated(base64_decode($summary[0]['offline_capture']), $summary[0]['cart_order_id']));
     }
     $card = !empty($card) ? $card : array('card_type' => '', 'card_number' => '', 'card_expire' => '', 'card_valid' => '', 'card_issue' => '', 'card_cvv' => '');
     foreach ($card as $key => $value) {
         $smarty_data['card_data'][$key] = array('name' => $lang['orders']['card_' . $key], 'value' => CC_SSL ? $value : 'View under SSL');
     }
     $GLOBALS['smarty']->assign('CARD_DATA', $smarty_data['card_data']);
     $GLOBALS['smarty']->assign('CARD_DELETE', '?_g=orders&action=edit&order_id=' . $summary[0]['cart_order_id'] . "&delete_card=1#credit_card");
     $GLOBALS['smarty']->assign('DISPLAY_CARD', true);
 }
 // Load addresses
Example #4
0
// ---------------------------------------------------------------------------------------------------------------------
/**
 * Contao Files as file system service.
 *
 * @return \Files
 */
$container[Services::FILE_SYSTEM] = function () {
    return \Files::getInstance();
};
/**
 * Contao Encryption class as a service.
 *
 * @return Encryption
 */
$container[Services::ENCRYPTION] = function () {
    return Encryption::getInstance();
};
/**
 * Request token as service.
 *
 * @return RequestToken
 */
$container[Services::REQUEST_TOKEN] = $container->share(function () {
    return RequestToken::getInstance();
});
// ---------------------------------------------------------------------------------------------------------------------
// Toolkit Dependency injection
//
// Toolkit provides an container implementation which based on container-interop/container-interop ContainerInterface.
// Instead of access Pimple in user land code it's recommend to depend on ContainerInterface. Since Contao 4.x is
// supported, an adapter to Symfony container based on ContainerInterface or the updated