1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php require_once APPPATH . 'core/MY_Controller_2.php';
class Contact_us extends MY_Controller_2 { public function __construct() { parent::__construct(); if (!is_osl()) { exit(); }
$this->updated_single_language_fields = array( 'name' => __('Name'), 'email' => __('Email'), 'phone' => __('Message'), 'subject' => __('Message'), 'message' => __('Message'), ); $this->single_language_fields = array_merge($this->updated_single_language_fields, array( 'captcha_code' => __('Captcha Code'), ));
$this->single_language_encpytion_fields = array('message');
$this->load->vars('name_fields', $this->get_concat_single_and_multiple_language_fields('name'));
$this->load->helper('cryptojs-aes'); $this->load->library('encryption'); }
public function index() { $data['captcha_img'] = captcha_img(); $this->load->view('main/contact_us', $data); } }
|