* @see https://codeigniter.com/user_guide/general/urls.html */ public function __construct() { parent::__construct(); //calling model $this->load->database(); $this->load->helper('form'); // $this->load->helper('url'); $this->load->model("RegistrationModel", "register"); } public function index() { $this->load->model('RegistrationModel'); $data['country'] = $this->RegistrationModel->fetch_country(); $this->load->view('templates/header'); $this->load->view('pages/registration',$data); $this->load->view('templates/footer'); } public function fetch_state() { $this->load->model('RegistrationModel'); // console.log($this->input->post('country')); $id= $this->input->post('country'); if($this->input->post('country')) { echo $this->RegistrationModel->fetch_state($this->input->post('country')); } } public function fetch_city() {$this->load->model('RegistrationModel'); if($this->input->post('state')) { echo $this->RegistrationModel->fetch_city($this->input->post('state')); } } public function register() { // Validate CAPTCHA $recaptcha = $_POST['g-recaptcha-response']; $secret_key = '6LfuMhcjAAAAABeuCG8l1G_Jraj33nDkkYSC4R2U'; $url = 'https://www.google.com/recaptcha/api/siteverify?secret=' . $secret_key . '&response=' . $recaptcha; $response = file_get_contents($url); $response = json_decode($response); if ($response->success == false) { echo (""); echo (""); return; } // Load model $this->load->model('RegistrationModel'); $data1['country'] = $this->RegistrationModel->fetch_country(); // Gather form data $data = array( 'name' => $this->input->post('studentName'), 'parent_name' => $this->input->post('parentName'), 'email' => $this->input->post('email'), 'mobile' => $this->input->post('isd'), 'dob' => $this->input->post('dob'), 'password' => $this->input->post('password'), 'address' => $this->input->post('address'), 'isd_code' => $this->input->post('isd_code'), 'country' => $this->input->post('country'), 'state' => $this->input->post('state'), 'city' => $this->input->post('city'), 'pincode' => $this->input->post('pincode') ); // Check if email already exists if ($this->RegistrationModel->getEmail($this->input->post('email')) > 0) { $this->session->set_flashdata('Error', 'Email ID Already Exists !!!'); $this->load->view('templates/header'); $this->load->view('pages/registration', $data1); $this->load->view('templates/footer'); return; } // Register the user $id = $this->RegistrationModel->registeration($data); if ($id) { $cnt = $this->input->post('isd'); $subject = 'New Student Registration - ' . $this->input->post('studentName'); $message = "New Student Registered For Penkraft Online Courses:

Name: " . $this->input->post('studentName') . "
Email: " . $this->input->post('email') . "
Contact: " . $cnt . "
"; // Email Configuration for SMTP $config = [ 'protocol' => 'smtp', 'smtp_host' => 'penkraft.in', // GoDaddy SMTP (Change accordingly) 'smtp_port' => 465, // Secure port for SSL 'smtp_user' => 'smrita@penkraft.in', // Your SMTP email 'smtp_pass' => 'Pass@Smrita', // Replace with your SMTP password 'mailtype' => 'html', // Send email in HTML format 'smtp_crypto' => 'ssl', // SSL encryption for secure connection 'wordwrap' => TRUE, // Word wrap for long lines in emails ]; // Initialize the email library with the configuration $this->load->library('email', $config); // Send email to admin $this->email->from($this->input->post('email'), 'Penkraft Registration'); $this->email->to('info@penkraft.in'); $this->email->cc('abhilasha@penkraft.in'); $this->email->subject($subject); $this->email->message($message); if ($this->email->send()) { // Send confirmation email to the user $subject1 = "Successfully Registered For Penkraft Online Course"; $message1 = "Successfully Registered For Penkraft Online Courses

Name: " . $this->input->post('studentName') . "
Email: " . $this->input->post('email') . "
Contact: " . $cnt . "
"; // Send email to the student $this->email->from('info@penkraft.in', 'Penkraft'); $this->email->to($this->input->post('email')); $this->email->cc('abhilasha@penkraft.in'); $this->email->subject($subject1); $this->email->message($message1); if ($this->email->send()) { $this->session->set_flashdata('message', 'Successfully Registered!! Login to Continue!!'); redirect(base_url()); // Redirect to homepage or login page } else { // Error in sending confirmation email to the student $this->session->set_flashdata('Error', 'Error sending confirmation email to the student.'); $this->load->view('templates/header'); $this->load->view('pages/registration', $data1); $this->load->view('templates/footer'); } } else { // Error in sending registration email to the admin $this->session->set_flashdata('Error', 'Error sending registration email to the admin.'); $this->load->view('templates/header'); $this->load->view('pages/registration', $data1); $this->load->view('templates/footer'); } } else { // Error in user registration $this->session->set_flashdata('message', 'Registration not successful.'); $this->load->view('templates/header'); $this->load->view('pages/registration', $data1); $this->load->view('templates/footer'); }} public function check_usertype(){ $email = $_POST['email']; $online_student = $this->model->isExist('online_student','email',$email); $online_studreg = $this->model->isExist('online_studreg','stud_email',$email); $data = []; if($online_student){ $data['online_student'] = 'Recorded Session'; } if($online_studreg){ $data['live_student'] = 'Live Session'; } error_reporting(0); echo json_encode($data); }public function check_tusertype(){ $email = $_POST['email']; $online_teacher = $this->model->isExist('online_teacher','login_email',$email); $online_teachreg = $this->model->isExist('online_teachreg','login_email',$email); $newlive_teachers = $this->model->isExist('newlive_teachers','login_email',$email); $newlive_masterteachers = $this->model->isExist('newlive_masterteachers','login_email',$email); $data = []; if($online_teacher){ $data['online_teacher'] = 'Recorded Session'; } if($online_teachreg){ $data['live_teacher'] = 'Live Session'; } if($newlive_teachers){ $data['teacher_training'] = 'Teacher Training'; } if($newlive_masterteachers){ $data['live_teacher_training'] = 'Live Teacher Training'; } error_reporting(0); echo json_encode($data); } public function getisd() { $this->load->model('RegistrationModel'); $id= $this->input->post('isocode'); $res= $this->RegistrationModel->getisd($id); foreach($res as $r ) { $arr = array( "cid"=>$r->country_id, "cnm"=>$r->country_name, "cisd"=>strtolower($r->countries_iso_code), "code"=>$r->countries_isd_code ); } echo json_encode($arr); } public function student() { $this->load->model('RegistrationModel'); $data['country'] = $this->RegistrationModel->fetch_country(); $this->load->view('templates/header'); $this->load->view('pages/registration',$data); $this->load->view('templates/footer');}public function teacher() { $this->load->model('TeacherRegistrationModel'); $data['country'] = $this->TeacherRegistrationModel->fetch_country(); $this->load->view('templates/header'); $this->load->view('pages/teacher_registration',$data); $this->load->view('templates/footer');}public function student_register() { unset($_POST['submit']); $id = $this->model->insertData('user_login',$_POST); if($id == true) { $cnt=$this->input->post('isd'); $subject = 'New Student Registration - '.$this->input->post('first_name')." ".$this->input->post('last_name'); $message = "New Student Registered For Penkraft Courses- ".$this->input->post('first_name')." ".$this->input->post('last_name')."

Name: " .$this->input->post('first_name')." ".$this->input->post('last_name')."
Email: " .$this->input->post('email')."
Contact: " .$cnt."
"; $this->load->library('email'); $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from($this->input->post('email')); $this->email->to('info@penkraft.in'); $this->email->cc('abhilasha@penkraft.in'); $this->email->subject($subject); $this->email->message($message); if($this->email->send()) { $subject1 = "Successfully Registered For Penkraft Online Course"; $message1 = "Successfully Registered For Penkraft Online Courses

Name: " .$this->input->post('first_name')." ".$this->input->post('last_name')."
Email: " .$this->input->post('email')."
Contact: " .$cnt."
"; $this->load->library('email'); $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from('info@penkraft.in'); $this->email->to($this->input->post('email')); $this->email->subject($subject1); $this->email->message($message1); if($this->email->send()) { $this->session->set_flashdata('message', 'Successfully Registered !! Login to Continue !!'); // redirect('welcome'); redirect(base_url()); } } } else { $this->session->set_flashdata('message', 'Not Successfully Registered'); redirect(base_url().'StudentRegistration'); }}public function teacher_register() { unset($_POST['submit']); $id = $this->model->insertData('user_login',$_POST); if($id == true) { $cnt=$this->input->post('isd'); $subject = 'New Teacher Registration - '.$this->input->post('first_name')." ".$this->input->post('last_name'); $message = "New Teacher Registered For Penkraft Courses- ".$this->input->post('first_name')." ".$this->input->post('last_name')."

Name: " .$this->input->post('first_name')." ".$this->input->post('last_name')."
Email: " .$this->input->post('email')."
Contact: " .$cnt."
"; $this->load->library('email'); $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from($this->input->post('email')); $this->email->to('info@penkraft.in'); $this->email->cc('abhilasha@penkraft.in'); $this->email->subject($subject); $this->email->message($message); if($this->email->send()) { $subject1 = "Successfully Registered For Penkraft Online Course"; $message1 = "Successfully Registered For Penkraft Online Courses

Name: " .$this->input->post('first_name')." ".$this->input->post('last_name')."
Email: " .$this->input->post('email')."
Contact: " .$cnt."
"; $this->load->library('email'); $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from('info@penkraft.in'); $this->email->to($this->input->post('email')); $this->email->cc('abhilasha@penkraf.in'); $this->email->subject($subject1); $this->email->message($message1); if($this->email->send()) { $this->session->set_flashdata('message', 'Successfully Registered !! Login to Continue !!'); // redirect('welcome'); redirect(base_url()); } } } else { $this->session->set_flashdata('message', 'Not Successfully Registered'); redirect(base_url().'TeachersRegistration'); }}}?>

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 303

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 328

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 355

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 365

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 366

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 367

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 368

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: drivers/Session_files_driver.php

Line Number: 109

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 110

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 137

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Registration.php:1)

Filename: core/Common.php

Line Number: 571

Backtrace:

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 11
Function: set_status_header

File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once

Penkraft Online Course
Download Brochure Penkraft

Oops...!!!

404 - PAGE NOT FOUND

The page your looking for might have been removed or
had its name changed or is temporarily unavailable.

inquirypng