session_start();
$pageID='news';
if(empty($_SESSION['eliqToken'])){
$_SESSION['eliqToken'] = bin2hex(random_bytes(16));
}
include 'obfsemail.php';
include 'xss.php';
include 'vars.php';
## Get the blog Categories
if ($stmt = $mysqli->prepare("SELECT tag FROM blogTags ORDER BY RAND() LIMIT 20"))
{
$stmt->execute();
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()){
if (strpos($row['tag'],'Blog')===false) {
$blogTags[] = $row;
}
}
}
## Get the 5 most popular (most viewed) Posts not including this post
if ($stmt = $mysqli->prepare("SELECT ID,blogTitle,blogPublishDate,blogImage,MAX(blogViewed),blogViewed FROM blog WHERE blogVisible='Y' GROUP BY blogViewed DESC LIMIT 5"))
{
$stmt->execute();
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()){
###create one array of reward names and values
$blogPopularArray[] = $row;
}
}
/*
echo "
";
print_r($blogPopular);
echo "
";
*/
include 'searchBlog.php';
?>
include 'meta.php'; ?>
Kintrye Property Company - News & Blog
include 'favicon.php'; ?>
include 'metaTwitter.php'; ?>
include 'metaFB.php'; ?>
include 'fbCanvas.php'; ?>
include 'headerPage.php'; ?>
include 'searchForm.php'; ?>
Found : if($numArrays > 1){echo $numArrays;?> Posts | } if ($numArrays == 1){echo $numArrays;?> Post | } if ($numArrays < 1){?>No Results } ?>Showing Articles if ($numArrays < 1){echo "0";}else{echo $startIT . " to " . $endIT;}?>
if (!empty($_GET['category'])) { echo " in " . $_GET['category'].""; } ?>
$arrPostCnt = $startIT;
while ($arrPostCnt <= $endIT) {?>