-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
201 lines (185 loc) · 6.77 KB
/
single.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?php require("libs/fetch_data.php");?>
<?php //code to get the item using its id
include("database/conn.php");//database config file
$id=$_REQUEST['id']; $query="SELECT * from blogs where id='".$id."'"; $result=mysqli_query($GLOBALS["___mysqli_ston"],$query) or die ( ((is_object($GLOBALS["___mysqli_ston"]))? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res = mysqli_connect_error()) ?$___mysqli_res : true)));
$row = mysqli_fetch_assoc($result);
//pageview count query
$page=$row['title'];
$count="SELECT * FROM page_hits WHERE page='".$page."'";$feedback=mysqli_query($GLOBALS["___mysqli_ston"],$count) or die ( ((is_object($GLOBALS["___mysqli_ston"]))? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res = mysqli_connect_error()) ?$___mysqli_res : true)));
$roo=mysqli_fetch_assoc($feedback);?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title><?php echo $row['title']; ?>|<?php getwebname("titles");?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<link id="browser_favicon" rel="shortcut icon" href="blogadmin/images/<?php geticon("titles"); ?>">
<meta charset="utf-8" name="description" content="<?php getshortdescription("titles");?>">
<meta name="keywords" content="<?php getkeywords("titles");?>" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="css/single.css">
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/fontawesome-all.css" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800"
rel="stylesheet">
<!--additional javascripts will be placed here-->
<?php getjavascripts("links"); ?>
</head>
<body>
<!--Header-->
<?php include("header.php");?>
<!--//header-->
<!--update database on page views-->
<?php require_once('adminstats/conn.php');
require_once('counter.php');
$pn=updateCounter(''.$row['title'].''); // Updates page hits
echo $pn;
updateInfo(); // Updates hit info ?>
<div class="banner-inner">
</div>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.php">Home</a>
</li>
<li class="breadcrumb-item active">Blog</li>
</ol>
<!--//banner-->
<section class="banner-bottom">
<!--/blog-->
<div class="container">
<div class="row">
<!--left-->
<div class="col-lg-8 left-blog-info-w3layouts-agileits text-left">
<div class="blog-grid-top">
<div class="b-grid-top">
<div class="blog_info_left_grid">
<a href="#">
<img src="blogadmin/images/<?php echo $row['photo']; ?>" class="img-fluid" alt="image not available" style="width:900px;height:300px">
</a>
</div>
<div class="blog-info-middle">
<ul>
<li>
<a href="#">
<i class="far fa-calendar-alt"></i><?php echo $row['date']; ?></a>
</li>
<li class="mx-2">
<a href="#">
<i class="far fa-user"></i><?php echo $row['author']; ?></a>
</li>
<li>
<a href="#">
<i class="far fa-tags"></i> <?php echo $row['tags']; ?></a>
</li>
<li>
<a href="#">
<i class="far fa-eye fa-x2"></i> <?php echo $roo['count']; ?></a>
</li>
</ul>
</div>
</div>
<h3>
<a href="single.html"><?php echo $row['title']; ?></a>
</h3>
<!--sharing script-->
<?php getsharingscript("links"); ?>
<?php echo $row['content']; ?>
</div>
<!--comments script will go here-->
<?php getcommentsscript("links"); ?>
</div>
<!--//left-->
<!--right-->
<aside class="col-lg-4 agileits-w3ls-right-blog-con text-right">
<div class="right-blog-info text-left">
<h4><strong>Categories</strong></h4>
<ul class="list-group single">
<?php countcategories();?>
</ul>
<div class="tech-btm widget_social">
<h4>Stay Connected</h4>
<ul>
<li>
<a class="twitter" href="<?php getlinks("links","twitter");?>">
<i class="fab fa-twitter"></i>
<span class="count"></span> Twitter</a>
</li>
<li>
<a class="facebook" href="<?php getlinks("links","facebook");?>">
<i class="fab fa-facebook-f"></i>
<span class="count"></span> Facebook</a>
</li>
<li>
<a class="dribble" href="<?php getlinks("links","dribble");?>">
<i class="fab fa-dribbble"></i>
<span class="count"></span> Dribble</a>
</li>
<li>
<a class="pin" href="<?php getlinks("links","pinterest");?>">
<i class="fab fa-pinterest"></i>
<span class="count"></span> Pinterest</a>
</li>
</ul>
</div>
<div class="tech-btm">
<h4>Editor's Choice</h4>
<?php geteditorschoice("editors_choice");?>
<!--olderpostsendhere-->
</div>
</div>
</aside>
<!--//right-->
</div>
</div>
</section>
<!--//main-->
<!--footer-->
<?php include("footer.php");?>
<!---->
<!-- js -->
<script src="js/jquery-2.2.3.min.js"></script>
<!-- //js -->
<!--/ start-smoth-scrolling -->
<script src="js/move-top.js"></script>
<script src="js/easing.js"></script>
<script>
jQuery(document).ready(function ($) {
$(".scroll").click(function (event) {
event.preventDefault();
$('html,body').animate({
scrollTop: $(this.hash).offset().top
}, 900);
});
});
</script>
<!--// end-smoth-scrolling -->
<script>
$(document).ready(function () {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({
easingType: 'easeOutQuart'
});
});
</script>
<a href="#home" class="scroll" id="toTop" style="display: block;">
<span id="toTopHover" style="opacity: 1;"> </span>
</a>
<!-- //Custom-JavaScript-File-Links -->
<script src="js/bootstrap.js"></script>
</body>
</html>