Advertisement
Guest User

Untitled

a guest
Mar 30th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class ControllerPaymentCODPlus
  15. {
  16. public $version = '0.3';
  17. private $error = array( );
  18. private $license = null;
  19.  
  20. public function __construct($registry)
  21. {
  22. parent::__construct( $registry );
  23. require_once DIR_APPLICATION . 'controller/tool/ocmax.php';
  24. $registry->set( 'ocmax', new ControllerToolOCMax( $registry ) );
  25. $this->license = (($this->ocmax->licenseVerification( $this->config->get( 'cod_plus_license' ), 'cod_plus' ) === md5( date( 'WwtLIZ' ) . md5( date( 'WwtLIZ' ) ) ) ? true : false));
  26. }
  27.  
  28. public function index()
  29. {
  30. $this->load->language( 'payment/cod_plus' );
  31. $this->document->setTitle( $this->language->get( 'heading_title' ) );
  32.  
  33. if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate( )) {
  34. $this->load->model( 'setting/setting' );
  35. $this->model_setting_setting->editSetting( 'cod_plus', $this->request->post );
  36. $this->session->data['success'] = $this->language->get( 'text_success' );
  37.  
  38. if (!(isset( $this->request->get['saveAndStay'] ))) {
  39. $this->redirect( $this->url->link( 'extension/payment', 'token=' . $this->session->data['token'], 'SSL' ) );
  40. }
  41. }
  42.  
  43. if (isset( $this->session->data['success'] )) {
  44. $this->data['success'] = $this->session->data['success'];
  45. unset( $this->session->data['success'] );
  46. }
  47. else {
  48. $this->data['success'] = '';
  49. }
  50.  
  51. if (isset( $this->error['warning'] )) {
  52. $this->data['error_warning'] = $this->error['warning'];
  53. }
  54. else {
  55. $this->data['error_warning'] = '';
  56. }
  57.  
  58. $this->data['heading_title'] = $this->language->get( 'heading_title' );
  59. $this->data['heading_modal'] = $this->language->get( 'heading_modal' );
  60. $this->data['action'] = $this->url->link( 'payment/cod_plus', 'token=' . $this->session->data['token'], 'SSL' );
  61. $this->data['cancel'] = $this->url->link( 'extension/payment', 'token=' . $this->session->data['token'], 'SSL' );
  62. $this->data['breadcrumbs'] = array( );
  63. $this->data['breadcrumbs'][] = array(
  64. 'text' => $this->language->get( 'text_home' ),
  65. 'href' => $this->url->link( 'common/home', 'token=' . $this->session->data['token'], 'SSL' )
  66. );
  67. $this->data['breadcrumbs'][] = array(
  68. 'text' => $this->language->get( 'text_payment' ),
  69. 'href' => $this->url->link( 'extension/payment', 'token=' . $this->session->data['token'], 'SSL' )
  70. );
  71. $this->data['breadcrumbs'][] = array(
  72. 'text' => $this->language->get( 'heading_title' ),
  73. 'href' => $this->url->link( 'payment/cod_plus', 'token=' . $this->session->data['token'], 'SSL' )
  74. );
  75. $this->data['token'] = $this->session->data['token'];
  76. $this->data['button_save_and_stay'] = $this->language->get( 'button_save_and_stay' );
  77. $this->data['button_save'] = $this->language->get( 'button_save' );
  78. $this->data['button_cancel'] = $this->language->get( 'button_cancel' );
  79. $this->data['button_add_calculator'] = $this->language->get( 'button_add_calculator' );
  80. $this->data['button_add_tariff'] = $this->language->get( 'button_add_tariff' );
  81. $this->data['tab_general'] = $this->language->get( 'tab_general' );
  82. $this->data['tab_calculator'] = $this->language->get( 'tab_calculator' );
  83. $this->data['tab_support'] = $this->language->get( 'tab_support' );
  84. $this->data['column_shipping_name'] = $this->language->get( 'column_shipping_name' );
  85. $this->data['column_shipping_code'] = $this->language->get( 'column_shipping_code' );
  86. $this->data['column_currency'] = $this->language->get( 'column_currency' );
  87. $this->data['column_action'] = $this->language->get( 'column_action' );
  88. $this->data['column_base'] = $this->language->get( 'column_base' );
  89. ............................................................................
  90. ............................................
  91. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement