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
]+>/i',$htmlContent, $imgTags); for ($i = 0; $i < count($imgTags[0]); $i++) { // get the source string preg_match('/src="([^"]+)/i',$imgTags[0][$i], $imgage); // remove opening 'src=' tag, can`t get the regex right $origImageSrc[] = str_ireplace( 'src="', '', $imgage[0]); } // will output all your img src's within the html string if(isset($origImageSrc[0])){ return $origImageSrc[0]; }else{ return base_url('assets/default.jpg'); } } } public function index() { $this->load->view('includes/header'); $this->load->view('welcome_message'); $this->load->view('includes/footer'); } public function about() { $this->load->view('includes/header'); $this->load->view('about'); $this->load->view('includes/footer'); } public function academics() { $this->load->view('includes/header'); $this->load->view('academics'); $this->load->view('includes/footer'); } public function gallery() { $this->load->view('includes/header'); $this->load->view('gallery'); $this->load->view('includes/footer'); } public function downloads() { $this->load->view('includes/header'); $this->load->view('downloads'); $this->load->view('includes/footer'); } public function news_and_events() { $this->load->view('includes/header'); $this->load->view('news_and_event'); $this->load->view('includes/footer'); } public function contacts() { $this->load->view('includes/header'); $this->load->view('contacts'); $this->load->view('includes/footer'); } public function message() { $this->load->view('includes/header'); $this->load->view('message'); $this->load->view('includes/footer'); } public function send_email(){ if($_POST){ $name = $this->input->post('name'); $email = $this->input->post('email'); $phone = $this->input->post('phone'); $subject = $this->input->post('subject'); $message = $this->input->post('message'); $message = "From: ".$name."\r\n Email: ".$email."\r\n Phone: ".$phone."\r\n \r\n ".$message; $to = 'felixalex05@gmail.com'; $headers = 'From: contacts@cesd.or.tz' . "\r\n" . 'Reply-To: fmwampoma@gmail.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if(mail($to, $subject, $message, $headers)){ redirect('Welcome/contacts?sent#response'); }else{ redirect('Welcome/contacts/fail#response'); } } } public function download(){ $i=0; $id = base64_decode($_REQUEST['id']); $file = './admin/images/documents/'.$id; header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($file).'"'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); readfile($file); exit; } }