OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/productreview_approved.php

<?php 
session_start();
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();echo "login.php";exit;}
if(!in_array($_SESSION['loggedin_user'],array('admin','company'))){header("location:404.php");}
 require_once("db/conn.php");
  $id=$_POST['id'];
  $action=$_POST['action'];
  $qq="UPDATE busdir_mst_product_review SET approved='$action',modifiedby='".$_SESSION['company_id']."' WHERE review_id=".$id;
 $r=$connection->query($qq);

if(($r) && ($action=='1'))
{
	
      $appdata=getData('busdir_mst_product_review','review_id',$id,'*',NULL);
	  $from= "business.maccia.org.in";
	  $email="noreply@business.maccia.org.in";
	  $subject="Your Product Review Approved to  publish ";
	  $to = "".$appdata['email']."";
	// $to= "support@ultraliant.com";
					$subject="MACCIA Business Network- Product Review Approved";
                    $headers  = 'From:'. $from. "\r\n" .
                                                    'Reply-To:'.$email . "\r\n" .
                                                    'MIME-Version: 1.0' . "\r\n" .
                                                    'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
                                                    'X-Mailer: PHP/' . phpversion();
                                                    
                     $body = '<html><body>';
                     $body .='<div class="gmail_quote"><div dir="ltr">On '.date('Y-m-d H:i:s').'MACCIA Business Network Product Review Approved at '.$appdata['my_company_name'].'</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div align="left">
  <table border="0" cellpadding="" cellspacing="0" width="654">
    <tbody><tr>
      <td valign="top" align="left" colspan="2" width="652"><img border="1" style=" background: #f9f7f7;"
src="http://business.maccia.org.in/images/logo3.png" width="650" height="105" class="CToWUd"></td>
    </tr>
    <tr>
      <td width="231" valign="top" align="left" bgcolor="#CCCCCC">
        <div align="left">
          <table border="0" cellpadding="20" cellspacing="0" width="100%">
            <tbody><tr>
              <td width="100%" ><font face="Arial" size="5" color="#808080"><b>'. $subject. '</b></font>
                <p><font face="Arial" size="2">
                <i><b>Date Referral Given:</b></i><br>'.date('Y/m/d ').'<br><br>
        
                </font></p>
              </td>
            </tr>
          </tbody></table>
</div>
      </td>
      <td width="419" valign="top" align="left">
        <div align="left">
          <table border="0" cellpadding="20" cellspacing="0">
            <tbody><tr>
              <td>
                  <p><font size="2" face="Arial"> <b>Congratulations! <br>Your Product Review Approved on MACCIA Business Network  at '.$appdata['my_company_name'].' for '.$appdata['product_name'].' !</b></font></p> <br><p><b> Name:</b> '.$appdata['name'].'<br><b>Product Review :</b><br/>'.$appdata['review'].'  </p><p><font size="2" face="Arial">For additional information and to follow up with your Product Review Approved,please contact  at '.$from.'.<br><p><font size="2" face="Arial">Happy Connecting!</font><br>
                                
              </p></td>
            </tr>
          </tbody></table>
        </div>
      </td>
    </tr>
  </tbody></table>
</div>
<p><font face="Arial" size="4">&nbsp;</font></p>
<p><font face="Arial" size="4">	
</font>
</p><div class="yj6qo"></div><div align="left">
<p>Regards,<br/>
Support Team,<br/>
MACCIA Business Network.<br/>
</p>
</div>';
	$mresponse = mail($to,$subject,$body,$headers);
	echo $action;exit;
}else if($r){ echo $action;exit;
}
else echo "An Unknown error occured. Please try again.";
$connection->close();
?>

xRyukZ - Copyright 2k19