@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Log In | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Log In | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Log In | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | <div class="row"> |
55 | 55 | |
56 | 56 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
57 | - <?php if (isset($astpp_notification)){ ?> |
|
57 | + <?php if (isset($astpp_notification)) { ?> |
|
58 | 58 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
59 | - <?php }else{ |
|
59 | + <?php } else { |
|
60 | 60 | echo " "; |
61 | 61 | } ?> |
62 | 62 | </span></div> <br/> |
@@ -70,16 +70,16 @@ discard block |
||
70 | 70 | <h2 class="text-center"> |
71 | 71 | |
72 | 72 | <?php |
73 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
73 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
74 | 74 | $logo = $this->session->userdata['user_logo']; |
75 | - }else{ |
|
75 | + } else { |
|
76 | 76 | $logo = 'logo.png'; |
77 | 77 | } |
78 | 78 | |
79 | 79 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
80 | - <img style="height:53px;width:216px;" id="logo" alt="login" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
80 | + <img style="height:53px;width:216px;" id="logo" alt="login" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
81 | 81 | <? } else {?> |
82 | - <img style="height:53px;width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='login' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
82 | + <img style="height:53px;width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='login' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
83 | 83 | <? }?> |
84 | 84 | <div class="clear"></div> |
85 | 85 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Log In | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Log In | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
57 | 57 | <?php if (isset($astpp_notification)){ ?> |
58 | 58 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
59 | - <?php }else{ |
|
59 | + <?php } else{ |
|
60 | 60 | echo " "; |
61 | 61 | } ?> |
62 | 62 | </span></div> <br/> |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | <?php |
73 | 73 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
74 | 74 | $logo = $this->session->userdata['user_logo']; |
75 | - }else{ |
|
75 | + } else{ |
|
76 | 76 | $logo = 'logo.png'; |
77 | 77 | } |
78 | 78 |
@@ -24,77 +24,77 @@ discard block |
||
24 | 24 | |
25 | 25 | class Signup extends MX_Controller { |
26 | 26 | |
27 | - function signup() { |
|
28 | - parent::__construct(); |
|
29 | - $this->load->model('signup_model'); |
|
30 | - $this->load->helper('captcha'); |
|
31 | - $this->load->helper('template_inheritance'); |
|
32 | - //$this->load->library('form_validation'); |
|
33 | - $this->load->library('astpp/common'); |
|
34 | - $this->load->library('astpp/email_lib'); |
|
35 | - $this->load->model('db_model'); |
|
36 | - $this->load->model('common_model'); |
|
37 | - $this->load->library('session'); |
|
38 | - $this->load->library('encrypt'); |
|
39 | - $this->load->model('Astpp_common'); |
|
40 | - |
|
41 | - error_reporting(-1); |
|
42 | - ini_set('display_errors', 'On'); |
|
43 | - |
|
44 | - $data['row'] = $this->signup_model->get_rate(); |
|
45 | - } |
|
46 | - |
|
47 | - function index($key = "") { |
|
48 | - |
|
49 | - if (Common_model::$global_config['system_config']['enable_signup'] == 1) |
|
27 | + function signup() { |
|
28 | + parent::__construct(); |
|
29 | + $this->load->model('signup_model'); |
|
30 | + $this->load->helper('captcha'); |
|
31 | + $this->load->helper('template_inheritance'); |
|
32 | + //$this->load->library('form_validation'); |
|
33 | + $this->load->library('astpp/common'); |
|
34 | + $this->load->library('astpp/email_lib'); |
|
35 | + $this->load->model('db_model'); |
|
36 | + $this->load->model('common_model'); |
|
37 | + $this->load->library('session'); |
|
38 | + $this->load->library('encrypt'); |
|
39 | + $this->load->model('Astpp_common'); |
|
40 | + |
|
41 | + error_reporting(-1); |
|
42 | + ini_set('display_errors', 'On'); |
|
43 | + |
|
44 | + $data['row'] = $this->signup_model->get_rate(); |
|
45 | + } |
|
46 | + |
|
47 | + function index($key = "") { |
|
48 | + |
|
49 | + if (Common_model::$global_config['system_config']['enable_signup'] == 1) |
|
50 | 50 | { |
51 | - redirect(base_url()); |
|
51 | + redirect(base_url()); |
|
52 | 52 | } |
53 | 53 | |
54 | - $userCaptcha = $this->input->post('userCaptcha'); |
|
55 | - $random_number = substr(number_format(time() * rand(), 0, '', ''), 0, 6); |
|
56 | - $accountinfo = (array)$this->db->get_where('accounts', array('type'=>-1))->first_row(); |
|
57 | - $data['timezone_id'] = ( ! $accountinfo['timezone_id']) ? 1 : $accountinfo['timezone_id']; |
|
58 | - $data['currency_id'] = ( ! $accountinfo['currency_id']) ? 1 : $accountinfo['currency_id']; |
|
59 | - $data['country_id'] = ( ! $accountinfo['country_id']) ? 1 : $accountinfo['country_id']; |
|
60 | - |
|
61 | - $vals = array( |
|
62 | - 'word' => $random_number, |
|
63 | - 'img_path' => getcwd().'/assets/captcha/', |
|
64 | - 'img_url' => base_url().'assets/captcha/', |
|
65 | - //'font_path' => './fonts/impact.ttf', |
|
66 | - 'img_width' => '243', |
|
67 | - 'img_height' => '50', |
|
68 | - 'expiration' => '3600' |
|
69 | - ); |
|
70 | - |
|
71 | - if (isset($key) && $key != '') { |
|
72 | - $data['key_unique'] = $key; |
|
73 | - } else { |
|
74 | - $data['key_unique'] = "admin"; |
|
75 | - } |
|
76 | - $unique = $data['key_unique']; |
|
77 | - |
|
78 | - if ($unique != "admin") { |
|
79 | - $unique = $this->common->decode_params(trim($unique)); |
|
80 | - $decoded_str = $this->common->decode($unique); |
|
81 | - $unique = $decoded_str; |
|
82 | - $query = $this->db_model->getSelect("*", 'accounts', array('id' => $unique, "deleted" => "0")); |
|
83 | - if ($query->num_rows() == 0) { |
|
84 | - redirect(base_url()."signup/signup_inactive"); |
|
85 | - } |
|
86 | - if ($query->num_rows() > 0) { |
|
87 | - $query = $query->result_array(); |
|
88 | - $query = $query[0]; |
|
89 | - |
|
90 | - if ($query['status'] != 0) { |
|
91 | - redirect(base_url()."signup/signup_inactive"); |
|
92 | - } |
|
93 | - } |
|
94 | - } |
|
95 | - $data['captcha'] = create_captcha($vals); |
|
96 | - $this->session->set_userdata('captchaWord', $data['captcha']['word']); |
|
97 | - $this->db->select("*"); |
|
54 | + $userCaptcha = $this->input->post('userCaptcha'); |
|
55 | + $random_number = substr(number_format(time() * rand(), 0, '', ''), 0, 6); |
|
56 | + $accountinfo = (array)$this->db->get_where('accounts', array('type'=>-1))->first_row(); |
|
57 | + $data['timezone_id'] = ( ! $accountinfo['timezone_id']) ? 1 : $accountinfo['timezone_id']; |
|
58 | + $data['currency_id'] = ( ! $accountinfo['currency_id']) ? 1 : $accountinfo['currency_id']; |
|
59 | + $data['country_id'] = ( ! $accountinfo['country_id']) ? 1 : $accountinfo['country_id']; |
|
60 | + |
|
61 | + $vals = array( |
|
62 | + 'word' => $random_number, |
|
63 | + 'img_path' => getcwd().'/assets/captcha/', |
|
64 | + 'img_url' => base_url().'assets/captcha/', |
|
65 | + //'font_path' => './fonts/impact.ttf', |
|
66 | + 'img_width' => '243', |
|
67 | + 'img_height' => '50', |
|
68 | + 'expiration' => '3600' |
|
69 | + ); |
|
70 | + |
|
71 | + if (isset($key) && $key != '') { |
|
72 | + $data['key_unique'] = $key; |
|
73 | + } else { |
|
74 | + $data['key_unique'] = "admin"; |
|
75 | + } |
|
76 | + $unique = $data['key_unique']; |
|
77 | + |
|
78 | + if ($unique != "admin") { |
|
79 | + $unique = $this->common->decode_params(trim($unique)); |
|
80 | + $decoded_str = $this->common->decode($unique); |
|
81 | + $unique = $decoded_str; |
|
82 | + $query = $this->db_model->getSelect("*", 'accounts', array('id' => $unique, "deleted" => "0")); |
|
83 | + if ($query->num_rows() == 0) { |
|
84 | + redirect(base_url()."signup/signup_inactive"); |
|
85 | + } |
|
86 | + if ($query->num_rows() > 0) { |
|
87 | + $query = $query->result_array(); |
|
88 | + $query = $query[0]; |
|
89 | + |
|
90 | + if ($query['status'] != 0) { |
|
91 | + redirect(base_url()."signup/signup_inactive"); |
|
92 | + } |
|
93 | + } |
|
94 | + } |
|
95 | + $data['captcha'] = create_captcha($vals); |
|
96 | + $this->session->set_userdata('captchaWord', $data['captcha']['word']); |
|
97 | + $this->db->select("*"); |
|
98 | 98 | $this->db->where(array("domain"=>$_SERVER["HTTP_HOST"])); |
99 | 99 | $res = $this->db->get("invoice_conf"); |
100 | 100 | $logo_arr = $res->result(); |
@@ -105,398 +105,398 @@ discard block |
||
105 | 105 | $this->session->set_userdata('user_logo', $data['user_logo']); |
106 | 106 | $this->session->set_userdata('user_header', $data['website_header']); |
107 | 107 | $this->session->set_userdata('user_footer', $data['website_footer']); |
108 | - $this->load->view('view_signup', $data); |
|
109 | - } |
|
110 | - |
|
111 | - public function check_captcha($str) { |
|
112 | - $word = $this->session->userdata('captchaWord'); |
|
113 | - if (strcmp(strtoupper($str), strtoupper($word)) == 0) { |
|
114 | - return true; |
|
115 | - } else { |
|
116 | - $this->form_validation->set_message('check_captcha', 'Please enter correct words!'); |
|
117 | - return false; |
|
118 | - } |
|
119 | - } |
|
120 | - |
|
121 | - function terms_check() { |
|
122 | - if (isset($_POST['agreeCheck'])) { |
|
123 | - return true; |
|
124 | - } |
|
125 | - $this->form_validation->set_message('terms_check', 'THIS IS SOOOOO REQUIRED, DUDE!'); |
|
126 | - return false; |
|
127 | - } |
|
128 | - |
|
129 | - function signup_save($id = "") { |
|
130 | - if (empty($_POST)) { |
|
131 | - redirect(base_url()."signup/"); |
|
132 | - } else { |
|
133 | - $post_values = $this->input->post(); |
|
134 | - $userCaptcha = $this->input->post('userCaptcha'); |
|
135 | - $cnt_result = $this->db_model->countQuery("*", 'accounts', array('email' => $post_values['email'])); |
|
136 | - |
|
137 | - if ($userCaptcha != $this->session->userdata('captchaWord') || ! filter_var($this->input->post('email'), FILTER_VALIDATE_EMAIL) || $cnt_result > 0) { |
|
138 | - if ( ! filter_var($this->input->post('email'), FILTER_VALIDATE_EMAIL)) { |
|
139 | - $data['error']['email'] = "<div style='color: red;'> Please enter proper email </div>"; |
|
140 | - } |
|
141 | - if ($userCaptcha != $this->session->userdata('captchaWord')) { |
|
142 | - $data['error']['userCaptcha'] = "<div style='color: red;'>Please enter valid Captcha code</div>"; |
|
143 | - } |
|
144 | - if ($cnt_result > 0) { |
|
145 | - $data['error']['email'] = "<div style='color: red;'>Email Address already exists</div>"; |
|
146 | - } |
|
147 | - $random_number = substr(number_format(time() * rand(), 0, '', ''), 0, 6); |
|
148 | - $vals = array( |
|
149 | - 'word' => $random_number, |
|
150 | - 'img_path' => getcwd().'/assets/captcha/', |
|
151 | - 'img_url' => base_url().'assets/captcha/', |
|
152 | - //'font_path' => './fonts/impact.ttf', |
|
153 | - 'img_width' => '243', |
|
154 | - 'img_height' => '50', |
|
155 | - 'expiration' => '3600' |
|
156 | - ); |
|
157 | - //echo "<pre>"; print_r($_POST); exit; |
|
158 | - if (isset($_POST['key_unique']) && $_POST['key_unique'] == "admin") { |
|
159 | - $data['key_unique'] = $_POST['key_unique']; |
|
160 | - } |
|
108 | + $this->load->view('view_signup', $data); |
|
109 | + } |
|
110 | + |
|
111 | + public function check_captcha($str) { |
|
112 | + $word = $this->session->userdata('captchaWord'); |
|
113 | + if (strcmp(strtoupper($str), strtoupper($word)) == 0) { |
|
114 | + return true; |
|
115 | + } else { |
|
116 | + $this->form_validation->set_message('check_captcha', 'Please enter correct words!'); |
|
117 | + return false; |
|
118 | + } |
|
119 | + } |
|
120 | + |
|
121 | + function terms_check() { |
|
122 | + if (isset($_POST['agreeCheck'])) { |
|
123 | + return true; |
|
124 | + } |
|
125 | + $this->form_validation->set_message('terms_check', 'THIS IS SOOOOO REQUIRED, DUDE!'); |
|
126 | + return false; |
|
127 | + } |
|
128 | + |
|
129 | + function signup_save($id = "") { |
|
130 | + if (empty($_POST)) { |
|
131 | + redirect(base_url()."signup/"); |
|
132 | + } else { |
|
133 | + $post_values = $this->input->post(); |
|
134 | + $userCaptcha = $this->input->post('userCaptcha'); |
|
135 | + $cnt_result = $this->db_model->countQuery("*", 'accounts', array('email' => $post_values['email'])); |
|
136 | + |
|
137 | + if ($userCaptcha != $this->session->userdata('captchaWord') || ! filter_var($this->input->post('email'), FILTER_VALIDATE_EMAIL) || $cnt_result > 0) { |
|
138 | + if ( ! filter_var($this->input->post('email'), FILTER_VALIDATE_EMAIL)) { |
|
139 | + $data['error']['email'] = "<div style='color: red;'> Please enter proper email </div>"; |
|
140 | + } |
|
141 | + if ($userCaptcha != $this->session->userdata('captchaWord')) { |
|
142 | + $data['error']['userCaptcha'] = "<div style='color: red;'>Please enter valid Captcha code</div>"; |
|
143 | + } |
|
144 | + if ($cnt_result > 0) { |
|
145 | + $data['error']['email'] = "<div style='color: red;'>Email Address already exists</div>"; |
|
146 | + } |
|
147 | + $random_number = substr(number_format(time() * rand(), 0, '', ''), 0, 6); |
|
148 | + $vals = array( |
|
149 | + 'word' => $random_number, |
|
150 | + 'img_path' => getcwd().'/assets/captcha/', |
|
151 | + 'img_url' => base_url().'assets/captcha/', |
|
152 | + //'font_path' => './fonts/impact.ttf', |
|
153 | + 'img_width' => '243', |
|
154 | + 'img_height' => '50', |
|
155 | + 'expiration' => '3600' |
|
156 | + ); |
|
157 | + //echo "<pre>"; print_r($_POST); exit; |
|
158 | + if (isset($_POST['key_unique']) && $_POST['key_unique'] == "admin") { |
|
159 | + $data['key_unique'] = $_POST['key_unique']; |
|
160 | + } |
|
161 | 161 | |
162 | 162 | $accountinfo = (array)$this->db->get_where('accounts', array('type'=>-1))->first_row(); |
163 | 163 | $data['timezone_id'] = ( ! $accountinfo['timezone_id']) ? 1 : $accountinfo['timezone_id']; |
164 | 164 | $data['currency_id'] = ( ! $accountinfo['currency_id']) ? 1 : $accountinfo['currency_id']; |
165 | 165 | $data['country_id'] = ( ! $accountinfo['country_id']) ? 1 : $accountinfo['country_id']; |
166 | 166 | |
167 | - $data['timezone_id'] = ( ! $data['timezone_id']) ? 1 : $data['timezone_id']; |
|
168 | - $data['currency_id'] = ( ! $data['currency_id']) ? 1 : $data['currency_id']; |
|
169 | - $data['country_id'] = ( ! $data['country_id']) ? 1 : $data['country_id']; |
|
167 | + $data['timezone_id'] = ( ! $data['timezone_id']) ? 1 : $data['timezone_id']; |
|
168 | + $data['currency_id'] = ( ! $data['currency_id']) ? 1 : $data['currency_id']; |
|
169 | + $data['country_id'] = ( ! $data['country_id']) ? 1 : $data['country_id']; |
|
170 | 170 | |
171 | - $data['value'] = $post_values; |
|
172 | - $data['captcha'] = create_captcha($vals); |
|
171 | + $data['value'] = $post_values; |
|
172 | + $data['captcha'] = create_captcha($vals); |
|
173 | 173 | |
174 | - $this->session->set_userdata('captchaWord', $data['captcha']['word']); |
|
175 | - $data['key_unique'] = $_POST['key_unique']; |
|
176 | - $this->load->view('view_signup', $data); |
|
177 | - } else { |
|
178 | - //AVTLATP |
|
179 | - $user_data = $this->input->post(); |
|
174 | + $this->session->set_userdata('captchaWord', $data['captcha']['word']); |
|
175 | + $data['key_unique'] = $_POST['key_unique']; |
|
176 | + $this->load->view('view_signup', $data); |
|
177 | + } else { |
|
178 | + //AVTLATP |
|
179 | + $user_data = $this->input->post(); |
|
180 | 180 | |
181 | - if ( ! isset($_POST['key_unique']) || ! isset($_POST['email'])) { |
|
182 | - redirect(base_url()."signup/"); |
|
183 | - } |
|
184 | - $reseller_id = 0; |
|
185 | - if (isset($_POST['key_unique']) && $_POST['key_unique'] != "admin") { |
|
186 | - $_POST['key_unique'] = $this->common->decode_params(trim($_POST['key_unique'])); |
|
187 | - $decoded_str = $this->common->decode($_POST['key_unique']); |
|
188 | - $_POST['key_unique'] = $decoded_str; |
|
189 | - $user_data['key_unique'] = $_POST['key_unique']; |
|
190 | - $reseller_id = $user_data['key_unique']; |
|
191 | - } |
|
192 | - //echo "<pre>"; print_r($_POST); exit; |
|
193 | - //AVTLATP |
|
194 | - //Data want to insert or update |
|
195 | - $user_data['status'] = "1"; |
|
196 | - $user_data['number'] = $this->common->find_uniq_rendno_customer(common_model::$global_config['system_config']['cardlength'], 'number', 'accounts'); |
|
197 | - |
|
198 | - $user_data['password'] = $this->common->encode($this->common->generate_password()); |
|
199 | - $user_data['pin'] = $this->common->generate_password(); |
|
200 | - $user_data['reseller_id'] = $reseller_id; |
|
201 | - $user_data['posttoexternal'] = "0"; |
|
202 | - |
|
203 | - unset($user_data['userCaptcha']); |
|
204 | - unset($user_data['action']); |
|
205 | - |
|
206 | - $system_config = common_model::$global_config['system_config']; |
|
207 | - $balance = $system_config["balance"]; |
|
208 | - |
|
209 | - /* $query = $this->db_model->getSelect("*", 'invoice_conf ', array('id' => $unique ,"deleted" => "0")); |
|
181 | + if ( ! isset($_POST['key_unique']) || ! isset($_POST['email'])) { |
|
182 | + redirect(base_url()."signup/"); |
|
183 | + } |
|
184 | + $reseller_id = 0; |
|
185 | + if (isset($_POST['key_unique']) && $_POST['key_unique'] != "admin") { |
|
186 | + $_POST['key_unique'] = $this->common->decode_params(trim($_POST['key_unique'])); |
|
187 | + $decoded_str = $this->common->decode($_POST['key_unique']); |
|
188 | + $_POST['key_unique'] = $decoded_str; |
|
189 | + $user_data['key_unique'] = $_POST['key_unique']; |
|
190 | + $reseller_id = $user_data['key_unique']; |
|
191 | + } |
|
192 | + //echo "<pre>"; print_r($_POST); exit; |
|
193 | + //AVTLATP |
|
194 | + //Data want to insert or update |
|
195 | + $user_data['status'] = "1"; |
|
196 | + $user_data['number'] = $this->common->find_uniq_rendno_customer(common_model::$global_config['system_config']['cardlength'], 'number', 'accounts'); |
|
197 | + |
|
198 | + $user_data['password'] = $this->common->encode($this->common->generate_password()); |
|
199 | + $user_data['pin'] = $this->common->generate_password(); |
|
200 | + $user_data['reseller_id'] = $reseller_id; |
|
201 | + $user_data['posttoexternal'] = "0"; |
|
202 | + |
|
203 | + unset($user_data['userCaptcha']); |
|
204 | + unset($user_data['action']); |
|
205 | + |
|
206 | + $system_config = common_model::$global_config['system_config']; |
|
207 | + $balance = $system_config["balance"]; |
|
208 | + |
|
209 | + /* $query = $this->db_model->getSelect("*", 'invoice_conf ', array('id' => $unique ,"deleted" => "0")); |
|
210 | 210 | $query = $query->result_array(); */ |
211 | 211 | |
212 | - $company_website = $system_config["company_website"]; |
|
213 | - $company_name = $system_config["company_name"]; |
|
212 | + $company_website = $system_config["company_website"]; |
|
213 | + $company_name = $system_config["company_name"]; |
|
214 | 214 | |
215 | - //echo $company_name; exit; |
|
216 | - $selection_rategroup_signup = $system_config["default_signup_rategroup"]; |
|
215 | + //echo $company_name; exit; |
|
216 | + $selection_rategroup_signup = $system_config["default_signup_rategroup"]; |
|
217 | 217 | |
218 | - if ($reseller_id != 0) { |
|
219 | - $result = $this->db_model->getSelect("*", "pricelists", array("reseller_id" => $reseller_id), "ASC"); |
|
220 | - $result_arr = $result->result_array(); |
|
221 | - $selection_rategroup_signup = $result_arr[0]['id']; |
|
222 | - $user_data['pricelist_id'] = (isset($selection_rategroup_signup) && $selection_rategroup_signup > 0) ? $selection_rategroup_signup : 0; |
|
223 | - } else { |
|
224 | - $pricelist_id = $this->common->get_field_name('id', 'pricelists', array('name' => $selection_rategroup_signup)); |
|
225 | - /* if($pricelis_id != "") |
|
218 | + if ($reseller_id != 0) { |
|
219 | + $result = $this->db_model->getSelect("*", "pricelists", array("reseller_id" => $reseller_id), "ASC"); |
|
220 | + $result_arr = $result->result_array(); |
|
221 | + $selection_rategroup_signup = $result_arr[0]['id']; |
|
222 | + $user_data['pricelist_id'] = (isset($selection_rategroup_signup) && $selection_rategroup_signup > 0) ? $selection_rategroup_signup : 0; |
|
223 | + } else { |
|
224 | + $pricelist_id = $this->common->get_field_name('id', 'pricelists', array('name' => $selection_rategroup_signup)); |
|
225 | + /* if($pricelis_id != "") |
|
226 | 226 | $user_data['pricelist_id'] = $pricelis_id; |
227 | 227 | else |
228 | 228 | $user_data['pricelist_id'] = 0; */ |
229 | - $user_data['pricelist_id'] = ($pricelist_id != "") ? $pricelist_id : 0; |
|
230 | - } |
|
231 | - $last_id = '0'; |
|
232 | - //Insert or Update record |
|
233 | - $signup_sipdevice_flag = $system_config['create_sipdevice']; |
|
234 | - $last_id = $this->signup_model->add_user($user_data); |
|
235 | - if ($last_id == "") { |
|
236 | - redirect(base_url()."signup/signup_inactive"); |
|
237 | - } |
|
238 | - if ($signup_sipdevice_flag == '0') { |
|
239 | - $query = $this->db_model->select("*", "sip_profiles", array('name' => "default"), "id", "ASC", '1', '0'); |
|
240 | - $sip_id = $query->result_array(); |
|
241 | - if ($reseller_id > 0) { |
|
229 | + $user_data['pricelist_id'] = ($pricelist_id != "") ? $pricelist_id : 0; |
|
230 | + } |
|
231 | + $last_id = '0'; |
|
232 | + //Insert or Update record |
|
233 | + $signup_sipdevice_flag = $system_config['create_sipdevice']; |
|
234 | + $last_id = $this->signup_model->add_user($user_data); |
|
235 | + if ($last_id == "") { |
|
236 | + redirect(base_url()."signup/signup_inactive"); |
|
237 | + } |
|
238 | + if ($signup_sipdevice_flag == '0') { |
|
239 | + $query = $this->db_model->select("*", "sip_profiles", array('name' => "default"), "id", "ASC", '1', '0'); |
|
240 | + $sip_id = $query->result_array(); |
|
241 | + if ($reseller_id > 0) { |
|
242 | 242 | $reseller_id = $reseller_id; |
243 | 243 | } else { |
244 | 244 | $reseller_id = '0'; |
245 | 245 | } |
246 | - $free_switch_array = array('fs_username' => $user_data['number'], |
|
247 | - 'fs_password' => $user_data['password'], |
|
248 | - 'context' => 'default', |
|
249 | - 'effective_caller_id_name' => $user_data['number'], |
|
250 | - 'effective_caller_id_number' => $user_data['number'], |
|
251 | - 'sip_profile_id' => $sip_id[0]['id'], |
|
252 | - 'reseller_id' => $reseller_id, |
|
253 | - 'pricelist_id' => $user_data['pricelist_id'], |
|
254 | - 'accountcode' => $last_id, |
|
255 | - 'status' => $user_data['status'], |
|
256 | - 'voicemail_enabled'=>true, |
|
257 | - 'voicemail_password'=>'', |
|
258 | - 'voicemail_mail_to'=>'', |
|
259 | - 'voicemail_attach_file'=>true, |
|
260 | - 'vm_keep_local_after_email'=>true, |
|
261 | - 'vm_send_all_message'=>true, |
|
262 | - ); |
|
263 | - $user_custom_array = array_merge($user_data, $free_switch_array); |
|
264 | - $user_custom_array['id'] = $last_id; |
|
265 | - $user_custom_array['email'] = $user_data['email']; |
|
246 | + $free_switch_array = array('fs_username' => $user_data['number'], |
|
247 | + 'fs_password' => $user_data['password'], |
|
248 | + 'context' => 'default', |
|
249 | + 'effective_caller_id_name' => $user_data['number'], |
|
250 | + 'effective_caller_id_number' => $user_data['number'], |
|
251 | + 'sip_profile_id' => $sip_id[0]['id'], |
|
252 | + 'reseller_id' => $reseller_id, |
|
253 | + 'pricelist_id' => $user_data['pricelist_id'], |
|
254 | + 'accountcode' => $last_id, |
|
255 | + 'status' => $user_data['status'], |
|
256 | + 'voicemail_enabled'=>true, |
|
257 | + 'voicemail_password'=>'', |
|
258 | + 'voicemail_mail_to'=>'', |
|
259 | + 'voicemail_attach_file'=>true, |
|
260 | + 'vm_keep_local_after_email'=>true, |
|
261 | + 'vm_send_all_message'=>true, |
|
262 | + ); |
|
263 | + $user_custom_array = array_merge($user_data, $free_switch_array); |
|
264 | + $user_custom_array['id'] = $last_id; |
|
265 | + $user_custom_array['email'] = $user_data['email']; |
|
266 | 266 | |
267 | - $this->load->model('freeswitch/freeswitch_model'); |
|
268 | - $this->freeswitch_model->add_freeswith($user_custom_array); |
|
269 | - } |
|
270 | - // echo "<pre>"; print_r ($user_data); exit; |
|
271 | - $activation = $this->encrypt->encode($user_data['number']); |
|
272 | - $message = base_url().'signup/signup_confirm?email='.urlencode($user_data['email'])."&key=".urlencode($activation); |
|
273 | - $user_data['confirm'] = $message; |
|
274 | - |
|
275 | - $this->send_mail($last_id, 'email_signup_confirmation', $user_data); |
|
276 | - redirect(base_url()."signup/signup_success"); |
|
277 | - } |
|
278 | - } |
|
279 | - } |
|
280 | - |
|
281 | - function signup_confirm() { |
|
282 | - if ( ! empty($_GET)) { |
|
283 | - |
|
284 | - $system_config = common_model::$global_config['system_config']; |
|
285 | - $balance = $system_config["balance"]; |
|
286 | - $accno = $this->encrypt->decode($_GET['key']); |
|
287 | - $email = $_GET['email']; |
|
288 | - $success = $this->signup_model->check_user($accno, $email, $balance); |
|
289 | - $query = $this->db_model->getSelect("*", "accounts", array('number' => $accno)); |
|
290 | - $data = $query->result_array(); |
|
291 | - $user_data = $data[0]; |
|
292 | - $user_data['accountid'] = $user_data['id']; |
|
293 | - $user_data['success'] = $success; |
|
294 | - $user_data['balance'] = $balance; |
|
295 | - $user_data['confirm'] = base_url(); |
|
296 | - $this->active($user_data, $success); |
|
297 | - } else { |
|
298 | - redirect(base_url()); |
|
299 | - } |
|
300 | - } |
|
301 | - |
|
302 | - function signup_success() { |
|
303 | - $this->load->view('view_signup_success'); |
|
304 | - } |
|
305 | - |
|
306 | - function signup_inactive() { |
|
307 | - $this->load->view('view_signup_inactive'); |
|
308 | - } |
|
309 | - |
|
310 | - function active($user_data, $success) { |
|
311 | - $data['user_data'] = $user_data; |
|
312 | - $data['user_data']['success'] = $success; |
|
313 | - |
|
314 | - if ($user_data['success']) { |
|
267 | + $this->load->model('freeswitch/freeswitch_model'); |
|
268 | + $this->freeswitch_model->add_freeswith($user_custom_array); |
|
269 | + } |
|
270 | + // echo "<pre>"; print_r ($user_data); exit; |
|
271 | + $activation = $this->encrypt->encode($user_data['number']); |
|
272 | + $message = base_url().'signup/signup_confirm?email='.urlencode($user_data['email'])."&key=".urlencode($activation); |
|
273 | + $user_data['confirm'] = $message; |
|
274 | + |
|
275 | + $this->send_mail($last_id, 'email_signup_confirmation', $user_data); |
|
276 | + redirect(base_url()."signup/signup_success"); |
|
277 | + } |
|
278 | + } |
|
279 | + } |
|
280 | + |
|
281 | + function signup_confirm() { |
|
282 | + if ( ! empty($_GET)) { |
|
283 | + |
|
284 | + $system_config = common_model::$global_config['system_config']; |
|
285 | + $balance = $system_config["balance"]; |
|
286 | + $accno = $this->encrypt->decode($_GET['key']); |
|
287 | + $email = $_GET['email']; |
|
288 | + $success = $this->signup_model->check_user($accno, $email, $balance); |
|
289 | + $query = $this->db_model->getSelect("*", "accounts", array('number' => $accno)); |
|
290 | + $data = $query->result_array(); |
|
291 | + $user_data = $data[0]; |
|
292 | + $user_data['accountid'] = $user_data['id']; |
|
293 | + $user_data['success'] = $success; |
|
294 | + $user_data['balance'] = $balance; |
|
295 | + $user_data['confirm'] = base_url(); |
|
296 | + $this->active($user_data, $success); |
|
297 | + } else { |
|
298 | + redirect(base_url()); |
|
299 | + } |
|
300 | + } |
|
301 | + |
|
302 | + function signup_success() { |
|
303 | + $this->load->view('view_signup_success'); |
|
304 | + } |
|
305 | + |
|
306 | + function signup_inactive() { |
|
307 | + $this->load->view('view_signup_inactive'); |
|
308 | + } |
|
309 | + |
|
310 | + function active($user_data, $success) { |
|
311 | + $data['user_data'] = $user_data; |
|
312 | + $data['user_data']['success'] = $success; |
|
313 | + |
|
314 | + if ($user_data['success']) { |
|
315 | 315 | $user_data['password'] = $this->common->decode($user_data['password']); |
316 | - $this->send_mail($user_data['id'], 'email_add_user', $user_data); |
|
317 | - } |
|
318 | - $this->load->view('view_signup_active', $data); |
|
319 | - } |
|
320 | - |
|
321 | - function forgotpassword() { |
|
322 | - $this->load->view('view_forgotpassword'); |
|
323 | - } |
|
324 | - |
|
325 | - function confirmpassword() { |
|
326 | - $email = $_POST['email']; |
|
327 | - unset($_POST['action']); |
|
328 | - $where = array('email' => $email); |
|
329 | - $this->db->where($where); |
|
330 | - $this->db->or_where('number', $email); |
|
331 | - $cnt_result = $this->db_model->countQuery("*", 'accounts', ""); |
|
332 | - if ( ! empty($email)) { |
|
333 | - $names = array('0', '1', '3'); |
|
334 | - $this->db->where_in('type', $names); |
|
335 | - $where_arr = array("email" => $email); |
|
336 | - $this->db->where($where_arr); |
|
316 | + $this->send_mail($user_data['id'], 'email_add_user', $user_data); |
|
317 | + } |
|
318 | + $this->load->view('view_signup_active', $data); |
|
319 | + } |
|
320 | + |
|
321 | + function forgotpassword() { |
|
322 | + $this->load->view('view_forgotpassword'); |
|
323 | + } |
|
324 | + |
|
325 | + function confirmpassword() { |
|
326 | + $email = $_POST['email']; |
|
327 | + unset($_POST['action']); |
|
328 | + $where = array('email' => $email); |
|
329 | + $this->db->where($where); |
|
330 | + $this->db->or_where('number', $email); |
|
331 | + $cnt_result = $this->db_model->countQuery("*", 'accounts', ""); |
|
332 | + if ( ! empty($email)) { |
|
333 | + $names = array('0', '1', '3'); |
|
334 | + $this->db->where_in('type', $names); |
|
335 | + $where_arr = array("email" => $email); |
|
336 | + $this->db->where($where_arr); |
|
337 | 337 | $this->db->or_where('number', $email); |
338 | - $acountdata = $this->db_model->getSelect("*", "accounts", ""); |
|
339 | - if ($acountdata->num_rows() > 0) { |
|
340 | - $user_data = $acountdata->result_array(); |
|
341 | - $user_data = $user_data[0]; |
|
342 | - if ($user_data['status'] > 0) { |
|
343 | - $data['error']['email'] = "<div id='error_mail' style='color:red; margin: 1% 22%; float: left;'>This account is not Active.</div>"; |
|
344 | - $this->load->view('view_forgotpassword', $data); |
|
345 | - exit; |
|
346 | - } |
|
347 | - } |
|
348 | - if ($acountdata->num_rows() == 0 && ! filter_var($email, FILTER_VALIDATE_EMAIL)) { |
|
349 | - if ( ! filter_var($email, FILTER_VALIDATE_EMAIL)) { |
|
350 | - $data['error']['email'] = "<div id='error_mail' style='color: red; margin: 2% 22%; float: left; width:100%;'>Please enter proper Username or Email.</div>"; |
|
351 | - |
|
352 | - $this->load->view('view_forgotpassword', $data); |
|
353 | - } else { |
|
354 | - $data['error']['email'] = "<div id='error_mail' style='color: red; margin: 2% 22%; float: left;width:100%;'>This Username or Email is not valid</div>"; |
|
355 | - |
|
356 | - $this->load->view('view_forgotpassword', $data); |
|
357 | - } |
|
358 | - } else if ($acountdata->num_rows() == 0) { |
|
359 | - $data['error']['email'] = "<div id='error_mail' style='color: red; margin: 2% 22%; float: left; width:100%;'>Please enter proper Username or Email.</div>"; |
|
360 | - $this->load->view('view_forgotpassword', $data); |
|
361 | - } else { |
|
362 | - $acountdata = $acountdata->result_array(); |
|
363 | - $user_data = $acountdata[0]; |
|
338 | + $acountdata = $this->db_model->getSelect("*", "accounts", ""); |
|
339 | + if ($acountdata->num_rows() > 0) { |
|
340 | + $user_data = $acountdata->result_array(); |
|
341 | + $user_data = $user_data[0]; |
|
342 | + if ($user_data['status'] > 0) { |
|
343 | + $data['error']['email'] = "<div id='error_mail' style='color:red; margin: 1% 22%; float: left;'>This account is not Active.</div>"; |
|
344 | + $this->load->view('view_forgotpassword', $data); |
|
345 | + exit; |
|
346 | + } |
|
347 | + } |
|
348 | + if ($acountdata->num_rows() == 0 && ! filter_var($email, FILTER_VALIDATE_EMAIL)) { |
|
349 | + if ( ! filter_var($email, FILTER_VALIDATE_EMAIL)) { |
|
350 | + $data['error']['email'] = "<div id='error_mail' style='color: red; margin: 2% 22%; float: left; width:100%;'>Please enter proper Username or Email.</div>"; |
|
351 | + |
|
352 | + $this->load->view('view_forgotpassword', $data); |
|
353 | + } else { |
|
354 | + $data['error']['email'] = "<div id='error_mail' style='color: red; margin: 2% 22%; float: left;width:100%;'>This Username or Email is not valid</div>"; |
|
355 | + |
|
356 | + $this->load->view('view_forgotpassword', $data); |
|
357 | + } |
|
358 | + } else if ($acountdata->num_rows() == 0) { |
|
359 | + $data['error']['email'] = "<div id='error_mail' style='color: red; margin: 2% 22%; float: left; width:100%;'>Please enter proper Username or Email.</div>"; |
|
360 | + $this->load->view('view_forgotpassword', $data); |
|
361 | + } else { |
|
362 | + $acountdata = $acountdata->result_array(); |
|
363 | + $user_data = $acountdata[0]; |
|
364 | 364 | |
365 | - $email = $this->encrypt->encode($user_data['email']); |
|
366 | - $activation = $this->encrypt->encode($user_data['number']); |
|
367 | - $message = base_url().'confirm_pass?email='.urlencode($email)."&key=".urlencode($activation); |
|
368 | - $user_data['confirm'] = $message; |
|
369 | - $where = array("email" => $user_data['email']); |
|
370 | - $data = array("pass_link_status" => 1); |
|
371 | - $this->db->where($where); |
|
372 | - $this->db->update('accounts', $data); |
|
373 | - $system_config = common_model::$global_config['system_config']; |
|
374 | - $balance = $system_config["balance"]; |
|
375 | - $this->send_mail($user_data['id'], 'email_forgot_confirmation', $user_data); |
|
376 | - $this->load->view('view_forgot_success'); |
|
377 | - } |
|
378 | - } else { |
|
379 | - redirect(base_url()); |
|
380 | - } |
|
381 | - } |
|
382 | - |
|
383 | - function confirm_pass() { |
|
384 | - $confirm_pass = $_GET; |
|
385 | - $accno = ''; |
|
386 | - $balance = ''; |
|
387 | - $email1 = $this->encrypt->decode($confirm_pass['email']); |
|
388 | - $success = $this->signup_model->check_user($accno, $email1, $balance); |
|
389 | - if ( ! empty($confirm_pass)) { |
|
390 | - $where_arr = array("email" => $email1, "status" => 0); |
|
391 | - $acountdata = $this->db_model->getSelect("*", "accounts", $where_arr); |
|
392 | - if ($acountdata->num_rows() > 0) { |
|
393 | - $acountdata = $acountdata->result_array(); |
|
394 | - $user_data = $acountdata[0]; |
|
395 | - $updateArr = array("pass_link_status" => 0); |
|
396 | - $this->db->where(array("email" => $email1)); |
|
397 | - $this->db->update("accounts", $updateArr); |
|
398 | - if ($user_data['pass_link_status'] == '0') { |
|
399 | - $user_data['success'] = $success; |
|
400 | - $data['user_data'] = $user_data; |
|
401 | - $this->active($user_data, $success); |
|
402 | - } else { |
|
403 | - $data['email'] = $_GET['email']; |
|
404 | - $this->load->view('view_confirmpassword', $data); |
|
405 | - } |
|
406 | - } |
|
407 | - } |
|
408 | - } |
|
409 | - |
|
410 | - function confirmpass() { |
|
411 | - $passwordconf = $_POST; |
|
412 | - $email1 = $this->encrypt->decode($passwordconf['email']); |
|
413 | - if ( ! empty($passwordconf)) { |
|
414 | - $acountdata = $this->db_model->getSelect("*", "accounts", array("email" => $email1)); |
|
415 | - //echo $this->db->last_query();exit; |
|
416 | - if ($acountdata->num_rows() > 0) { |
|
417 | - $acountdata = $acountdata->result_array(); |
|
418 | - $user_data = $acountdata[0]; |
|
419 | - } |
|
420 | - $user_data['password'] = $this->common->encode($passwordconf['password']); |
|
421 | - $updateArr = array("password" => $user_data['password']); |
|
422 | - $where_arr = array("email" => $email1, "status" => 0); |
|
423 | - $this->db->where($where_arr); |
|
424 | - $this->db->update("accounts", $updateArr); |
|
425 | - //$activation = $this->encrypt->encode($user_data['number']); |
|
426 | - $message = base_url(); |
|
427 | - $user_data['confirm'] = $message; |
|
428 | - $user_data['password'] = $passwordconf['password']; |
|
429 | - |
|
430 | - |
|
431 | - |
|
432 | - $system_config = common_model::$global_config['system_config']; |
|
433 | - $balance = $system_config["balance"]; |
|
434 | - |
|
435 | - $this->send_mail($user_data['id'], 'email_forgot_user', $user_data); |
|
436 | - |
|
437 | - $this->successpassword(); |
|
438 | - } |
|
439 | - } |
|
440 | - |
|
441 | - /** |
|
442 | - * @param string $temp_name |
|
443 | - */ |
|
444 | - function send_mail($account_id, $temp_name, $user_data) { |
|
365 | + $email = $this->encrypt->encode($user_data['email']); |
|
366 | + $activation = $this->encrypt->encode($user_data['number']); |
|
367 | + $message = base_url().'confirm_pass?email='.urlencode($email)."&key=".urlencode($activation); |
|
368 | + $user_data['confirm'] = $message; |
|
369 | + $where = array("email" => $user_data['email']); |
|
370 | + $data = array("pass_link_status" => 1); |
|
371 | + $this->db->where($where); |
|
372 | + $this->db->update('accounts', $data); |
|
373 | + $system_config = common_model::$global_config['system_config']; |
|
374 | + $balance = $system_config["balance"]; |
|
375 | + $this->send_mail($user_data['id'], 'email_forgot_confirmation', $user_data); |
|
376 | + $this->load->view('view_forgot_success'); |
|
377 | + } |
|
378 | + } else { |
|
379 | + redirect(base_url()); |
|
380 | + } |
|
381 | + } |
|
382 | + |
|
383 | + function confirm_pass() { |
|
384 | + $confirm_pass = $_GET; |
|
385 | + $accno = ''; |
|
386 | + $balance = ''; |
|
387 | + $email1 = $this->encrypt->decode($confirm_pass['email']); |
|
388 | + $success = $this->signup_model->check_user($accno, $email1, $balance); |
|
389 | + if ( ! empty($confirm_pass)) { |
|
390 | + $where_arr = array("email" => $email1, "status" => 0); |
|
391 | + $acountdata = $this->db_model->getSelect("*", "accounts", $where_arr); |
|
392 | + if ($acountdata->num_rows() > 0) { |
|
393 | + $acountdata = $acountdata->result_array(); |
|
394 | + $user_data = $acountdata[0]; |
|
395 | + $updateArr = array("pass_link_status" => 0); |
|
396 | + $this->db->where(array("email" => $email1)); |
|
397 | + $this->db->update("accounts", $updateArr); |
|
398 | + if ($user_data['pass_link_status'] == '0') { |
|
399 | + $user_data['success'] = $success; |
|
400 | + $data['user_data'] = $user_data; |
|
401 | + $this->active($user_data, $success); |
|
402 | + } else { |
|
403 | + $data['email'] = $_GET['email']; |
|
404 | + $this->load->view('view_confirmpassword', $data); |
|
405 | + } |
|
406 | + } |
|
407 | + } |
|
408 | + } |
|
409 | + |
|
410 | + function confirmpass() { |
|
411 | + $passwordconf = $_POST; |
|
412 | + $email1 = $this->encrypt->decode($passwordconf['email']); |
|
413 | + if ( ! empty($passwordconf)) { |
|
414 | + $acountdata = $this->db_model->getSelect("*", "accounts", array("email" => $email1)); |
|
415 | + //echo $this->db->last_query();exit; |
|
416 | + if ($acountdata->num_rows() > 0) { |
|
417 | + $acountdata = $acountdata->result_array(); |
|
418 | + $user_data = $acountdata[0]; |
|
419 | + } |
|
420 | + $user_data['password'] = $this->common->encode($passwordconf['password']); |
|
421 | + $updateArr = array("password" => $user_data['password']); |
|
422 | + $where_arr = array("email" => $email1, "status" => 0); |
|
423 | + $this->db->where($where_arr); |
|
424 | + $this->db->update("accounts", $updateArr); |
|
425 | + //$activation = $this->encrypt->encode($user_data['number']); |
|
426 | + $message = base_url(); |
|
427 | + $user_data['confirm'] = $message; |
|
428 | + $user_data['password'] = $passwordconf['password']; |
|
429 | + |
|
430 | + |
|
431 | + |
|
432 | + $system_config = common_model::$global_config['system_config']; |
|
433 | + $balance = $system_config["balance"]; |
|
434 | + |
|
435 | + $this->send_mail($user_data['id'], 'email_forgot_user', $user_data); |
|
436 | + |
|
437 | + $this->successpassword(); |
|
438 | + } |
|
439 | + } |
|
440 | + |
|
441 | + /** |
|
442 | + * @param string $temp_name |
|
443 | + */ |
|
444 | + function send_mail($account_id, $temp_name, $user_data) { |
|
445 | 445 | |
446 | 446 | |
447 | - $system_config = common_model::$global_config['system_config']; |
|
448 | - //$screen_path = getcwd()."/cron"; |
|
449 | - //$screen_filename = "Email_Broadcast_".strtotime('now'); |
|
450 | - //$command = "cd ".$screen_path." && /usr/bin/screen -d -m -S $screen_filename php cron.php BroadcastEmail"; |
|
451 | - //exec($command); |
|
447 | + $system_config = common_model::$global_config['system_config']; |
|
448 | + //$screen_path = getcwd()."/cron"; |
|
449 | + //$screen_filename = "Email_Broadcast_".strtotime('now'); |
|
450 | + //$command = "cd ".$screen_path." && /usr/bin/screen -d -m -S $screen_filename php cron.php BroadcastEmail"; |
|
451 | + //exec($command); |
|
452 | 452 | |
453 | 453 | |
454 | 454 | |
455 | 455 | |
456 | - $where = array('name' => $temp_name); |
|
457 | - $EmailTemplate = $this->db_model->getSelect("*", "default_templates", $where); |
|
458 | - $reseller_id = ($user_data['reseller_id'] > 0) ? $user_data['reseller_id'] : 1; |
|
459 | - $where = "accountid IN ('".$reseller_id."','1')"; |
|
460 | - $this->db->where($where); |
|
461 | - $this->db->select('*'); |
|
462 | - $this->db->order_by('accountid', 'desc'); |
|
463 | - $this->db->limit(1); |
|
464 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
465 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
466 | - $company_email = $invoiceconf['emailaddress']; |
|
467 | - $company_website = $invoiceconf["website"]; |
|
468 | - $company_name = $invoiceconf["company_name"]; |
|
456 | + $where = array('name' => $temp_name); |
|
457 | + $EmailTemplate = $this->db_model->getSelect("*", "default_templates", $where); |
|
458 | + $reseller_id = ($user_data['reseller_id'] > 0) ? $user_data['reseller_id'] : 1; |
|
459 | + $where = "accountid IN ('".$reseller_id."','1')"; |
|
460 | + $this->db->where($where); |
|
461 | + $this->db->select('*'); |
|
462 | + $this->db->order_by('accountid', 'desc'); |
|
463 | + $this->db->limit(1); |
|
464 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
465 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
466 | + $company_email = $invoiceconf['emailaddress']; |
|
467 | + $company_website = $invoiceconf["website"]; |
|
468 | + $company_name = $invoiceconf["company_name"]; |
|
469 | 469 | |
470 | - $TemplateData = array(); |
|
470 | + $TemplateData = array(); |
|
471 | 471 | |
472 | 472 | |
473 | - foreach ($EmailTemplate->result_array() as $value) { |
|
474 | - $TemplateData = $value; |
|
475 | - $TemplateData['subject'] = str_replace('#NAME#', $user_data['first_name']." ".$user_data['last_name'], $TemplateData['subject']); |
|
476 | - $TemplateData['template'] = str_replace('#NAME#', $user_data['first_name']." ".$user_data['last_name'], $TemplateData['template']); |
|
477 | - $TemplateData['template'] = str_replace('#NUMBER#', $user_data['number'], $TemplateData['template']); |
|
478 | - $TemplateData['template'] = str_replace('#PASSWORD#', $user_data['password'], $TemplateData['template']); |
|
479 | - $TemplateData['template'] = str_replace('#COMPANY_WEBSITE#', $company_website, $TemplateData['template']); |
|
480 | - $TemplateData['template'] = str_replace('#LINK#', $user_data['confirm'], $TemplateData['template']); |
|
481 | - $TemplateData['template'] = str_replace('#COMPANY_EMAIL#', $company_email, $TemplateData['template']); |
|
482 | - $TemplateData['template'] = str_replace('#COMPANY_NAME#', $company_name, $TemplateData['template']); |
|
483 | - } |
|
484 | - $email_array = array('accountid' => $account_id, |
|
485 | - 'subject' => $TemplateData['subject'], |
|
486 | - 'body' => $TemplateData['template'], |
|
487 | - 'from' => $invoiceconf['emailaddress'], |
|
488 | - 'to' => $user_data['email'], |
|
489 | - 'status' => "1", |
|
490 | - //'attachment'=> $Filenm, |
|
491 | - 'template' => ''); |
|
492 | - //echo "<pre>"; print_r($TemplateData); exit; |
|
493 | - $this->db->insert("mail_details", $email_array); |
|
494 | - return true; |
|
495 | - } |
|
496 | - |
|
497 | - function successpassword() { |
|
498 | - $this->load->view('view_successpassword'); |
|
499 | - } |
|
473 | + foreach ($EmailTemplate->result_array() as $value) { |
|
474 | + $TemplateData = $value; |
|
475 | + $TemplateData['subject'] = str_replace('#NAME#', $user_data['first_name']." ".$user_data['last_name'], $TemplateData['subject']); |
|
476 | + $TemplateData['template'] = str_replace('#NAME#', $user_data['first_name']." ".$user_data['last_name'], $TemplateData['template']); |
|
477 | + $TemplateData['template'] = str_replace('#NUMBER#', $user_data['number'], $TemplateData['template']); |
|
478 | + $TemplateData['template'] = str_replace('#PASSWORD#', $user_data['password'], $TemplateData['template']); |
|
479 | + $TemplateData['template'] = str_replace('#COMPANY_WEBSITE#', $company_website, $TemplateData['template']); |
|
480 | + $TemplateData['template'] = str_replace('#LINK#', $user_data['confirm'], $TemplateData['template']); |
|
481 | + $TemplateData['template'] = str_replace('#COMPANY_EMAIL#', $company_email, $TemplateData['template']); |
|
482 | + $TemplateData['template'] = str_replace('#COMPANY_NAME#', $company_name, $TemplateData['template']); |
|
483 | + } |
|
484 | + $email_array = array('accountid' => $account_id, |
|
485 | + 'subject' => $TemplateData['subject'], |
|
486 | + 'body' => $TemplateData['template'], |
|
487 | + 'from' => $invoiceconf['emailaddress'], |
|
488 | + 'to' => $user_data['email'], |
|
489 | + 'status' => "1", |
|
490 | + //'attachment'=> $Filenm, |
|
491 | + 'template' => ''); |
|
492 | + //echo "<pre>"; print_r($TemplateData); exit; |
|
493 | + $this->db->insert("mail_details", $email_array); |
|
494 | + return true; |
|
495 | + } |
|
496 | + |
|
497 | + function successpassword() { |
|
498 | + $this->load->view('view_successpassword'); |
|
499 | + } |
|
500 | 500 | |
501 | 501 | } |
502 | 502 | ?> |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Forgot Password | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | <div class="row"> |
58 | 58 | <div class="col-md-4 col-md-offset-4"> |
59 | 59 | <span class="login_error"> |
60 | - <?php if (isset($astpp_notification)){ ?> |
|
60 | + <?php if (isset($astpp_notification)) { ?> |
|
61 | 61 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
62 | - <?php }else{ |
|
62 | + <?php } else { |
|
63 | 63 | echo " "; |
64 | 64 | } ?> |
65 | 65 | </span> |
@@ -75,18 +75,18 @@ discard block |
||
75 | 75 | <!-- Header Start--> |
76 | 76 | <div class="col-md-12"> |
77 | 77 | <?php |
78 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
78 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
79 | 79 | $logo = $this->session->userdata['user_logo']; |
80 | - }else{ |
|
80 | + } else { |
|
81 | 81 | $logo = 'logo.png'; |
82 | 82 | } |
83 | 83 | |
84 | 84 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
85 | 85 | <a class="col-md-8" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
86 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
86 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
87 | 87 | <? } else {?> |
88 | 88 | <a class="col-md-8" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
89 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
89 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
90 | 90 | <? }?> |
91 | 91 | |
92 | 92 | </a> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Forgot Password | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | <span class="login_error"> |
60 | 60 | <?php if (isset($astpp_notification)){ ?> |
61 | 61 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
62 | - <?php }else{ |
|
62 | + <?php } else{ |
|
63 | 63 | echo " "; |
64 | 64 | } ?> |
65 | 65 | </span> |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | <?php |
78 | 78 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
79 | 79 | $logo = $this->session->userdata['user_logo']; |
80 | - }else{ |
|
80 | + } else{ |
|
81 | 81 | $logo = 'logo.png'; |
82 | 82 | } |
83 | 83 | |
@@ -104,10 +104,18 @@ discard block |
||
104 | 104 | <div class="input-group col-md-12 margin-t-15 padding-r-32 padding-l-32"> |
105 | 105 | <span class="input-group-addon"><i class="fa fa-envelope"></i></span> |
106 | 106 | |
107 | - <input type="text" class="form-control" id="email" name="email" placeholder="User Name OR Email" value = "<?php if (isset($value['email'])) echo $value['email']; else ''; ?>" style="height:40px;"> |
|
107 | + <input type="text" class="form-control" id="email" name="email" placeholder="User Name OR Email" value = "<?php if (isset($value['email'])) { |
|
108 | + echo $value['email']; |
|
109 | +} else { |
|
110 | + ''; |
|
111 | +} |
|
112 | +?>" style="height:40px;"> |
|
108 | 113 | </div> |
109 | 114 | |
110 | - <?php if (isset($error['email'])) echo $error['email']; ?> |
|
115 | + <?php if (isset($error['email'])) { |
|
116 | + echo $error['email']; |
|
117 | +} |
|
118 | +?> |
|
111 | 119 | <div style="width: 97.67%; float: left;text-align: left; margin: 2% 22%;"> |
112 | 120 | <span id="e_name" style="color:red;"> </span> |
113 | 121 | </div> |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Forgot Password | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -71,18 +71,18 @@ discard block |
||
71 | 71 | |
72 | 72 | |
73 | 73 | <?php |
74 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
74 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
75 | 75 | $logo = $this->session->userdata['user_logo']; |
76 | - }else{ |
|
76 | + } else { |
|
77 | 77 | $logo = 'logo.png'; |
78 | 78 | } |
79 | 79 | |
80 | 80 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
81 | 81 | <a class="col-md-12" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
82 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
82 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
83 | 83 | <? } else {?> |
84 | 84 | <a class="col-md-12" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
85 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
85 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
86 | 86 | <? }?> |
87 | 87 | </a> |
88 | 88 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Forgot Password | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <?php |
74 | 74 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
75 | 75 | $logo = $this->session->userdata['user_logo']; |
76 | - }else{ |
|
76 | + } else{ |
|
77 | 77 | $logo = 'logo.png'; |
78 | 78 | } |
79 | 79 |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Forgot Password | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -69,18 +69,18 @@ discard block |
||
69 | 69 | <div class="w-box dark sign-in-wr box_shadow margin-b-10"> |
70 | 70 | <div class="col-md-12 no-padding"> |
71 | 71 | <?php |
72 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
72 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
73 | 73 | $logo = $this->session->userdata['user_logo']; |
74 | - }else{ |
|
74 | + } else { |
|
75 | 75 | $logo = 'logo.png'; |
76 | 76 | } |
77 | 77 | |
78 | 78 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
79 | 79 | <a class="col-md-9" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
80 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
80 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
81 | 81 | <? } else {?> |
82 | 82 | <a class="col-md-9" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
83 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
83 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
84 | 84 | <? }?> |
85 | 85 | |
86 | 86 | </a> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Forgot Password | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Forgot Password | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | <?php |
72 | 72 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
73 | 73 | $logo = $this->session->userdata['user_logo']; |
74 | - }else{ |
|
74 | + } else{ |
|
75 | 75 | $logo = 'logo.png'; |
76 | 76 | } |
77 | 77 | |
@@ -103,16 +103,32 @@ discard block |
||
103 | 103 | <div class="col-md-12 margin-t-20 padding-r-32 padding-l-32"> |
104 | 104 | <label class="col-md-5 no-padding" style="text-align: left;">Password</label> |
105 | 105 | <div class="col-md-7 no-padding"> |
106 | -<input type="text" name="password" required value="<?php if (isset($value['password'])) echo $value['password']; else ''; ?>" id="password" size="15" maxlength="40" class="form-control" /> |
|
107 | -<div class='error-style col-md-12 no-padding' style='color:red; font-size: 13px;' id="une"><?php if (isset($error['password'])) echo $error['password']; ?></div> |
|
106 | +<input type="text" name="password" required value="<?php if (isset($value['password'])) { |
|
107 | + echo $value['password']; |
|
108 | +} else { |
|
109 | + ''; |
|
110 | +} |
|
111 | +?>" id="password" size="15" maxlength="40" class="form-control" /> |
|
112 | +<div class='error-style col-md-12 no-padding' style='color:red; font-size: 13px;' id="une"><?php if (isset($error['password'])) { |
|
113 | + echo $error['password']; |
|
114 | +} |
|
115 | +?></div> |
|
108 | 116 | </div> |
109 | 117 | </div> |
110 | 118 | |
111 | 119 | <div class="col-md-12 margin-t-10 padding-r-32 padding-l-32"> |
112 | 120 | <label class="col-md-5 no-padding" style="text-align: left;">Confirm Password</label> |
113 | 121 | <div class="col-md-7 no-padding"> |
114 | -<input type="text" name="confirmpassword" required value="<?php if (isset($value['confirm_password'])) echo $value['confirm_password']; else ''; ?>" id="confirm_password" size="15" maxlength="40" class="form-control" /> |
|
115 | -<div class='error-style col-md-12' style='color:red; font-size: 13px;' id="conpas"><?php if (isset($error['confirm_password'])) echo $error['confirm_password']; ?></div> |
|
122 | +<input type="text" name="confirmpassword" required value="<?php if (isset($value['confirm_password'])) { |
|
123 | + echo $value['confirm_password']; |
|
124 | +} else { |
|
125 | + ''; |
|
126 | +} |
|
127 | +?>" id="confirm_password" size="15" maxlength="40" class="form-control" /> |
|
128 | +<div class='error-style col-md-12' style='color:red; font-size: 13px;' id="conpas"><?php if (isset($error['confirm_password'])) { |
|
129 | + echo $error['confirm_password']; |
|
130 | +} |
|
131 | +?></div> |
|
116 | 132 | </div> |
117 | 133 | </div> |
118 | 134 |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -70,18 +70,18 @@ discard block |
||
70 | 70 | <div class="w-box dark sign-in-wr box_shadow margin-b-10"> |
71 | 71 | <div class="col-md-12 no-padding"> |
72 | 72 | <?php |
73 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
73 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
74 | 74 | $logo = $this->session->userdata['user_logo']; |
75 | - }else{ |
|
75 | + } else { |
|
76 | 76 | $logo = 'logo.png'; |
77 | 77 | } |
78 | 78 | |
79 | 79 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
80 | 80 | <a class="col-md-12" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
81 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
81 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
82 | 82 | <? } else {?> |
83 | 83 | <a class="col-md-12" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
84 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
84 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
85 | 85 | <? }?> |
86 | 86 | </a> |
87 | 87 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | <?php |
73 | 73 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
74 | 74 | $logo = $this->session->userdata['user_logo']; |
75 | - }else{ |
|
75 | + } else{ |
|
76 | 76 | $logo = 'logo.png'; |
77 | 77 | } |
78 | 78 |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | <div class="row"> |
54 | 54 | |
55 | 55 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
56 | - <?php if (isset($astpp_notification)){ ?> |
|
56 | + <?php if (isset($astpp_notification)) { ?> |
|
57 | 57 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
58 | - <?php }else{ |
|
58 | + <?php } else { |
|
59 | 59 | echo " "; |
60 | 60 | } |
61 | 61 | $astpp_err_msg = $this->session->flashdata('astpp_signupmsg'); |
@@ -76,18 +76,18 @@ discard block |
||
76 | 76 | <div class=""> |
77 | 77 | <div class="col-md-9"> |
78 | 78 | <?php |
79 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
79 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
80 | 80 | $logo = $this->session->userdata['user_logo']; |
81 | - }else{ |
|
81 | + } else { |
|
82 | 82 | $logo = 'logo.png'; |
83 | 83 | } |
84 | 84 | |
85 | 85 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
86 | 86 | <a class="col-md-12" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
87 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
87 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
88 | 88 | <? } else {?> |
89 | 89 | <a class="col-md-12" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
90 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
90 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
91 | 91 | <? }?> |
92 | 92 | </a> |
93 | 93 | </div> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
56 | 56 | <?php if (isset($astpp_notification)){ ?> |
57 | 57 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
58 | - <?php }else{ |
|
58 | + <?php } else{ |
|
59 | 59 | echo " "; |
60 | 60 | } |
61 | 61 | $astpp_err_msg = $this->session->flashdata('astpp_signupmsg'); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | <?php |
79 | 79 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
80 | 80 | $logo = $this->session->userdata['user_logo']; |
81 | - }else{ |
|
81 | + } else{ |
|
82 | 82 | $logo = 'logo.png'; |
83 | 83 | } |
84 | 84 |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -113,9 +113,9 @@ discard block |
||
113 | 113 | <div class="row"> |
114 | 114 | <div class="col-md-4 col-md-offset-4"> |
115 | 115 | <span class="login_error"> |
116 | - <?php if (isset($astpp_notification)){ ?> |
|
116 | + <?php if (isset($astpp_notification)) { ?> |
|
117 | 117 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
118 | - <?php }else{ |
|
118 | + <?php } else { |
|
119 | 119 | echo " "; |
120 | 120 | } ?> |
121 | 121 | </span> |
@@ -132,18 +132,18 @@ discard block |
||
132 | 132 | <!-- Header Start--> |
133 | 133 | <div class="col-md-12"> |
134 | 134 | <?php |
135 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
135 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
136 | 136 | $logo = $this->session->userdata['user_logo']; |
137 | - }else{ |
|
137 | + } else { |
|
138 | 138 | $logo = 'logo.png'; |
139 | 139 | } |
140 | 140 | |
141 | 141 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
142 | 142 | <a class="col-md-10" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
143 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
143 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
144 | 144 | <? } else {?> |
145 | 145 | <a class="col-md-10" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
146 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
146 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
147 | 147 | <? }?> |
148 | 148 | </a> |
149 | 149 | <div class="col-md-2"> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | <span class="login_error"> |
116 | 116 | <?php if (isset($astpp_notification)){ ?> |
117 | 117 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
118 | - <?php }else{ |
|
118 | + <?php } else{ |
|
119 | 119 | echo " "; |
120 | 120 | } ?> |
121 | 121 | </span> |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | <?php |
135 | 135 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
136 | 136 | $logo = $this->session->userdata['user_logo']; |
137 | - }else{ |
|
137 | + } else{ |
|
138 | 138 | $logo = 'logo.png'; |
139 | 139 | } |
140 | 140 |
@@ -6,12 +6,12 @@ |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | - $this->db->select('*'); |
|
11 | - $this->db->order_by('accountid', 'desc'); |
|
12 | - $this->db->limit(1); |
|
13 | - $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | - $invoiceconf = (array)$invoiceconf->first_row(); |
|
9 | + $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
10 | + $this->db->select('*'); |
|
11 | + $this->db->order_by('accountid', 'desc'); |
|
12 | + $this->db->limit(1); |
|
13 | + $invoiceconf = $this->db->get('invoice_conf'); |
|
14 | + $invoiceconf = (array)$invoiceconf->first_row(); |
|
15 | 15 | if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
@@ -6,17 +6,17 @@ discard block |
||
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | 7 | <title> |
8 | 8 | <?php |
9 | - $this->db->where('domain',$_SERVER['HTTP_HOST']); |
|
9 | + $this->db->where('domain', $_SERVER['HTTP_HOST']); |
|
10 | 10 | $this->db->select('*'); |
11 | 11 | $this->db->order_by('accountid', 'desc'); |
12 | 12 | $this->db->limit(1); |
13 | 13 | $invoiceconf = $this->db->get('invoice_conf'); |
14 | 14 | $invoiceconf = (array)$invoiceconf->first_row(); |
15 | - if(isset($invoiceconf['website_title']) && $invoiceconf['website_title']!='') { |
|
15 | + if (isset($invoiceconf['website_title']) && $invoiceconf['website_title'] != '') { |
|
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else { |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | <div class="row"> |
54 | 54 | |
55 | 55 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
56 | - <?php if (isset($astpp_notification)){ ?> |
|
56 | + <?php if (isset($astpp_notification)) { ?> |
|
57 | 57 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
58 | - <?php }else{ |
|
58 | + <?php } else { |
|
59 | 59 | echo " "; |
60 | 60 | } |
61 | 61 | $astpp_err_msg = $this->session->flashdata('astpp_signupmsg'); |
@@ -75,18 +75,18 @@ discard block |
||
75 | 75 | |
76 | 76 | |
77 | 77 | <?php |
78 | - if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
|
78 | + if (isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != "") { |
|
79 | 79 | $logo = $this->session->userdata['user_logo']; |
80 | - }else{ |
|
80 | + } else { |
|
81 | 81 | $logo = 'logo.png'; |
82 | 82 | } |
83 | 83 | |
84 | 84 | if ($this->session->userdata('userlevel_logintype') != '0') {?> |
85 | 85 | <a class="col-md-12" style="padding:0px 0px 10px 0px" href="<?php echo base_url(); ?>"> |
86 | - <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
86 | + <img style="height: 44px; width:216px;" id="logo" alt="dashboard" src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
87 | 87 | <? } else {?> |
88 | 88 | <a class="col-md-12" style="padding:0px 0px 20px 0px" href="<?php echo base_url(); ?>"> |
89 | - <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo;?>"> |
|
89 | + <img style="height: 44px; width:216px;" id="logo" title='ASTPP - Open Source Voip Billing Solution' alt='ASTPP - Open Source Voip Billing Solution' src="<?php echo base_url(); ?>upload/<?php echo$logo; ?>"> |
|
90 | 90 | <? }?> |
91 | 91 | </a> |
92 | 92 | <div class="col-md-12 no-padding"></div> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | ?> |
17 | 17 | Signup | <?php echo $invoiceconf['website_title']; ?> |
18 | 18 | <?php |
19 | - }else{ |
|
19 | + } else{ |
|
20 | 20 | ?> |
21 | 21 | Signup | ASTPP - Open Source Voip Billing Solution |
22 | 22 | <?php |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
56 | 56 | <?php if (isset($astpp_notification)){ ?> |
57 | 57 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
58 | - <?php }else{ |
|
58 | + <?php } else{ |
|
59 | 59 | echo " "; |
60 | 60 | } |
61 | 61 | $astpp_err_msg = $this->session->flashdata('astpp_signupmsg'); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | <?php |
78 | 78 | if(isset($this->session->userdata['user_logo']) && $this->session->userdata['user_logo'] != ""){ |
79 | 79 | $logo = $this->session->userdata['user_logo']; |
80 | - }else{ |
|
80 | + } else{ |
|
81 | 81 | $logo = 'logo.png'; |
82 | 82 | } |
83 | 83 |