@@ 742-747 (lines=6) @@ | ||
739 | unset($sipprofile_data['sipstatus']); |
|
740 | $insert_data=$sipprofile_data; |
|
741 | ||
742 | if($sipprofile_data['name'] == '' || $sipprofile_data['sip_ip'] =='' || $sipprofile_data['sip_port'] =='') |
|
743 | { |
|
744 | $this->session->set_flashdata('astpp_notification', 'Please enter All profile value!'); |
|
745 | redirect(base_url() . 'freeswitch/fssipprofile_add/'); |
|
746 | exit; |
|
747 | } |
|
748 | if(preg_match('/\s/',$sipprofile_data['name'])) |
|
749 | { |
|
750 | $this->session->set_flashdata('astpp_notification', 'SIP Profile name must not have any space!'); |
@@ 1397-1400 (lines=4) @@ | ||
1394 | if($login_type == -1 || $login_type == 2 ||$login_type == 1 || $login_type == 4){ |
|
1395 | if($this->input->post()){ |
|
1396 | $data = $this->input->post(); |
|
1397 | if($data['accountid'] == '' || $data['accountid'] == '-Select-' ){ |
|
1398 | $this->session->set_flashdata('astpp_notification', 'Please select accounts'); |
|
1399 | redirect(base_url()."invoices/invoice_list/"); |
|
1400 | } |
|
1401 | if(!empty($data)){ |
|
1402 | if(isset($data['notes']) && $data['notes'] !=''){ |
|
1403 | $this->session->set_userdata('invoice_note',$data['notes']); |