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.7.0
- * @ Author : DeZender
- * @ Release on : 22.06.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class ControllerExtensionModuleMegasliderpro extends Controller
- {
- private $error = array( );
- public $aleksey_20 = false;
- public $aleksey_40 = false;
- public $aleksey_34 = '';
- public $activation_key_expires = null;
- public $secret_key = 'Hx0wEkHxyEPLxpYCdsGX';
- public $secret_key_dec = 'Hx0wEkHxyEPLxpYCdsGX1111';
- public $aleksey_6 = 'http://validator.waterfilter.in.ua/api.php';
- public $remote_port = 80;
- public $remote_timeout = 20;
- public $local_ua = 'PHP code protect';
- public $aleksey_18 = false;
- public $use_expires = false;
- public $local_key_storage = 'filesystem';
- public $aleksey_5 = './';
- public $aleksey_24 = 'newstore.php';
- public $local_key_transport_order = 'scf';
- public $local_key_delay_period = 1;
- public $local_key_last = null;
- public $release_date = '2016-11-18';
- public $user_name = '';
- public $status_messages = array(
- 'status_1' => '<span style="color:green;">Лицензия Активна. Спасибо! / License activity. Thank you!</span>',
- 'status_2' => 'Срок закончился. / The term ended.',
- 'status_3' => 'Ожидает повторной активации. / Pending re-activation.',
- 'status_4' => 'License suspended.',
- 'localhost' => 'Активна на компе / Is active on a computer',
- 'pending' => 'Ожидает активации. / Awaiting activation',
- 'download_access_expired' => 'Неверный ключ / Invalid key',
- 'missing_activation_key' => 'Укажите ключ. / Enter key.',
- 'could_not_obtain_local_key' => 'Невозможно получить ключ. / Unable to get the key.',
- 'maximum_delay_period_expired' => 'Ключ истек. / The key has expired.',
- 'local_key_tampering' => 'Ключ не действителен. / The key is not valid.',
- 'local_key_invalid_for_location' => 'Неверный ключ / Invalid key',
- 'missing_license_file' => 'Создайте файл и папки / Create files and folders:<br />',
- 'license_file_not_writable' => 'Сделайте права для записи 777 / Make the right to record 777<br />',
- 'invalid_local_key_storage' => 'не могу удалить я ключ, попросите автора модуля(шаблона) / I can not remove the key, ask the author of the module (template)',
- 'could_not_save_local_key' => 'ключ на могу записать, проверьте права на файл',
- 'activation_key_string_mismatch' => 'Неверный ключ / Invalid key'
- );
- private $trigger_delay_period = null;
- public function install()
- {
- $this->load->model( 'megasliderpro/megaslider' );
- $this->model_megasliderpro_megaslider->CreateTable( );
- }
- public function index()
- {
- $this->load->language( 'extension/module/megasliderpro' );
- $this->document->setTitle( $this->language->get( 'heading_title' ) );
- $this->load->model( 'extension/module' );
- $this->aleksey_5 = './';
- $this->aleksey_24 = 'newstore.php';
- $this->aleksey_6 = 'http://validator.waterfilter.in.ua/api.php';
- $query_key = $this->db->query( 'SELECT `license_key` FROM ' . DB_PREFIX . 'edit_key_product where `key`=\'local_key\'' );
- $query_row = $query_key->row;
- $lkey = $query_row['license_key'];
- if ($this->aleksey_18 && $this->aleksey_39( ) && $this->isWindows( ) && !(file_exists( $this->aleksey_5 . $this->aleksey_24 ))) {
- $this->aleksey_20 = true;
- }
- else if (empty( $lkey )) {
- $url = '';
- $this->response->redirect( $this->url->link( 'sale/callback/activation', 'token=' . $this->session->data['token'] . $url, 'SSL' ) );
- }
- $this->aleksey_34 = $lkey;
- $this->aleksey_38( );
- if ($this->aleksey_20 && ($this->secret_key_dec == 'Hx0wEkHxyEPLxpYCdsGX1111')) {
- $license = true;
- }
- else {
- $url = '';
- $this->response->redirect( $this->url->link( 'sale/callback/activation', 'token=' . $this->session->data['token'] . $url, 'SSL' ) );
- }
- if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate( )) {
- if (!(isset( $this->request->get['module_id'] ))) {
- $this->model_extension_module->addModule( 'megasliderpro', $this->request->post );
- }
- else {
- $this->model_extension_module->editModule( $this->request->get['module_id'], $this->request->post );
- }
- $this->session->data['success'] = $this->language->get( 'text_success' );
- $this->response->redirect( $this->url->link( 'extension/extension', 'token=' . $this->session->data['token'] . '&type=module', true ) );
- }
- $data['heading_title'] = $this->language->get( 'heading_title' );
- $data['text_edit'] = $this->language->get( 'text_edit' );
- $data['text_enabled'] = $this->language->get( 'text_enabled' );
- $data['text_disabled'] = $this->language->get( 'text_disabled' );
- $data['text_ocslideshow_slide'] = $this->language->get( 'text_ocslideshow_slide' );
- $data['entry_name'] = $this->language->get( 'entry_name' );
- $data['entry_limit'] = $this->language->get( 'entry_limit' );
- $data['entry_width'] = $this->language->get( 'entry_width' );
- $data['entry_small_width'] = $this->language->get( 'entry_small_width' );
- $data['entry_height'] = $this->language->get( 'entry_height' );
- $data['entry_small_height'] = $this->language->get( 'entry_small_height' );
- $data['entry_status'] = $this->language->get( 'entry_status' );
- $data['entry_banner'] = $this->language->get( 'entry_banner' );
- $data['entry_store'] = $this->language->get( 'entry_store' );
- $data['entry_effect'] = $this->language->get( 'entry_effect' );
- $data['button_save'] = $this->language->get( 'button_save' );
- $data['button_cancel'] = $this->language->get( 'button_cancel' );
- if (isset( $this->error['warning'] )) {
- $data['error_warning'] = $this->error['warning'];
- }
- else {
- $data['error_warning'] = '';
- }
- if (isset( $this->error['name'] )) {
- $data['error_name'] = $this->error['name'];
- }
- else {
- $data['error_name'] = '';
- }
- if (isset( $this->error['width'] )) {
- $data['error_width'] = $this->error['width'];
- }
- else {
- $data['error_width'] = '';
- }
- if (isset( $this->error['height'] )) {
- $data['error_height'] = $this->error['height'];
- }
- else {
- $data['error_height'] = '';
- }
- $data['breadcrumbs'] = array( );
- $data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'text_home' ),
- 'href' => $this->url->link( 'common/dashboard', 'token=' . $this->session->data['token'], 'SSL' )
- );
- $data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'text_module' ),
- 'href' => $this->url->link( 'extension/extension', 'token=' . $this->session->data['token'] . '&type=module', true )
- );
- if (!(isset( $this->request->get['module_id'] ))) {
- $data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'heading_title' ),
- 'href' => $this->url->link( 'extension/module/megasliderpro', 'token=' . $this->session->data['token'], 'SSL' )
- );
- }
- else {
- $data['breadcrumbs'][] = array(
- 'text' => $this->language->get( 'heading_title' ),
- 'href' => $this->url->link( 'extension/module/megasliderpro', 'token=' . $this->session->data['token'] . '&module_id=' . $this->request->get['module_id'], 'SSL' )
- );
- }
- if (!(isset( $this->request->get['module_id'] ))) {
- $data['action'] = $this->url->link( 'extension/module/megasliderpro', 'token=' . $this->session->data['token'], 'SSL' );
- }
- else {
- $data['action'] = $this->url->link( 'extension/module/megasliderpro', 'token=' . $this->session->data['token'] . '&module_id=' . $this->request->get['module_id'], 'SSL' );
- }
- $data['cancel'] = $this->url->link( 'extension/extension', 'token=' . $this->session->data['token'] . '&type=module', true );
- if (isset( $this->request->get['module_id'] ) && ($this->request->server['REQUEST_METHOD'] != 'POST')) {
- $module_info = $this->model_extension_module->getModule( $this->request->get['module_id'] );
- }
- if (isset( $this->request->post['name'] )) {
- $data['name'] = $this->request->post['name'];
- }
- else if (!(empty( $module_info ))) {
- $data['name'] = $module_info['name'];
- }
- else {
- $data['name'] = '';
- }
- if (isset( $this->request->post['banner'] )) {
- $data['banner'] = $this->request->post['banner'];
- }
- else if (!(empty( $module_info ))) {
- $data['banner'] = $module_info['banner'];
- }
- else {
- $data['banner'] = 1;
- }
- if (isset( $this->request->post['width'] )) {
- $data['width'] = $this->request->post['width'];
- }
- else if (!(empty( $module_info ))) {
- $data['width'] = $module_info['width'];
- }
- else {
- $data['width'] = '';
- }
- if (isset( $this->request->post['height'] )) {
- $data['height'] = $this->request->post['height'];
- }
- else if (!(empty( $module_info ))) {
- $data['height'] = $module_info['height'];
- }
- else {
- $data['height'] = '';
- }
- if (isset( $this->request->post['status'] )) {
- $data['status'] = $this->request->post['status'];
- }
- else if (!(empty( $module_info ))) {
- $data['status'] = $module_info['status'];
- }
- else {
- $data['status'] = '';
- }
- if (!(isset( $this->request->get['module_id'] ))) {
- $data['link_to_banner'] = $this->url->link( 'extension/module/megasliderpro/form', 'token=' . $this->session->data['token'], 'SSL' );
- }
- else {
- $data['link_to_banner'] = $this->url->link( 'extension/module/megasliderpro/form', 'token=' . $this->session->data['token'] . '&module_id=' . $this->request->get['module_id'], 'SSL' );
- }
- $this->load->model( 'localisation/language' );
- $this->load->model( 'megasliderpro/megaslider' );
- $data['languages'] = $this->model_localisation_language->getLanguages( );
- $data['megasliders'] = $this->model_megasliderpro_megaslider->getmegasliderpros( );
- $data['header'] = $this->load->controller( 'common/header' );
- $data['column_left'] = $this->load->controller( 'common/column_left' );
- $data['footer'] = $this->load->controller( 'common/footer' );
- $this->response->setOutput( $this->load->view( 'extension/module/megasliderpro/megasliderpro.tpl', $data ) );
- }
- protected function validate()
- {
- if (!($this->user->hasPermission( 'modify', 'extension/module/megasliderpro' ))) {
- $this->error['warning'] = $this->language->get( 'error_permission' );
- ...........................................................................
- ...............................
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement