404 Page Not Found
The page you requested was not found.
if (!defined('BASEPATH')) exit('No direct script access allowed!'); class Home extends MX_Controller { public function __construct() { parent::__construct(); if (!$this->session->userdata('lang')) { $this->session->set_userdata(Array('lang' => $this->mylib->active_language())); } } public function index() { $data = Array(); $this->lang->load('content', $this->session->userdata('lang')); $data['content'] = $this->mylib->get_list('menu', '*', Array('module' => 'home', 'language' => $this->session->userdata('lang')), 'id', '1', ''); $data['HEADER'] = Modules::run('header/index'); $data['FOOTER'] = Modules::run('footer/index'); $data['FOOTERINFO'] = Modules::run('footerinfo/index'); $data['slides'] = $this->mylib->get_list('slides', '*', Array('status' => '1', 'language' => $this->session->userdata('lang')), 'id', '', ''); $data['news'] = $this->mylib->get_list('news', '*', Array('status' => '1', 'language' => $this->session->userdata('lang')), 'id DESC', '', ''); $data['events'] = $this->mylib->get_list('events', '*', Array('status' => '1', 'language' => $this->session->userdata('lang')), 'id DESC', '', ''); $counter = $this->mylib->get_list('counter', 'date, status', Array(), 'id', '', ''); $data['durum'] = $counter[0]->status; list($yil, $ay, $gun) = explode('-', $counter[0]->date); $data['kalan_gun'] = $this->_farkbul("$gun-$ay-$yil", date('d-m-Y'), '-'); //echo $this->session->userdata('author'); $this->load->view('home_v', $data); } public function login() { if ($this->input->post()) { $email = $this->input->post('email', TRUE); $password = $this->input->post('password', TRUE); $control1 = $this->mylib->total('corresponding_authors', Array('status' => '1','corresponding_email' => $email, 'corresponding_password' => $password)); $control2 = $this->mylib->total('online_abstract_submission_forms_other', Array('email' => $email, 'password' => $password)); if ($control1 > 0) { $user = $this->mylib->get_list('corresponding_authors', 'id, corresponding_name, corresponding_surname', Array('corresponding_email' => $email, 'corresponding_password' => $password), 'id', '', ''); $this->session->set_userdata( Array( 'giris' => 'on', 'id' => $user[0]->id, 'name' => $user[0]->corresponding_name, 'surname' => $user[0]->corresponding_surname, 'author' => 'TRUE', 'status' => '1' ) ); echo ''; } if ($control2 > 0) { $user = $this->mylib->get_list('online_abstract_submission_forms_other', 'id, firstname, lastname', Array('email' => $email, 'password' => $password), 'id', '', ''); $this->session->set_userdata( Array( 'giris' => 'on', 'id' => $user[0]->id, 'name' => $user[0]->firstname, 'surname' => $user[0]->lastname, 'author' => 'FALSE' ) ); echo ''; } if ($this->session->userdata('giris') != 'on') { echo ''; } } else { exit(redirect($_SERVER['HTTP_REFERER'])); } } public function logout() { $this->session->unset_userdata( Array( 'giris' => '', 'id' => '', 'name' => '', 'surname' => '', 'author' => '' ) ); exit(redirect($_SERVER['HTTP_REFERER'])); } private function _farkbul($tarih1, $tarih2, $isaret) { list($g1, $a1, $y1) = explode($isaret, $tarih1); list($g2, $a2, $y2) = explode($isaret, $tarih2); $tms1 = mktime(0, 0, 0, $a1, $g1, $y1); $tms2 = mktime(0, 0, 0, $a2, $g2, $y2); if ($tms1 > $tms2) { $fark = $tms1 - $tms2; } elseif ($tms2 > $tms1) { $fark = $tms2 - $tms1; } elseif ($tms1 == $tms2) { $fark = 0; } return round($fark / 86400); } public function getNews() { if ($this->input->post()) { $id = $this->input->post('id', TRUE); $data = $this->mylib->get_list('news', '*', Array('id' => $id, 'language' => $this->session->userdata('lang')), 'id', '', ''); echo json_encode($data); } else { return FALSE; } } public function subscribe() { echo '
'; } public function subscribe_insert() { $email = $this->input->post('email', TRUE); $this->load->helper('email'); if (valid_email($email)) { $control = $this->mylib->total('ebulten', Array('email' => $email)); if (!$control) { $this->mylib->insert('ebulten', Array('email' => $email)); echo 'E-Mail Adresiniz Listemize Eklenmiştir.'; } else { echo 'Zaten Listemizde kaydınız bulunmaktadır.'; } } else { echo 'Lütfen E-Mail Adresini Kontrol Ediniz.'; } } }Önem: Warning
Mesaj: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/conference.medcoast.net/httpdocs/application/modules/home/controllers/home.php:165)
Dosya Adı: core/Common.php
Satır Numarası: 411
The page you requested was not found.