-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages.php
107 lines (106 loc) · 2.96 KB
/
pages.php
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
session_start();
include 'config.php';
$p=mysqli_fetch_assoc(mysqli_query($conn,"SELECT * FROM pages WHERE id='".$_GET['id']."'"));
$ads=mysqli_fetch_assoc(mysqli_query($conn,"SELECT * FROM ads WHERE id='1'"));
?>
<html>
<head>
<title><?php echo $p['page_name'];?></title>
<!-- meta tags-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Make your link safe using Link Protector" />
<meta name="keywords" content="link, short, protector" />
<meta name="author" content="Rohit Chauhan" />
<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="assets/fonts/css/font-awesome.min.css">
<link rel="icon" href="../favicon.png" sizes="16x16" type="image/png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/jquery-1.9.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<style>
#text-url{width:80%;}
#av-btn{margin-left:10%;}
@media (max-width: 700px) {
#text-url{width:100%;}
#av-btn{margin-left:0%;}
}
</style>
</head>
<body class="bg-light">
<div class="container">
<br>
<br>
<br>
<center><a href="/"><img style="height:80px;" class="brand-img d-inline-block" src="dist/img/logo-light.png" alt="brand" /></a></center>
<br>
<div class="card p-4">
<h5><i style="color:green;" class="fa fa-link"></i> <?php echo $p['page_name'];?></h5>
<hr>
<?php echo $p['page_data'];?>
<br>
<?php
if($check_ip>=2){
echo '';
} else {
echo '
<form id="insertformD" action="ad_click.php" method="post">
<input type="hidden" name="ip" value="'.$users_ip.'"/>
<div id="sendD">
<div id="resultD">'.$ads['ads2'].'</div>
</div>
</form>
';
}
?>
</div>
<br>
</div>
<br>
<br>
<br>
<br>
<br>
</body>
<script>
$('#insertformD').submit(function(){
return false;
});
$('#sendD').click(function(){
$.post(
$('#insertformD').attr('action'),
$('#insertformD :input').serializeArray(),
function(result){
$('#resultD').html(result);
}
);
});
$('#insertformHead').submit(function(){
return false;
});
$('#sendHead').click(function(){
$.post(
$('#insertformHead').attr('action'),
$('#insertformHead :input').serializeArray(),
function(result){
$('#resultHead').html(result);
}
);
});
$('#insertformFoot').submit(function(){
return false;
});
$('#sendFoot').click(function(){
$.post(
$('#insertformFoot').attr('action'),
$('#insertformFoot :input').serializeArray(),
function(result){
$('#resultFoot').html(result);
}
);
});
</script>
</html>