equal
deleted
inserted
replaced
11 parent::Controller(); |
11 parent::Controller(); |
12 $this->load->library('form_validation'); |
12 $this->load->library('form_validation'); |
13 $this->load->library('aulib'); |
13 $this->load->library('aulib'); |
14 $this->load->library('parser'); |
14 $this->load->library('parser'); |
15 $this->load->helper('form'); |
15 $this->load->helper('form'); |
16 $this->load->language('arbo','rusa'); |
16 $this->load->language('arbo','kataluna'); |
17 $this->load->helper('language'); |
17 $this->load->helper('language'); |
18 $this->load->model('opiniarbo_model'); |
18 $this->load->model('opiniarbo_model'); |
19 } |
19 } |
20 |
20 |
21 function index() |
21 function index() |
25 $this->mainassert = $this->uri->segment(3, 0); |
25 $this->mainassert = $this->uri->segment(3, 0); |
26 $this->userid = $this->aulib->getSessionId(); |
26 $this->userid = $this->aulib->getSessionId(); |
27 $this->userid2 = $this->uri->segment(4, 0); |
27 $this->userid2 = $this->uri->segment(4, 0); |
28 |
28 |
29 // If a form told to update userid2, do it |
29 // If a form told to update userid2, do it |
30 if ($this->input->post('other_user')) |
30 // Checking for a ==FALSE, not entering when ==0. |
|
31 if (!is_bool($this->input->post('other_user'))) |
31 { |
32 { |
32 $this->userid2 = $this->input->post('other_user'); |
33 $this->userid2 = $this->input->post('other_user'); |
33 } |
34 } |
|
35 echo $this->userid2; |
34 $this->load->view('page_head'); |
36 $this->load->view('page_head'); |
35 $this->_show_users(); |
37 $this->_show_users(); |
36 if ($this->userid == 0) |
38 if ($this->userid == 0) |
37 { |
39 { |
38 // No user logged in |
40 // No user logged in |