Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$this->load->view('welcome');
}
public function register()
{
$this->load->view('register');
}
public function create_account(){
$p=trim(str_replace(' ' ,"",$this->input->post('phone')));
$s=str_replace('-' ,"", $p);
$s=str_replace('(' ,"", $s);
$s=str_replace(')' ,"", $s);
$t=substr($s, -9);
$phone='255'.$t;
$data_ary = array(
'name' => $this->input->post('name'),
'nida' => $this->input->post('nida'),
'phone' => $phone,
'email' => $this->input->post('email'),
'password' => md5($this->input->post('password')),
'password_recover' => $this->input->post('password'),
'user_type' => 'owner'
);
$data_ary = $this->security->xss_clean($data_ary);
$this->db->insert('owners',$data_ary);
$id= $this->db->insert_id();
$data = array(
'id' => $id,
'name' => $this->input->post('first_name'),
'nida' => $this->input->post('nida'),
'phone' => $this->input->post('phone'),
'email' => $this->input->post('email'),
'user_type' => 'owner'
);
$this->session->set_userdata($data);
redirect('Owners');
}
}