-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapkview.php
More file actions
139 lines (109 loc) · 4.68 KB
/
Copy pathapkview.php
File metadata and controls
139 lines (109 loc) · 4.68 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
include 'conn.php';
$id = $_GET['id'];
$sql = 'select * from ap_apks where ap_id = '.$id;
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($result) ;
?>
<?php
//Counting Views
$views = $row['ap_views']+1;
$viewsql = "UPDATE ap_apks SET ap_views = ".$views." where ap_id = ".$id."";
mysqli_query($conn,$viewsql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $row['ap_name'] ?> Apk Download | AppsPages</title>
<link rel="stylesheet" href="../assets/bttn.css">
<link rel="stylesheet" href="../assets/bootstrap.min.css">
<link rel="stylesheet" href="../assets/appview.css">
<link rel="shortcut icon" href="<?php echo $row['ap_logo_url'] ?>" type="image/x-icon">
<meta name="description"
content="<?php echo nl2br($row['ap_description'])?>">
<meta property="og:title" content="<?php echo $row['ap_name'] ?>" />
<meta property="og:description" content="<?php echo nl2br($row['ap_description'])?>" />
<meta property="og:image" content="<?php echo $row['ap_featured'] ?>" />
</head>
<body>
<script src="../assets/autotopbar.js"></script>
<header>
<h4 class="bttn-material-flat bttn-md bttn-primary" style="color:aqua;background:rgb(2, 83, 107);">
<span style="color:hotpink">Apps</span>pages
</h4>
<div class="links">
<a class="bttn-material-flat bttn-md bttn-primary" href="../log/">Log</a>
<a class="bttn-material-flat bttn-md bttn-primary" href="../submit/">Submit APK</a>
</div>
</header>
<div class="container">
<br><br>
<div class="logo">
<img src="<?php echo $row['ap_logo_url'] ?>" alt="" srcset="">
</div><br><br>
<div class="title">
<?php echo $row['ap_name'] ?>
</div>
<br>
<div class="uploader center"><a
href="../user/<?php echo $row['user']?>"><?php
$sql3 = "SELECT * FROM ap_users where ur_id =".$row['user']."";
$result3 = mysqli_query($conn,$sql3);
$row3 = mysqli_fetch_array($result3);
echo $row3['username'];
?></a></div>
<br><br>
<div class="download">
<a href="<?php echo $row['apk_link'] ?>"><button class="bttn-pill bttn-block bttn-primary">DOWNLOAD ( <?php echo $row['ap_size'] ?>mb )</button></a>
</div>
<br><br>
<p class="details">
<a class="bttn-material-flat bttn-md bttn-primary"
onclick="document.querySelector('#desc').classList.toggle('show')" data-toggle="collapse"
href="#desc" role="button" aria-expanded="false" aria-controls="collapseExample">
Show Description
</a>
<a class="bttn-float bttn-md bttn-primary">
Version : <?php echo $row['ap_version']?>
</a>
<a class="bttn-material-flat bttn-md bttn-primary"
onclick="document.querySelector('#ss').classList.toggle('show')" data-toggle="collapse"
href="#ss" role="button" aria-expanded="false" aria-controls="collapseExample">
Screenshots
</a>
<a class="bttn-float bttn-md bttn-primary">
Views : <?php echo $row['ap_views']?>
</a>
<a class="bttn-jelly bttn-md bttn-primary" style="border-radius:4px;">
<?php echo $row['ap_tag']?>
</a>
</p>
<div class="fi">
<img src="<?php echo $row['ap_featured']?>" alt="" srcset="">
</div>
<div class="collapsed" id="desc">
<div class="card card-body">
<div class="description">
<?php echo nl2br($row['ap_description'])?>
</div>
</div>
</div>
<br><br>
<div class="screenshots collapsed card card-body" id="ss">
<pre class="sscon"><?php $sc = explode('|', $row['ap_screenshots']);for($x = 0; $x < count($sc); $x++) {echo "<img class='screenshot' src='".$sc[$x]."'>";}?>
</pre>
</div>
<br><br>
<div id="share">
</div>
</div>
<div class="footer">
<a class="a" href="../">@AppsPages</a>
<!-- ShareThis BEGIN --><div class="sharethis-inline-reaction-buttons"></div><!-- ShareThis END -->
</div>
<script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=619204ca557e30001202fd90&product=sop' async='async'></script>
</body>
</html>