Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class ControllerPaymentCODPlus
- {
- public $version = '0.3';
- private $error = array( );
- private $license = null;
- public function __construct($registry)
- {
- parent::__construct( $registry );
- require_once DIR_APPLICATION . 'controller/tool/ocmax.php';
- $registry->set( 'ocmax', new ControllerToolOCMax( $registry ) );
- $this->license = (($this->ocmax->licenseVerification( $this->config->get( 'cod_plus_license' ), 'cod_plus' ) === md5( date( 'WwtLIZ' ) . md5( date( 'WwtLIZ' ) ) ) ? true : false));
- }
- public function index()
- {
- $this->load->language( 'payment/cod_plus' );
- $this->document->setTitle( $this->language->get( 'heading_title' ) );
- if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate( )) {
- $this->load->model( 'setting/setting' );
- $this->model_setting_setting->editSetting( 'cod_plus', $this->request->post );
- $this->session->data['success'] = $this->language->get( 'text_success' );
- if (!(isset( $this->request->get['saveAndStay'] ))) {
- $this->redirect( $this->url->link( 'extension/payment', 'token=' . $this->session->data['token'], 'SSL' ) );
- }
- }
- if (isset( $this->session->data['success'] )) {
- $this->data['success'] = $this->session->data['success'];
- unset( $this->session->data['success'] );
- }
- else {
- $this->data['success'] = '';
- }
- if (isset( $this->error['warning'] )) {
- $this->data['error_warning'] = $this->error['warning'];
- }
- else {
- $this->data['error_warning'] = '';
- }
- $this->data['heading_title'] = $this->language->get( 'heading_title' );
- $this->data['heading_modal'] = $this->language->get( 'heading_modal' );
- $this->data['action'] = $this->url->link( 'payment/cod_plus', 'token=' . $this->session->data['token'], 'SSL' );
- $this->data['cancel'] = $this->url->link( 'extension/payment', 'token=' . $this->session->data['token'], 'SSL' );
- $this->data['breadcrumbs'] = array( );
- $this->data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'text_home' ),
- 'href' => $this->url->link( 'common/home', 'token=' . $this->session->data['token'], 'SSL' )
- );
- $this->data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'text_payment' ),
- 'href' => $this->url->link( 'extension/payment', 'token=' . $this->session->data['token'], 'SSL' )
- );
- $this->data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'heading_title' ),
- 'href' => $this->url->link( 'payment/cod_plus', 'token=' . $this->session->data['token'], 'SSL' )
- );
- $this->data['token'] = $this->session->data['token'];
- $this->data['button_save_and_stay'] = $this->language->get( 'button_save_and_stay' );
- $this->data['button_save'] = $this->language->get( 'button_save' );
- $this->data['button_cancel'] = $this->language->get( 'button_cancel' );
- $this->data['button_add_calculator'] = $this->language->get( 'button_add_calculator' );
- $this->data['button_add_tariff'] = $this->language->get( 'button_add_tariff' );
- $this->data['tab_general'] = $this->language->get( 'tab_general' );
- $this->data['tab_calculator'] = $this->language->get( 'tab_calculator' );
- $this->data['tab_support'] = $this->language->get( 'tab_support' );
- $this->data['column_shipping_name'] = $this->language->get( 'column_shipping_name' );
- $this->data['column_shipping_code'] = $this->language->get( 'column_shipping_code' );
- $this->data['column_currency'] = $this->language->get( 'column_currency' );
- $this->data['column_action'] = $this->language->get( 'column_action' );
- $this->data['column_base'] = $this->language->get( 'column_base' );
- ............................................................................
- ............................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement