OverLord Shell
<?php
error_reporting(0);
session_start();
include("db/conn.php");
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();echo "login.php";exit;}
$aa=explode('~',$_GET['id']);
$data = array(
'compnayjob_id' => $aa[1],//pr key of busdir_mst_companyjob
'jobprofile_id' => $aa[0],//pr key of busdir_mst_jobprofile
'by'=> '0',
'active'=>'y',
'createdby' => $_SESSION['company_id'],
'createdon' => date('Y-m-d H:i:s')
);
// print_r($data);exit;
$insertresult = dbRowInsert('busdir_mst_jobapply', $data);
$insertresultarr = explode("-",$insertresult);
if($insertresultarr[0]=='success'){
$listjb=getData("busdir_mst_jobprofile", "jobprofile_id", "'".$aa[0]."'", NULL, NULL, "");
//sending welcome email
$to = $listjb['company_email'];
$subject="MACCIA Business Network ";
$headers = 'From: business.maccia.org.in' . "\r\n" .
'Reply-To: no-reply@business.maccia.org.in' . "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$message="Congratulations, ".$listjb['company_name']."!!! You have been shortlisted by an organisation on MACCIA Business Network !!!<br><br>Please visit the following link in order to login into your account to see the Details<br><br><a href=\"http://business.maccia.org.in/login.php\" target=\"_blank\">http://business.maccia.org.in</a><br><br>Thank you for registering.<br><br>-------------------------------------------------------<br><strong>This is an automated message, please do not reply.</strong>";
$mresponse = mail($to,$subject,$message,$headers);
echo "success";
}
echo $insertresultarr[0];
?>
xRyukZ - Copyright 2k19