System: Windows NT WINDOWS18 10.0 build 17763 (Windows Server 2016) AMD64 | User: IWPD_3544(appclien)
Path: D:\Inetpub\vhosts\appclients.in\fruits-vegitables.nmvm.org
[Back to List]
<?php
include "includes/main-action.php";
$obj=new admin_main();
$sel_cs=$obj->select_all("menu","order by menu_id");
$sel_banner_top=$obj->select_all("adv_tbl1","order by adv_id desc limit 1");
$sel_banner_right=$obj->select_all("adv_tbl3","order by adv_id desc limit 2");
$sel_slider=$obj->select_all("adv_tbl2","order by adv_id desc");
//select profile details
$selectProfile=$obj->select_all("register","where reg_id='$_SESSION[user_id]' AND ccompany='customer'");
$data=mysqli_fetch_array($selectProfile);
extract($data);
//send referal link
if(isset($_SESSION['ShareReferalLink'])){
$email=addslashes($_POST['email']);
$sql=mysqli_query($con,"select * from register where cemail='$email' and ccompany='customer'") or die(mysqli_error($con));
//echo mysqli_num_rows($sql);
if(mysqli_num_rows($sql)>0){
$result=mysqli_fetch_array($sql);
$user_id=$result['reg_id'];
$email=$result['cemail'];
$name=$result['cfname']." ".$result['clname'];
$link=$url."share.php?co=".$referallink;
require('phpmailer/class.phpmailer.php');
$message = "Hi! $name,\n\n Click here to earn referral income ".$link."\n\n";
$message .= "Thanks for showing interest with us.\n\n Thanks & Regards,\n\nSupport Team\n\nwww.rkoyal.com\n\n";
$mail = new PHPMailer;
$mail->IsSMTP(); // Set mailer to use SMTP
$mail->Host = "rkoyal.com"; // Specify main and backup server
//$mail->Host = "Give IP Address"; // If the above does not work.
$mail->Port = 25; // Set the SMTP port
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = "order@rkoyal.com"; // SMTP username
$mail->Password = "admin@@987"; // SMTP password
//$mail->SMTPSecure = "ssl"; // Enable encryption, 'ssl' also accepted
$mail->From = 'order@rkoyal.com';
$mail->FromName = 'bbmandi';
$mail->AddAddress($email); // Add a recipient
if(!empty($vendorEml))
//$mail->AddAddress($vendorEml); // Add a recipient
$mail->IsHTML(true);
//send mail to customer
$sendmail_customer = $mail->AddAddress($email,$name);
$mail->Subject = "Earn referral income on rkoyal.com";
$mail->Body = $message;
$mail->Send();
$url="referal-link.php";
?>
<script>
alert("Referral link sent to the resistered email id");
window.location='<?php echo $url?>';
</script>
<?php
}
else
{
?>
<script>
alert("error!You have entered wrong email id");
window.location="<?php echo $_SERVER['HTTP_REFERER']; ?>";
</script>
<?php
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic page needs
============================================ -->
<title>Share Referal Link</title>
<meta charset="utf-8">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="">
<meta name="robots" content="index, follow" />
<!-- Mobile specific metas
============================================ -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Favicon
============================================ -->
<link rel="shortcut icon" type="image/png" href="<?php echo $url?>image/icon/favicon.png"/>
<!-- Libs CSS
============================================ -->
<link rel="stylesheet" href="<?php echo $url?>css/bootstrap/css/bootstrap.min.css">
<link href="<?php echo $url?>css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/owl-carousel/owl.carousel.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/lib.css" rel="stylesheet">
<link href="<?php echo $url?>js/jquery-ui/jquery-ui.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/minicolors/miniColors.css" rel="stylesheet">
<!-- Theme CSS
============================================ -->
<link href="<?php echo $url?>css/themecss/so_searchpro.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so_megamenu.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-categories.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-listing-tabs.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-category-slider.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-newletter-popup.css" rel="stylesheet">
<link href="<?php echo $url?>css/footer/footer2.css" rel="stylesheet">
<link href="<?php echo $url?>css/header/header2.css" rel="stylesheet">
<link id="color_scheme" href="<?php echo $url?>css/home2.css" rel="stylesheet">
<link href="<?php echo $url?>css/responsive.css" rel="stylesheet">
<!-- Google web fonts
============================================ -->
<link href='https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700' rel='stylesheet' type='text/css'>
<style type="text/css">
body{font-family:'Poppins', sans-serif}
</style>
</head>
</head>
<body class="res layout-1 layout-subpage">
<div id="wrapper" class="wrapper-fluid banners-effect-5">
<!-- Header Container -->
<?php include "includes/topbar.php";?>
<!-- //Header Top -->
<!-- Header center -->
<?php include "includes/searchbar.php";?>
<!-- //Header center -->
<!-- Header Bottom -->
<?php include "includes/navbar.php";?>
</header>
<!-- //Header Container -->
<!-- Main Container -->
<div class="main-container container">
<ul class="breadcrumb">
<li><a href="<?php echo $url?>"><i class="fa fa-home"></i></a></li>
<li><a>Share Referal Link</a></li>
</ul>
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<form method="post">
<div class="form-group" style="display: -webkit-box;">
<div class="input-box" style="width: 100%;">
<input type="hidden" value="<?php echo $url."share.php?co=".$referallink ?>" class="form-control" />
<input type="email" name="email" class="form-control" placeholder="Enter Email ID" required/>
</div>
<input type="submit" name="ShareReferalLink" class="btn btn-primary btn-default font-title" value="Share" />
</div>
</form>
<div class="subcribe">
<div style="width:100%; text-align:center"><h3>or</h3><hr color="#CCCCCC" /></div>
<a href="<?php echo $url."share.php?co=".$referallink ?>" class="btn btn-primary btn-default font-title"> Share With Social Media </a> <br><br>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</div>
<!-- //Main Container -->
<!-- Footer Container -->
<?php include "includes/footer.php" ?>
<!-- Include Libs & Plugins
============================================ -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="<?php echo $url?>js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/owl-carousel/owl.carousel.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/slick-slider/slick.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/libs.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/unveil/jquery.unveil.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/countdown/jquery.countdown.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/dcjqaccordion/jquery.dcjqaccordion.2.8.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/datetimepicker/moment.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/jquery-ui/jquery-ui.min.js"></script>
<!-- Theme files
============================================ -->
<script type="text/javascript" src="<?php echo $url?>js/themejs/so_megamenu.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/addtocart.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/application.js"></script>
</body>
</html>