load->helper('home'); $this->load->helper('subpage'); $this->load->model('links_model'); $this->load->model('news_model'); $this->load->model('course_model'); $this->load->model('meeting_model'); // Fetch Large Banners (from "Homepage Banners") $this->db->select("*"); $this->db->from("Banner"); $this->db->where("Visible", "1"); $this->db->where("Position", "5"); $this->db->order_by("id", "DESC"); $banners = $this->db->get()->result_array(); // Fetch "Quick Links" $linkQ = $this->links_model->getQuicklinks(); // Fetch "News" $newsQ = $this->news_model->getFeatured(1,2); // Fetch "Featured Trainings" $trainingQ = $this->course_model->featuredTraining(); //mail('david@wedu.com', 'PDRMA Home Training Array', print_r($trainingQ, true), "From: pdrma@wedu.colo\r\n"); // Fetch "Upcoming Meetings" $meetingQ = $this->meeting_model->featuredMeetings(); // Fetch Callout Boxes (from "Homepage Banners") $this->db->select("*"); $this->db->from("Banner"); $this->db->where("Visible", "1"); $this->db->where_in("Position", array("1", "2", "3", "4")); $this->db->order_by("Position", "ASC"); $calloutQ = $this->db->get()->result_array(); if (sizeof($calloutQ)) { // Sort these into an array with position as the key; sets up the display calls in /views/home.php foreach ($calloutQ as $co) { $callouts[intval($co['Position'])] = $co['id']; } } $data = array( 'meta_description' => 'Managing risks and promoting wellness for more than 150 Illinois Park Districts, Special Recreation Associations, Forest Preserve Districts and Conservation Districts since 1984.', 'onload' => '', 'banners' => $banners, 'links' => $linkQ, 'news' => $newsQ, 'trainings' => $trainingQ, 'meetings' => $meetingQ, 'callouts' => $callouts ); $this->load->view('templates/default_top'); $this->load->view('home', $data); $this->load->view('templates/default_bottom'); } function meeting_popup($meetingId) { $this->load->model('meeting_model'); if (is_numeric($meetingId)) { $meetingQ = $this->meeting_model->meetingInfo($meetingId); $data = array( 'meeting' => $meetingQ ); $this->load->view('subviews/meeting_popup', $data); } } function banner_image($bannerId) { $errors = false; if (!is_numeric($bannerId)) { $errors = true; } $this->db->select("*"); $this->db->from("Banner"); $this->db->where("id", $bannerId); $bannerQ = $this->db->get()->result_array(); if (sizeof($bannerQ) < 1) { $errors = true; } if (!$errors) { $imagePath = $this->config->item("wedu_uploadpath")."/".$bannerQ[0]['Image1']; $finfo = @finfo_open(FILEINFO_MIME_TYPE); if ($finfo != FALSE) { $mime = @finfo_file($finfo, $imagePath); finfo_close($finfo); header("Content-Type:".$mime); echo file_get_contents($imagePath); exit; } // $mime = mime_content_type($imagePath); // header("Content-Type:image/jpeg"); // header('Content-Disposition: inline; filename="'.$bannerQ[0]['Image1'].'"'); // echo file_get_contents($imagePath); // exit; } } function callout_image($bannerId, $frameNum) { $errors = false; if (!is_numeric($bannerId)) { $errors = true; } $this->db->select("*"); $this->db->from("Banner"); $this->db->where("id", $bannerId); $bannerQ = $this->db->get()->result_array(); if (sizeof($bannerQ) < 1) { $errors = true; } if (!$errors) { $imagePath = $this->config->item("wedu_uploadpath")."/".$bannerQ[0]['Image'.$frameNum]; $finfo = @finfo_open(FILEINFO_MIME_TYPE); if ($finfo != FALSE) { $mime = @finfo_file($finfo, $imagePath); finfo_close($finfo); header("Content-Type:".$mime); echo file_get_contents($imagePath); exit; } /* $mime = mime_content_type($imagePath); header("Content-Type:$mime"); echo file_get_contents($imagePath); exit; */ } } } /* End of file home.php */ /* Location: ./system/application/controllers/home.php */ 404 Page Not Found

404 Page Not Found

The page you requested was not found.