404 Page Not Found
The page you requested was not found.
if (!defined('BASEPATH'))
exit('No direct script access allowed.');
class Forgot_your_password extends MX_Controller {
public function __construct() {
parent::__construct();
if ($this->session->userdata('giris') == 'on') {
exit(redirect(base_url()));
}
}
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', '', '');
$data['events'] = $this->mylib->get_list('events', '*', Array('status' => '1', 'language' => $this->session->userdata('lang')), 'id', '', '');
$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('forgot_your_password_v', $data);
}
public function reset() {
if ($this->input->post()) {
$corresponding_email = $this->input->post('corresponding_email', TRUE);
if ($corresponding_email) {
$this->load->helper('email');
if ($corresponding_email != '') {
if (!valid_email($corresponding_email)) {
exit('Incorrect Email');
}
$result = FALSE;
$total = $this->mylib->total('corresponding_authors', Array('corresponding_email' => $corresponding_email, 'status' => '1'));
if ($total > 0) {
$data = $this->mylib->get_list('corresponding_authors', 'corresponding_name, corresponding_email, corresponding_password', Array('corresponding_email' => $corresponding_email), 'id', '', '');
$this->load->library('email', Array('mailtype' => 'html'));
$this->email->from("medcoast@medcoast.net", "MEDCOAST Foundation");
$this->email->to($data[0]->corresponding_email);
$this->email->subject("Forgot your password?");
$this->email->message('
Email : ' . $data[0]->corresponding_email . '
Password : ' . $data[0]->corresponding_password . '
');
$this->email->send();
$result = TRUE;
} else {
$result = FALSE;
}
if ($result === FALSE) {
$total = $this->mylib->total('online_abstract_submission_forms_other', Array('email' => $corresponding_email));
if ($total > 0) {
$data = $this->mylib->get_list('online_abstract_submission_forms_other', '*', Array('email' => $corresponding_email), 'id', '', '');
$this->load->library('email', Array('mailtype' => 'html'));
$this->email->from("info@medcoast.net", "Medcoast Foundation");
$this->email->to($data[0]->email);
$this->email->subject("Forgot your password?");
$this->email->message('
Email : ' . $data[0]->email . '
Password : ' . $data[0]->password . '
');
$this->email->send();
$result = TRUE;
} else {
$result = FALSE;
}
}
if ($result === TRUE) {
echo 'Successful';
} else {
echo 'E-mail Not Found';
}
}
} else {
echo 'Please fill in the form.';
}
}
}
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);
}
}
Önem: Warning
Mesaj: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/conference.medcoast.net/httpdocs/application/modules/forgot_your_password/controllers/forgot_your_password.php:115)
Dosya Adı: core/Common.php
Satır Numarası: 411
The page you requested was not found.