0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
marketting
/
system
/
application
/
controllers
/
[
Home
]
File: thankyou.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | COPYRIGHT NOTICE | Copyright 2008 JROX Technologies, Inc. All Rights Reserved. | ------------------------------------------------------------------------- | This script may be only used and modified in accordance to the license | agreement attached (license.txt) except where expressly noted within | commented areas of the code body. This copyright notice and the | comments above and below must remain intact at all times. By using this | code you agree to indemnify JROX Technologies, Inc, its corporate agents | and affiliates from any liability that might arise from its use. | | Selling the code for this program without prior written consent is | expressly forbidden and in violation of Domestic and International | copyright laws. | | ------------------------------------------------------------------------- | FILENAME - thankyou.php | ------------------------------------------------------------------------- | | This controller file is used to manage the thank you page | */ class Thankyou extends Checkout_Controller { function __construct() { parent::Checkout_Controller(); //load css body style $this->config->set_item('css_body', 'jroxCheckout'); //create pagination links $this->config->set_item('uri', $this->config->item('base_folder_path') . '/' . $this->uri->segment(1)); $this->config->set_item('uri_string', str_replace('/', ':', trim_slashes($this->uri->uri_string()))); } // ------------------------------------------------------------------------ function index() { $this->security_model->_load_session('public'); //set data array $data = $this->security_model->_load_config('public'); //initialize site with required db config $sdata = $this->init->_initialize(__CLASS__, __FUNCTION__); //set up the languages array $data['languages'] = $sdata['languages']; //set all text foreach ($sdata['text'] as $key => $val) { $data[$key] = $val; } //set referral info foreach ($sdata['aff_cfg'] as $key => $val) { $data[$key] = $val; } //update login status if ($this->session->userdata('m_login_status') == 1) { if ($this->members->_check_member_purchase($this->session->userdata('userid')) == true) { $this->session->set_userdata('m_login_status', '0'); } } //reset cart $this->checkout->_reset_cart(); //set page title $data['page_title'] = $this->lang->line('thank_you'); $data['meta_keywords'] = ''; $data['lang_thank_you'] = $this->lang->line('thank_you'); $data['lang_thank_you_order'] = $this->lang->line('checkout_thank_you_order'); $data['lang_checkout_check_your_account'] = $this->lang->line('checkout_check_your_account'); $data['lang_login_to_account'] = anchor(base_url() . MEMBERS_ROUTE, $this->lang->line('click_to_login_to_account')); $this->parser->_JROX_load_view('tpl_payment_thankyou', 'checkout', $data); } // ------------------------------------------------------------------------ function offline() { $this->security_model->_load_session('public'); //set data array $data = $this->security_model->_load_config('public'); //initialize site with required db config $sdata = $this->init->_initialize(__CLASS__, __FUNCTION__); //set up the languages array $data['languages'] = $sdata['languages']; //set all text foreach ($sdata['text'] as $key => $val) { $data[$key] = $val; } //set referral info foreach ($sdata['aff_cfg'] as $key => $val) { $data[$key] = $val; } //reset cart $this->checkout->_reset_cart(); //set page title $data['page_title'] = $this->lang->line('thank_you'); $data['meta_keywords'] = ''; $data['lang_thank_you'] = $this->lang->line('thank_you'); $data['page_title'] = $this->lang->line('thank_you'); $data['meta_keywords'] = ''; $data['lang_thank_you'] = $this->lang->line('thank_you'); $data['lang_thank_you_order'] = $this->lang->line('checkout_thank_you_order'); $data['lang_checkout_check_your_account'] = nl2br($this->config->item('module_payment_gateway_offline_payment_message')); if ($this->config->item('module_payment_gateway_offline_payment_download_link')) { $data['lang_offline_form_link'] = anchor($this->config->item('module_payment_gateway_offline_payment_download_link'), $this->lang->line('offline_order_form_link')); } else { $data['lang_offline_form_link'] = anchor(base_url() . MEMBERS_ROUTE, $this->lang->line('click_to_login_to_account')); } $this->parser->_JROX_load_view('tpl_offline_payment_thankyou', 'checkout', $data); } // ------------------------------------------------------------------------ function membership() { $this->security_model->_load_session('public'); //set data array $data = $this->security_model->_load_config('public'); //initialize site with required db config $sdata = $this->init->_initialize(__CLASS__, __FUNCTION__); //set up the languages array $data['languages'] = $sdata['languages']; //set all text foreach ($sdata['text'] as $key => $val) { $data[$key] = $val; } //set referral info foreach ($sdata['aff_cfg'] as $key => $val) { $data[$key] = $val; } //reset cart $this->checkout->_reset_cart('membership'); //set page title $data['page_title'] = $this->lang->line('thank_you'); $data['meta_keywords'] = ''; $data['lang_thank_you'] = $this->lang->line('thank_you'); $data['page_title'] = $this->lang->line('thank_you'); $data['meta_keywords'] = ''; $data['lang_thank_you'] = $this->lang->line('thank_you'); $data['lang_thank_you_order'] = $this->lang->line('checkout_thank_you_order'); $data['lang_checkout_check_your_account'] = ''; //get the URL to redirect $url = base_url() . 'login/general/membership/' . $this->uri->segment(3); $data['lang_login_to_account'] = anchor($url, $this->lang->line('click_to_proceed_to_membership')); $this->parser->_JROX_load_view('tpl_payment_thankyou', 'checkout', $data); } } ?>