product_bk.php
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
$userid = base64_decode($_GET['userid']);
$cust_name = base64_decode($_GET['cust_name']);
$cust_id = base64_decode($_GET['cust_id']);
$mobile_number = base64_decode($_GET['mobile_number']);
$emailid = base64_decode($_GET['emailid']);
$product = base64_decode($_GET['product']);
$ip= base64_decode($_GET['ip']);
$username=base64_decode($_GET['username']);
$recordid =base64_decode($_GET['recordid']);
$sessionid = base64_decode($_GET['sessionid']);
$campaign = base64_decode($_GET['campaign']);
/* $userid = $_GET['userid'];
$cust_name = $_GET['cust_name'];
$cust_id = $_GET['cust_id'];
$mobile_number = $_GET['mobile_number'];
$emailid = $_GET['emailid'];
$username=$_GET['username'];
$ip= base64_decode($_GET['ip']);
$recordid =$_GET['recordid'];
$sessionid = $_GET['sessionid'];
$campaign = $_GET['campaign'];*/
//echo $ip;
$link_central = mysqli_connect("10.3.177.14", "root", "yb9738z", "kstych_flexydial");
$location="";
$locationlist = $link_central->query("select location,id from server_details where server_ip='$ip'");
while($locationuser=$locationlist->fetch_object()){
$location=$locationuser->location;
}
mysqli_close($link_central);
$link = mysqli_connect("$ip", "root", "yb9738z", "kstych_flexydial");
$productlist = $link->query("select products from leadform_products");
echo "<center><h4>Product List</h4></center><br>";
while($product=$productlist->fetch_object())
{
echo "<hr><b><a href='https://10.3.177.14/register_form.php?userid=$userid&product=".base64_encode($product->products)."&cust_name=$cust_name&cust_id=$cust_id&mobile_number=$mobile_number&emailid=$emailid&ip=".base64_encode($ip)."&username=$username&recordid=$recordid&sessionid=$sessionid&campaign=$campaign' target='_blank'>$product->products</a></b> <br> ";
}
mysqli_close($link);
?>
</body>
</html>