Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php include "settings.php"; include "_db.php"; // set timezone date_default_t..
Decoded Output download
<?php
include "settings.php";
include "_db.php";
// set timezone
date_default_timezone_set('Asia/Dhaka'); // CDT
$info = getdate();
$date = $info['mday'];
$month = $info['mon'];
$year = $info['year'];
$hour = $info['hours'];
$min = $info['minutes'];
$sec = $info['seconds'];
//$currentDate = "$year-$month-$date $hour:$min:$sec";
//$somoy = "$hour:$min:$sec";
if ($month<10) $month='0'.$month; if ($date<10) $date='0'.$date;
$today="$year/$month/$date";
//$today="2021/04/05";
// set timezone
$imgRoot = '';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?=$title?></title>
<meta name="description" content="<?=$description?>">
<link href="images/favicon.png" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="images/styles.css" rel="stylesheet" type="text/css" media="screen,print">
<meta name="keywords" content="<?=$keyword?>">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.notunshomoy.com">
<meta property="og:image" content="https://www.notunshomoy.com/images/no-image.jpg">
<meta property="og:site_name" content="Daiy Notunshomoy">
<meta http-equiv="developer" content="Developed By: SM. Kafi
Powered by : i2soft Technology Limited
Web address : http://www.i2softbd.com
Address : 53 Modern Mansion (11th Floor), Motijheel C/A, Dhaka - 1000, Bangladesh, Cell : 01711112420, 01611112420" />
<meta http-equiv="refresh" content="1500"/>
<meta property="fb:pages" content="<?=$fbPGid?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type='text/javascript' src='//platform-api.sharethis.com/js/sharethis.js#property=5bd978948a1fb80011151c49&product=inline-share-buttons' async='async'></script>
</head>
<script language="javascript" src="images/jquery-1.7.1.min.js"></script>
<script language="javascript" src="images/jquery.slimscroll.js"></script>
<link rel="stylesheet" type="text/css" href="images/flexslider.css">
<script src="images/jquery.flexslider.js"></script>
<script type="text/javascript" src="images/ajaxRouter.js"></script>
<script>
(function($) {
$.fn.menumaker = function(options) {
var cssmenu = $(this), settings = $.extend({
title: "Menu",
format: "dropdown",
sticky: false
}, options);
return this.each(function() {
cssmenu.prepend('<div id="menu-button" style="color:#fff; padding-left: 15px; background: url(images/menuALL.png) no-repeat 10px 12px"></div>');
$(this).find("#menu-button").on('click', function(){
$(this).toggleClass('menu-opened');
var mainmenu = $(this).next('ul');
if (mainmenu.hasClass('open')) {
mainmenu.hide().removeClass('open');
}
else {
mainmenu.show().addClass('open');
if (settings.format === "dropdown") {
mainmenu.find('ul').show();
}
}
});
cssmenu.find('li ul').parent().addClass('has-sub');
multiTg = function() {
cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>');
cssmenu.find('.submenu-button').on('click', function() {
$(this).toggleClass('submenu-opened');
if ($(this).siblings('ul').hasClass('open')) {
$(this).siblings('ul').removeClass('open').hide();
}
else {
$(this).siblings('ul').addClass('open').show();
}
});
};
if (settings.format === 'multitoggle') multiTg();
else cssmenu.addClass('dropdown');
if (settings.sticky === true) cssmenu.css('position', 'fixed');
resizeFix = function() {
if ($( window ).width() > 768) {
cssmenu.find('ul').show();
}
if ($(window).width() <= 768) {
cssmenu.find('ul').hide().removeClass('open');
}
};
resizeFix();
return $(window).on('resize', resizeFix);
});
};
})(jQuery);
(function($){
$(document).ready(function(){
$("#cssmenu").menumaker({
title: "Menu",
format: "multitoggle"
});
$('.flexslider').flexslider({
animation: "slide",
slideshow:true,
controlNav:true,
pauseOnHover:true
});
$('.bxslider').bxSlider({
mode: 'fade',
captions: true,
auto:true,
pager: true,
});
$('.sheershaphtGallery').mouseover(function(){
$('div.bx-controls-direction').css('display','block');
});
$('.sheershaphtGallery').mouseout(function(){
$('div.bx-controls-direction').css('display','none');
});
$('.sheershaphtGallery').hover(function(){
$(this).find('div#phtglryTT').slideDown();
},function(){$(this).find('div#phtglryTT').slideUp();
});
var pht_gal=0;
$('a.bx-next').click(function(){
pht_gal = pht_gal + 1;
if(pht_gal==9) window.open('gallery.php');
});
});
})(jQuery);
function menus() {
if(document.getElementById('menus').style.display=='none'){
document.getElementById('menus').style.display='block';
}else{
document.getElementById('menus').style.display='none';
}
}
</script>
<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
<?php include "top.php"; ?>
<div class="container" style="padding:0 0 0 0">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 right" style="margin: 0"><?php include "ad_banner_left.html"; ?></div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" style="padding: 0 50px 0 50px">
<center><a href="index.php"><img border="0" class="logo" src="images/logo.png"></a></center>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 right" style="margin: 0"><?php include "ad_banner_right.html"; ?></div>
<div class="clear"></div>
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12 m_none"><?php include "time.php"; ?></div>
<div align="right" class="col-lg-2 col-md-2 col-sm-2 col-xs-12 m_none"><a target="_blank" href="login.php">লগইন করুন</a></div>
<div class="clear"></div>
</div>
<div class="clear" style="margin: 0 0 5px 0"></div>
<div style="background: #282D30; padding: 0px">
<div class="container" style="padding: 0px">
<!-- Menu Start -->
<?php include "menu.php"; ?>
<!-- Menu End -->
</div>
</div>
</div>
<?php include "menu-extra.php"; ?>
</div>
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Container Start -->
<div class="container" style="padding: 0px">
<?php include "ad_top.html"; ?>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="padding: 0">
<!-- Lead News Start -->
<div class="flexsliderr" style="background: #E4E5E6">
<ul class="slidess">
<?php
$dateSQ = "SELECT MAX(id) AS last FROM news";
$dateRES = $conn->query($dateSQ);
$new = $dateRES->fetch_assoc();
$dates = $new['last'];
$Ndates = ($dates-100);
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='1' and id > '".$Ndates."' order by short DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
$img = str_replace('_th','',$img);
?>
<li>
<div><a href="details.php?id=<?=$id?>"><img src="<?=$imgRoot?><?=$img?>" alt="<?=$headline?>" style="margin-right: 7px; width: 100%"></a></div>
<div align="center" style="padding: 15px">
<div align="center" style="margin: 10px 0 10px 0"><a style="font-size: 36px" href="details.php?id=<?=$id?>"><b><?=$headline?></b></a></div>
<?php
$max = 40;
$NewDetails = strip_tags($row['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<div style="font-size: 20px">'.strip_tags($NewDetails,'').' <a style="color: #116DBD" href="details.php?id='.$id.'"> ...বিস্তারিত</a></div>';
?>
</div>
</li>
<? } ?>
</ul>
<!-- Lead News End -->
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<!-- Body News Start -->
<div style="margin: 20px 0 0 0">
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='1' and id > '".$Ndates."' order by short DESC limit 1,6";
$res = $conn->query($sql);
$t='0'; $clear = '';
while($row = $res->fetch_assoc()) {$t++;
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t =='1') {$tcleft= '0'; $tcright= '20px';}
else if ($t =='2') {$tcleft= '5px'; $tcright= '5px';}
else if ($t =='3') {$tcleft= '20px'; $tcright= '0';}
else if ($t =='4') {$tcleft= '0'; $tcright= '20px';}
else if ($t =='5') {$tcleft= '5px'; $tcright= '5px';}
else if ($t =='6') {$tcleft= '20px'; $tcright= '0';}
else {$tcright='0'; $tcright='0';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
if ($t % 3) {$float = 'left'; $clear ='';} else {$float = 'right'; $clear ='clear'; }
?>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 m_none" style="padding: 0 <?=$tcright?> 30px <?=$tcleft?>">
<div class="img_dc"><a href="details.php?id=<?=$id?>"><img class="img_dc img_zoom lazy" src="<?=$imgRoot?><?=$img?>" style="border: 1px solid #ddd; margin-right: 10px" align="left"></a></div>
<div class="clear"></div>
<div class="body" style="margin: 5px 0 0 0"><a style="color: #00ADEE" href="cat.php?cd=<?=$menu?>"><B><?=$mtitle?></B></a></div>
<div class="body" style="margin: 5px 0 0 0"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
</div>
<?
echo '<div class="d_none t_none"><div class="titleBTM" style="margin: 0 0 0 10px"><a line-height: 20px" href="details.php?id='.$id.'"><img class="cat_div route" border="0" src="'.$imgRoot.''.$img.'" style="margin-right: 7px" align="left">';
echo ''.$headline.'</a></div><div class="clear" style="margin: 0 0 20px 0"></div></div>';
echo '<div class="'.$clear.'" style="margin: 0 0 0 0"></div>';
} ?>
</div>
<!-- Body News End -->
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<?php include "adsense_link.html"; ?>
<div class="clear" style="margin: 0 0 10px 0"></div>
<!-- DONT MISS start -->
<div style="padding: 0 0 0 0">
<fieldset style="border-radius: 6px; padding: 10px; border-color: #cccccc; background: #ffffff">
<legend align="left"><a href="#"><div style="font-size: 26px; color: #00ADEE"><b> DONT MISS </b></div></a></legend>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='3' and id > '".$Ndates."' order by short DESC limit 0,3";
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$titles=str_replace(' ','-',$newss['headline']);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 3) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
echo '<div class="title_cat" style="margin: 0 0 15px 0"><a href="details.php?id='.$id.'"><img class="img_half" src="'.$img.'" align="left" style="margin: 0 15px 30px 15px"></a><span><a style="color: #00ADEE" href="cat.php?cd='.$menu.'"><B>'.$mtitle.'</B></a><BR></span><a href="details.php?id='.$id.'"><B>'.strip_tags($newss['headline'],'').'</B></a></div>';
$max = 30;
$NewDetails = strip_tags($newss['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<span class="news m_none">'.strip_tags($NewDetails,'').'...</span>';
echo '<div class="clear"></div>';
}
?>
</fieldset>
</div>
<!-- DONT MISS end -->
<div class="clear" style="margin: 0 0 20px 0"></div>
<!-- Visual Start -->
<div style="margin: 20px 0 10px 0">
<?php
$sql = "select title, home, video, id from visual WHERE home ='1' order by ID DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$id = $row['id'];
$title = strip_tags($row["title"]);
$video = $row['video'];
?>
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12" style="padding: 0">
<iframe src="https://www.youtube.com/embed/<?=$video?>?rel=0&autoplay=0" frameborder="0" style="width: 100%; height: 300px" allowfullscreen></iframe>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" style="padding: 0">
<div style="background: #00ADEE; height: 270px; margin: 15px 0 15px 0">
<div style="font-family: Times New Roman; font-size: 28px; color: #ffffff; padding: 10px 0 10px 15px; border-bottom: 3px solid #7DD2F6"><B>VIDEO</B></div>
<div style="font-size: 22px; color: #000; padding: 30px 0 10px 15px"><B><?=$title?></B></div>
<div style="margin: 25px 0 0 0; font-size: 26px; color: #fff; padding: 15px"><a target="_blank" style="color: #fff" href="https://googly.notunshomoy.com"><B>আরো ভিডিও ></B></a></div>
</div>
</div>
<? }?>
</div>
<!--Visual End -->
<div class="clear" style="margin: 0 0 10px 0"></div>
<div style="margin: 25px 0 25px 0"><?php include "adsense_body.html"; ?></div>
<div class="clear"></div>
<!-- For You start -->
<div style="padding: 0 0 0 0">
<fieldset style="border-radius: 6px; padding: 10px; border-color: #cccccc; background: #ffffff">
<legend align="left"><a href="#"><div style="font-size: 26px; color: #00ADEE"><b> FOR YOU </b></div></a></legend>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='2' and id > '".$Ndates."' order by short DESC limit 0,6";
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$titles=str_replace(' ','-',$newss['headline']);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 3) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
echo '<div class="title_cat" style="margin: 0 0 15px 0"><a href="details.php?id='.$id.'"><img class="img_half" src="'.$img.'" align="left" style="margin: 0 15px 30px 15px"></a><span><a style="color: #00ADEE" href="cat.php?cd='.$menu.'"><B>'.$mtitle.'</B></a><BR></span><a href="details.php?id='.$id.'"><B>'.strip_tags($newss['headline'],'').'</B></a></div>';
$max = 30;
$NewDetails = strip_tags($newss['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<span class="news m_none">'.strip_tags($NewDetails,'').'...</span>';
echo '<div class="clear"></div>';
}
?>
</fieldset>
</div>
<!-- For You end -->
<div class="clear" style="margin: 0 0 20px 0"></div>
<!-- Dear Diana Start -->
<div style="margin: 20px 0 20px 0">
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE menu='181' order by id DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
?>
<div style="background: #00ADEE; padding: 15px">
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-12" style="padding: 0">
<a href="details.php?id=<?=$id?>"><img src="<?=$imgRoot?><?=$img?>" style="width: 100%; border: 1px solid #ddd; margin-right: 10px" align="left"></a>
</div>
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12" style="padding: 0">
<div style="font-family: Times New Roman; font-size: 28px; color: #ffffff; padding: 10px 0 10px 15px; text-align: center; margin: 0 0 0 15px; border-bottom: 3px solid #7DD2F6"><B>DEAR DIANA</B></div>
<div class="body" style="margin: 30px 0 0 0; text-align: center"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div style="font-size: 16px; color: #fff; padding: 15px; text-align: center; margin: 20px 0 0 0">
ব্যাক্তিগত কিংবা পারিবারিক, স্বাস্থ্য কিংবা ক্যারিয়ার। যে কোন বিষয়ে ডায়নাকে জানান। পরামর্শ পাবেন...
<BR>
[email protected]</div>
</div>
<div class="clear"></div>
</div>
<? }?>
</div>
<!-- Dear Diana End -->
<div class="clear" style="margin: 0 0 20px 0"></div>
<!-- TAKE CARE start -->
<div style="padding: 0 0 0 0">
<fieldset style="border-radius: 6px; padding: 10px; border-color: #cccccc; background: #ffffff">
<legend align="left"><a href="#"><div style="font-size: 26px; color: #00ADEE"><b> TAKE CARE </b></div></a></legend>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='5' and id > '".$Ndates."' order by short DESC limit 0,3";
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$titles=str_replace(' ','-',$newss['headline']);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 3) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
echo '<div class="title_cat" style="margin: 0 0 15px 0"><a href="details.php?id='.$id.'"><img class="img_half" src="'.$img.'" align="left" style="margin: 0 15px 30px 15px"></a><span><a style="color: #00ADEE" href="cat.php?cd='.$menu.'"><B>'.$mtitle.'</B></a><BR></span><a href="details.php?id='.$id.'"><B>'.strip_tags($newss['headline'],'').'</B></a></div>';
$max = 30;
$NewDetails = strip_tags($newss['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<span class="news m_none">'.strip_tags($NewDetails,'').'...</span>';
echo '<div class="clear"></div>';
}
?>
</fieldset>
</div>
<!-- TAKE CARE end -->
<div class="clear" style="margin: 0 0 20px 0"></div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<?php include "ad_right_top.html"; ?>
<style>
.success {background: #DFF0D8; border: 1px solid #D6E9C6; border-radius: 5px; color: #3C763D; padding: 10px 10px 10px 10px; margin: 0 0 15px 0;}
.recomand {background: #eeeeee; border: 1px solid #dddddd; border-radius: 5px; color: #FF0000; padding: 10px 10px 10px 10px; margin: 0 0 15px 0;}
</style>
<?php
if (isset($_POST['Add'])) {
$name = $_POST["name"];
$cell = $_POST["cell"]; $cells = '0'.$cell;
$ans = $_POST["ans"];
$qid = $_POST["qid"];
if ($cell !='') {
$sql = "SELECT cell FROM quiz_ans where qid='".$qid."' and cell='".$cells."' order by id DESC limit 0,1";
$res = $conn->query($sql); $row = $res->fetch_assoc();
$cells = $row["cell"]; $cellss = '0'.$row["cell"];
if ($cell == $cells || $cell == $cellss ) {echo '<div align="center" class="success" style="font-size: 20px"><BR>দূঃখিত<br>আপনি এর আগেও একবার উত্তর দিয়েছেন। <BR><BR></div>';}
else {
if ($name == '') {
echo '<div class="recomand">Please try again with Name, Cell no & Answer</div>';}
else if ($cell == '') {
echo '<div class="recomand">Please try again with Name, Cell no & Answer</div>';}
else if ($ans == '') {
echo '<div class="recomand">Please try again with Name, Cell no & Answer</div>';}
else {
$sql = "INSERT INTO quiz_ans (name, cell, ans, qid) VALUES ('$name', '$cell', '$ans', '$qid')";
$result = $conn->query($sql);
if ($result) {echo '<div align="center" class="success" style="font-size: 20px"><BR>ধন্যবাদ<BR>আপনার উত্তরটি গ্রহণ করা হয়েছে। <BR> সঠিক উত্তর দাতাদের মধ্যে আপনি বিজয়ী হলে আপনার সাথে যোগাযোগ করা হবে। <BR><BR></div>';}
else echo '<div class="recomand">Sorry! you can not be added</div>'; unset($_POST);
}
}
}
}
else {
$sql = "SELECT title, dt, a1, a2, a3, a4, a, id FROM quiz order by id DESC limit 0,1";
$res = $conn->query($sql); $row = $res->fetch_assoc();
$id = $row["id"];
$title = $row["title"];
$dt = $row["dt"];
$a1 = $row["a1"];
$a2 = $row["a2"];
$a3 = $row["a3"];
$a4 = $row["a4"];
$a = $row["a"];
?>
<div class="success">
<div style="margin: 0 0 15px 0; font-weight: bold"><h2><b>ডেইলি গুগলি কুইজ</b></h2></div>
<div style="font-family: SolaimanLipi; font-size: 16px; color: #00974A; margin: 0 0 5px 0">আজকের প্রশ্ন:</div>
<div style="font-family: SolaimanLipi; font-size: 22px; color: #000000"><?=$title?></div>
<div style="font-family: SolaimanLipi; font-size: 20px; color: #000000; margin: 10px 0 0 0">
১. <?=$a1?><BR>
২. <?=$a2?><BR>
৩. <?=$a3?><BR>
৪. <?=$a4?><BR>
</div>
</div>
<form target="_top" name="quiz" action="" method="post" style="margin: 0 0 0 0">
<div class="recomand">
<div style="font-family: SolaimanLipi; font-size: 16px; color: #00974A; margin: 0 0 10px 0">উত্তর:</div>
<input id="name" name="name" type="text" value="Your Name" onfocus="javascript: if (this.value == 'Your Name') this.value = '';" onblur="javascript: if (this.value == '') this.value = 'Your Name';" style="font-family: Arial; font-size: 15px; width: 250px; padding: 4px 0 3px 3px; border: 1px solid #aaaaaa"/>
<div class="clear" style="margin: 0 0 10px 0"></div>
<input id="cell" name="cell" type="text" value="Your Mobile No" onfocus="javascript: if (this.value == 'Your Mobile No') this.value = '';" onblur="javascript: if (this.value == '') this.value = 'Your Mobile No';" style="font-family: Arial; font-size: 15px; width: 200px; padding: 4px 0 3px 3px; border: 1px solid #aaaaaa"/>
<div style="font-family: SolaimanLipi; font-size: 20px; color: #000000; margin: 10px 0 0 0">
<select id="ans" name="ans" style="font-family: Arial; font-size: 15px; padding: 4px 0 5px 3px; background: #fff; border: 1px solid #aaaaaa">
<option value="">Please Select One</option>
<option value="1" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">১. <?=$a1?></option>
<option value="2" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">২. <?=$a2?></option>
<option value="3" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">৩. <?=$a3?></option>
<option value="4" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">৪. <?=$a4?></option>
</select>
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<input type="hidden" name="qid" value="<?=$id?>"/>
<input type="submit" name="Add" value="Submit" style="color: #000; background: #aaaaaa; cursor: pointer; border-radius: 4px; border: 0px; padding: 3px 10px 4px 10px; font-size: 14px; font-family: Arial">
</div>
</form>
<?php } ?>
<?php include "ad_right.html"; ?>
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Blog Start -->
<div style="margin: 20px 0 0 0">
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE menu='199' order by id DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$credit = $row['credit'];
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
?>
<div style="background: #E4E5E6; padding: 15px">
<a href="cat.php?cd=199">
<div style="font-family: Times New Roman; font-size: 28px; color: #00ADEE; padding: 0 0 10px 0; margin: 0 0 30px 0; text-align: center; border-bottom: 3px solid #666666"><B>BLOG</B></div></a>
<div align="center"><a href="details.php?id=<?=$id?>"><img class="img_round" src="<?=$img?>" style="width: 250px; height: 150px; border: 1px solid #ddd"></a></div>
<div class="body" style="margin: 30px 0 5px 0; text-align: center"><a style="color: #00ADEE; font-size: 18px" href="details.php?id=<?=$id?>"><B><?=$credit?></B></a></div>
<div class="title_cat" style="margin: 0 0 0 0; text-align: center"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div class="clear"></div>
</div>
<? }?>
</div>
<!-- Blog End -->
<!-- <div class="clear" style="margin: 0 0 15px 0"></div>
<a href="cat.php?cd=211"><img border="0" src="ad/personal.gif" width="100%" style="border: 1px solid #ddd"></a> -->
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Latest + Most Read -->
<div id="i2softTAB" class="i2softTABS" style="margin: 0 0 0 0; border: 0px solid #E2313A">
<div id="rm" class="tabs">
<ul>
<li style="width:50%"><a href="javascript:" class="button oppened">সর্বশেষ সংবাদ</a></li>
<li style="width:50%"><a href="javascript:" class="button">সর্বাধিক পঠিত</a></li>
</ul>
</div>
<div class="clear" style="margin: 5px 0 0 0"></div>
<div id="i2softLatest" class="tabs_content">
<div style="display: block;" class="each_tab data">
<!-- <div id="i2softSlim"> -->
<ul style="margin: 0 0 0 0">
<!-- Latest News Start -->
<?php
$sql = "select headline, details, imagefile, id from news where status !='1' order by id DESC limit 0,5";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$imagefile = $row["imagefile"];
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
echo '<img src="'.$imgRoot.''.$img.'" style="margin: 10px 10px 0 0; width: 80px; height: 50px" align="left">';
?>
<div class="bulletDETAILS" align="left" style="padding-top: 5px"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div class="clear"></div>
<div style="margin: 15px 0 0 0; border-bottom: 1px dotted #d1cbb4"></div>
<? } ?>
<!-- Latest News End -->
</ul>
<!-- <script>$('#i2softSlim').slimScroll({height: '275px', wheelStep: '3', railVisible: true, alwaysVisible: true, color: '#012642', size: '12px', position: 'right'});</script></div> -->
</div>
<div style="display: none;" class="each_tab data">
<!-- <div id="i2softSlims"> -->
<ul style="margin: 0 0 0 0">
<!-- Most Read News Start -->
<?php
$sql = "select headline, effect_to, details, imagefile, id from news where id > '".$Ndates."' order by count DESC limit 0,5";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$imagefile = $row["imagefile"];
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
echo '<img src="'.$imgRoot.''.$img.'" style="margin: 10px 10px 0 0; width: 80px; height: 50px" align="left">';
?>
<div class="bulletDETAILS" align="left" style="padding-top: 5px"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div class="clear"></div>
<div style="margin: 15px 0 0 0; border-bottom: 1px dotted #d1cbb4"></div>
<? } ?>
<!-- Most Read News End -->
</ul>
<!-- <script>$('#i2softSlims').slimScroll({height: '275px', wheelStep: '3', railVisible: true, alwaysVisible: true, color: '#012642', size: '12px', position: 'right'});</script></div> -->
</div>
</div>
<div class="clear" style="margin: 0 0 15px 0"></div>
<script type="text/javascript">
$("#i2softTAB .tabs_content .each_tab:first").show();
$("#i2softTAB .tabs a:first").addClass("oppened");
$(".i2softTABS .button").live("click",function(){
var index = $('a',$(this).parent().parent()).index(this);
var allA = $("#i2softTAB .tabs a");
allA.not( allA.eq(index) ).removeClass("oppened");
var allUl = $("#i2softTAB .tabs_content .each_tab");
var toShow = allUl.eq(index);
var toHide = allUl.not(toShow).hide();
if( toShow.is(':hidden') ){
$(this).addClass("oppened");
toShow.show();
}
else{
}
});
</script>
</div>
<!-- Latest + Most Read -->
<div class="clear"></div>
<?php include "adsense_article.html"; ?>
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Right Segment Start -->
<?php
$sql = 'select title, id from menu where sub <1 and status ="1" and align="2" order by short DESC';
//$sql = 'select title, id from menu where id="117" or id="119" order by short DESC';
@$result=$conn->query($sql);
$data = array();
$t='0'; $c='0';
while($row = $result->fetch_assoc())
array_push($data, $row);
foreach($data as $catagory): $c++;
if ($c=='1' || $c=='2') {echo '<a href="cat.php?cd='.$catagory['id'].'"><div style="background: #00A8EC; color: #ffffff; font-size: 22px; padding: 2px 0 1px 0; margin: 15px 0 0 0; font-weight:bold; text-align:center">'.$catagory['title'].' </div></a>';}
else {echo '<a href="cat.php?cd='.$catagory['id'].'"><div style="background: #E4E5E6; color: #00ADEE; font-size: 22px; padding: 2px 0 1px 0; margin: 15px 0 5px 0; font-weight:bold; text-align:center; border-bottom: 2px solid #B3B5B7">'.$catagory['title'].' </div></a>';}
$sql = "SELECT hanger, headline, menu, details, effect_to, imagefile, id FROM news WHERE menu='".$catagory['id']."' order by id DESC limit 0,1";
@$news_result=$conn->query($sql);
$cats = array();
while($news = $news_result->fetch_assoc()) {
$id = $news['id'];
$headline = $news['headline'];
$t++; array_push($cats, $news['id']);
if ($c % 4) {$clear ='';} else {$clear ='clear'; }
$imagefile = $news["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $news['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($c=='1' || $c=='2') {
echo '<div style="background: #EAF5FC; border: 1px solid #00A8EC; padding: 5px">
<div style="max-height: 150px; overflow: hidden"><a href="details.php?id='.$id.'"><img class="lazy" data-original="'.$imgRoot.''.$img.'" style="width: 100%"></a></div>
<div style="margin: 10px 20px 5px 0">
<div class="body_title" style="margin: 3px 5px 0 5px"><a href="details.php?id='.$id.'"><B>'.$headline.'</B></a></div>
</div></div>
<div class="clear" style="margin: 0 0 10px 0"></div>';
} else {
echo '
<div style="max-height: 150px; overflow: hidden"><a href="details.php?id='.$id.'"><img class="lazy" data-original="'.$imgRoot.''.$img.'" style="width: 100%"></a></div>
<div style="margin: 10px 20px 5px 0">
<div class="body_title" style="margin: 3px 0 0 0"><a href="details.php?id='.$id.'"><B>'.$headline.'</B></a></div>
</div>
<div class="clear" style="margin: 0 0 30px 0"></div>';
}
}$t='0';
echo '<div class="'.$clear.'"></div>';
endforeach;
?>
<!-- Right Segment End -->
<?php include "adsense_article.html"; ?>
<div class="clear" style="margin: 0 0 0 0"></div>
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<div style="margin: 25px 15px 25px 15px"><?php include "adsense_body.html"; ?></div>
<div class="clear"></div>
<div class="clear" style="margin: 0 0 25px 0"></div>
<!-- Hit List Start -->
<div style="margin: 20px 15px 0 15px; padding: 15px; background: #E4E5E6">
<div style="font-family: Times New Roman; font-size: 28px; color: #00ADEE; padding: 5px 0 15px 15px; text-align: center; margin: 0 0 15px 0; border-bottom: 3px solid #666666"><B>HIT LIST</B></div>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='4' and id > '".$Ndates."' order by short DESC limit 0,4";
$res = $conn->query($sql);
$t='0'; $clear = '';
while($row = $res->fetch_assoc()) {$t++;
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t =='1') {$tcleft= '0'; $tcright= '15px';}
else if ($t =='2') {$tcleft= '0'; $tcright= '5px';}
else if ($t =='3') {$tcleft= '0'; $tcright= '15px';}
else if ($t =='4') {$tcleft= '0'; $tcright= '5px';}
else {$tcright='0'; $tcright='0';}
if ($t % 2) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
?>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 m_none" style="padding: 0 <?=$tcright?> 30px <?=$tcleft?>">
<div><a href="details.php?id=<?=$id?>"><img class="img_large lazy" src="<?=$imgRoot?><?=$img?>" style="border: 1px solid #ddd; margin-right: 10px" align="left"></a></div>
<div class="clear"></div>
<div class="body" style="margin: 5px 0 0 0"><a style="color: #00ADEE" href="cat.php?cd=<?=$menu?>"><B><?=$mtitle?></B></a></div>
<div class="title_cat" style="margin: 5px 0 0 0"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
</div><div class="<?=$clear?>" style="margin: 0 0 0 0"></div>
<?
echo '<div class="d_none t_none"><div class="titleBTM" style="margin: 0 0 0 10px"><a line-height: 20px" href="details.php?id='.$id.'"><img class="cat_div route" border="0" src="'.$imgRoot.''.$img.'" style="margin-right: 7px" align="left">';
echo ''.$headline.'</a></div><div class="clear" style="margin: 0 0 20px 0"></div></div>';
}?>
<div class="clear"></div>
</div>
<!-- Hit List End -->
<div class="clear" style="margin: 0 0 25px 0"></div>
<!-- <div style="background: #E4E5E6; color: #00ADEE; text-align: center; font-size: 32px; padding: 12px 0 10px 0; margin: 0 15px 20px 15px"><B>POPULAR 50</B></div> -->
<div style="background: #E4E5E6; color: #00ADEE; text-align: center; font-size: 32px; padding: 12px 0 10px 0; margin: 0 15px 20px 15px"><B>HOT WEEK</B></div>
<?php
//$sql = 'select hanger, headline, menu, details, imagefile, effect_to, id from news WHERE id > '.$Ndates.' order by count DESC limit '.$start.','.$limit.'';
$sql = 'select hanger, headline, menu, details, imagefile, effect_to, id from news WHERE showhome ="6" order by id DESC limit 0,20';
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$url = str_replace('-','/',$newss['effect_to']);
$titles=str_replace(' ','-',$newss['headline']);
$headline = strip_tags($newss["headline"]);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
//$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
//$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 4) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
?>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" style="padding: 0 15px 30px 15px">
<div class="img_dc"><a href="details.php?id=<?=$id?>"><img class="img_dc img_zoom lazy" src="<?=$img?>" style="border: 1px solid #ddd; margin-right: 10px" align="left"></a></div>
<div class="clear"></div>
<div class="body" style="margin: 5px 0 0 0"><a style="color: #00ADEE" href="cat.php?cd=<?=$menu?>"><B><?=$mtitle?></B></a></div>
<div class="body" style="margin: 5px 0 0 0"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div><div class="clear" style="margin: 0 0 25px 0"></div>
</div><div class="<?=$clear?>"></div>
<?php
}
?>
<div class="<?=$clear?>"></div>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js" ></script>
<script src="images/js.scrollPagination.js"></script>
<div id="get-list-view"></div>
<div class="clear" style="margin: 0 0 25px 0"></div>
<div id="load-msg"></div>
<script>
$(document).loadScrollData(0,{
limit : 4,
listingId : "#get-list-view",
loadMsgId : '#load-msg',
ajaxUrl : 'ajaxLoading.php',
loadingMsg : '<div style="padding: 10px; font-size: 20px; font-weight: bold; background: #E4E5E6; color: #00ADEE; text-align: center; border-radius: 30px; margin: 0 15px 40px 15px"></i>LOADING</div>',
});
</script> -->
</div>
<div class="clear"></div>
<!-- Facebook Popup -->
<script type="text/javascript">
$(document).ready(function () {
$('#facebook_likebox').slideDown(1500);
$('#closefacebook_likebox').click(function(){
$(this).fadeOut();
$('#facebook_Likebox').css('display','none');
$('#facebook_likebox').slideUp(1500);
});
});
</script>
<div class="m_none"><div style="position: fixed; right: 0; margin-bottom: 1px; border: 1px solid #ccc; background:#f5f5f5; z-index: 999; bottom: 0px; display: block;" id="facebook_likebox">
<div style="position: absolute; right: 0px; margin: -10px -5px 0 0; z-index: 1000;">
<span id="closefacebook_likebox" style="cursor:pointer"><img height="20" src="images/xCloseButton.png" border="0" /></span>
</div>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like-box href="<?=$fb_like_page?>" width="280" height="180" show_faces="true" border_color="#fff" stream="false" header="false">
</fb:like-box>
</div></div>
<!-- Facebook Popup -->
<script type="text/javascript" src="images/jquery.lazyload.min.js"></script>
<script>
$(document).ready(function(){
$("img.lazy").lazyload({effect : "fadeIn" });
});
</script>
</div>
<?php include "footer.php"; ?>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
include "settings.php";
include "_db.php";
// set timezone
date_default_timezone_set('Asia/Dhaka'); // CDT
$info = getdate();
$date = $info['mday'];
$month = $info['mon'];
$year = $info['year'];
$hour = $info['hours'];
$min = $info['minutes'];
$sec = $info['seconds'];
//$currentDate = "$year-$month-$date $hour:$min:$sec";
//$somoy = "$hour:$min:$sec";
if ($month<10) $month='0'.$month; if ($date<10) $date='0'.$date;
$today="$year/$month/$date";
//$today="2021/04/05";
// set timezone
$imgRoot = '';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?=$title?></title>
<meta name="description" content="<?=$description?>">
<link href="images/favicon.png" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="images/styles.css" rel="stylesheet" type="text/css" media="screen,print">
<meta name="keywords" content="<?=$keyword?>">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.notunshomoy.com">
<meta property="og:image" content="https://www.notunshomoy.com/images/no-image.jpg">
<meta property="og:site_name" content="Daiy Notunshomoy">
<meta http-equiv="developer" content="Developed By: SM. Kafi
Powered by : i2soft Technology Limited
Web address : http://www.i2softbd.com
Address : 53 Modern Mansion (11th Floor), Motijheel C/A, Dhaka - 1000, Bangladesh, Cell : 01711112420, 01611112420" />
<meta http-equiv="refresh" content="1500"/>
<meta property="fb:pages" content="<?=$fbPGid?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type='text/javascript' src='//platform-api.sharethis.com/js/sharethis.js#property=5bd978948a1fb80011151c49&product=inline-share-buttons' async='async'></script>
</head>
<script language="javascript" src="images/jquery-1.7.1.min.js"></script>
<script language="javascript" src="images/jquery.slimscroll.js"></script>
<link rel="stylesheet" type="text/css" href="images/flexslider.css">
<script src="images/jquery.flexslider.js"></script>
<script type="text/javascript" src="images/ajaxRouter.js"></script>
<script>
(function($) {
$.fn.menumaker = function(options) {
var cssmenu = $(this), settings = $.extend({
title: "Menu",
format: "dropdown",
sticky: false
}, options);
return this.each(function() {
cssmenu.prepend('<div id="menu-button" style="color:#fff; padding-left: 15px; background: url(images/menuALL.png) no-repeat 10px 12px"></div>');
$(this).find("#menu-button").on('click', function(){
$(this).toggleClass('menu-opened');
var mainmenu = $(this).next('ul');
if (mainmenu.hasClass('open')) {
mainmenu.hide().removeClass('open');
}
else {
mainmenu.show().addClass('open');
if (settings.format === "dropdown") {
mainmenu.find('ul').show();
}
}
});
cssmenu.find('li ul').parent().addClass('has-sub');
multiTg = function() {
cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>');
cssmenu.find('.submenu-button').on('click', function() {
$(this).toggleClass('submenu-opened');
if ($(this).siblings('ul').hasClass('open')) {
$(this).siblings('ul').removeClass('open').hide();
}
else {
$(this).siblings('ul').addClass('open').show();
}
});
};
if (settings.format === 'multitoggle') multiTg();
else cssmenu.addClass('dropdown');
if (settings.sticky === true) cssmenu.css('position', 'fixed');
resizeFix = function() {
if ($( window ).width() > 768) {
cssmenu.find('ul').show();
}
if ($(window).width() <= 768) {
cssmenu.find('ul').hide().removeClass('open');
}
};
resizeFix();
return $(window).on('resize', resizeFix);
});
};
})(jQuery);
(function($){
$(document).ready(function(){
$("#cssmenu").menumaker({
title: "Menu",
format: "multitoggle"
});
$('.flexslider').flexslider({
animation: "slide",
slideshow:true,
controlNav:true,
pauseOnHover:true
});
$('.bxslider').bxSlider({
mode: 'fade',
captions: true,
auto:true,
pager: true,
});
$('.sheershaphtGallery').mouseover(function(){
$('div.bx-controls-direction').css('display','block');
});
$('.sheershaphtGallery').mouseout(function(){
$('div.bx-controls-direction').css('display','none');
});
$('.sheershaphtGallery').hover(function(){
$(this).find('div#phtglryTT').slideDown();
},function(){$(this).find('div#phtglryTT').slideUp();
});
var pht_gal=0;
$('a.bx-next').click(function(){
pht_gal = pht_gal + 1;
if(pht_gal==9) window.open('gallery.php');
});
});
})(jQuery);
function menus() {
if(document.getElementById('menus').style.display=='none'){
document.getElementById('menus').style.display='block';
}else{
document.getElementById('menus').style.display='none';
}
}
</script>
<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
<?php include "top.php"; ?>
<div class="container" style="padding:0 0 0 0">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 right" style="margin: 0"><?php include "ad_banner_left.html"; ?></div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" style="padding: 0 50px 0 50px">
<center><a href="index.php"><img border="0" class="logo" src="images/logo.png"></a></center>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 right" style="margin: 0"><?php include "ad_banner_right.html"; ?></div>
<div class="clear"></div>
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12 m_none"><?php include "time.php"; ?></div>
<div align="right" class="col-lg-2 col-md-2 col-sm-2 col-xs-12 m_none"><a target="_blank" href="login.php">লগইন করুন</a></div>
<div class="clear"></div>
</div>
<div class="clear" style="margin: 0 0 5px 0"></div>
<div style="background: #282D30; padding: 0px">
<div class="container" style="padding: 0px">
<!-- Menu Start -->
<?php include "menu.php"; ?>
<!-- Menu End -->
</div>
</div>
</div>
<?php include "menu-extra.php"; ?>
</div>
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Container Start -->
<div class="container" style="padding: 0px">
<?php include "ad_top.html"; ?>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="padding: 0">
<!-- Lead News Start -->
<div class="flexsliderr" style="background: #E4E5E6">
<ul class="slidess">
<?php
$dateSQ = "SELECT MAX(id) AS last FROM news";
$dateRES = $conn->query($dateSQ);
$new = $dateRES->fetch_assoc();
$dates = $new['last'];
$Ndates = ($dates-100);
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='1' and id > '".$Ndates."' order by short DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
$img = str_replace('_th','',$img);
?>
<li>
<div><a href="details.php?id=<?=$id?>"><img src="<?=$imgRoot?><?=$img?>" alt="<?=$headline?>" style="margin-right: 7px; width: 100%"></a></div>
<div align="center" style="padding: 15px">
<div align="center" style="margin: 10px 0 10px 0"><a style="font-size: 36px" href="details.php?id=<?=$id?>"><b><?=$headline?></b></a></div>
<?php
$max = 40;
$NewDetails = strip_tags($row['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<div style="font-size: 20px">'.strip_tags($NewDetails,'').' <a style="color: #116DBD" href="details.php?id='.$id.'"> ...বিস্তারিত</a></div>';
?>
</div>
</li>
<? } ?>
</ul>
<!-- Lead News End -->
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<!-- Body News Start -->
<div style="margin: 20px 0 0 0">
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='1' and id > '".$Ndates."' order by short DESC limit 1,6";
$res = $conn->query($sql);
$t='0'; $clear = '';
while($row = $res->fetch_assoc()) {$t++;
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t =='1') {$tcleft= '0'; $tcright= '20px';}
else if ($t =='2') {$tcleft= '5px'; $tcright= '5px';}
else if ($t =='3') {$tcleft= '20px'; $tcright= '0';}
else if ($t =='4') {$tcleft= '0'; $tcright= '20px';}
else if ($t =='5') {$tcleft= '5px'; $tcright= '5px';}
else if ($t =='6') {$tcleft= '20px'; $tcright= '0';}
else {$tcright='0'; $tcright='0';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
if ($t % 3) {$float = 'left'; $clear ='';} else {$float = 'right'; $clear ='clear'; }
?>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 m_none" style="padding: 0 <?=$tcright?> 30px <?=$tcleft?>">
<div class="img_dc"><a href="details.php?id=<?=$id?>"><img class="img_dc img_zoom lazy" src="<?=$imgRoot?><?=$img?>" style="border: 1px solid #ddd; margin-right: 10px" align="left"></a></div>
<div class="clear"></div>
<div class="body" style="margin: 5px 0 0 0"><a style="color: #00ADEE" href="cat.php?cd=<?=$menu?>"><B><?=$mtitle?></B></a></div>
<div class="body" style="margin: 5px 0 0 0"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
</div>
<?
echo '<div class="d_none t_none"><div class="titleBTM" style="margin: 0 0 0 10px"><a line-height: 20px" href="details.php?id='.$id.'"><img class="cat_div route" border="0" src="'.$imgRoot.''.$img.'" style="margin-right: 7px" align="left">';
echo ''.$headline.'</a></div><div class="clear" style="margin: 0 0 20px 0"></div></div>';
echo '<div class="'.$clear.'" style="margin: 0 0 0 0"></div>';
} ?>
</div>
<!-- Body News End -->
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<?php include "adsense_link.html"; ?>
<div class="clear" style="margin: 0 0 10px 0"></div>
<!-- DONT MISS start -->
<div style="padding: 0 0 0 0">
<fieldset style="border-radius: 6px; padding: 10px; border-color: #cccccc; background: #ffffff">
<legend align="left"><a href="#"><div style="font-size: 26px; color: #00ADEE"><b> DONT MISS </b></div></a></legend>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='3' and id > '".$Ndates."' order by short DESC limit 0,3";
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$titles=str_replace(' ','-',$newss['headline']);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 3) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
echo '<div class="title_cat" style="margin: 0 0 15px 0"><a href="details.php?id='.$id.'"><img class="img_half" src="'.$img.'" align="left" style="margin: 0 15px 30px 15px"></a><span><a style="color: #00ADEE" href="cat.php?cd='.$menu.'"><B>'.$mtitle.'</B></a><BR></span><a href="details.php?id='.$id.'"><B>'.strip_tags($newss['headline'],'').'</B></a></div>';
$max = 30;
$NewDetails = strip_tags($newss['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<span class="news m_none">'.strip_tags($NewDetails,'').'...</span>';
echo '<div class="clear"></div>';
}
?>
</fieldset>
</div>
<!-- DONT MISS end -->
<div class="clear" style="margin: 0 0 20px 0"></div>
<!-- Visual Start -->
<div style="margin: 20px 0 10px 0">
<?php
$sql = "select title, home, video, id from visual WHERE home ='1' order by ID DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$id = $row['id'];
$title = strip_tags($row["title"]);
$video = $row['video'];
?>
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12" style="padding: 0">
<iframe src="https://www.youtube.com/embed/<?=$video?>?rel=0&autoplay=0" frameborder="0" style="width: 100%; height: 300px" allowfullscreen></iframe>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" style="padding: 0">
<div style="background: #00ADEE; height: 270px; margin: 15px 0 15px 0">
<div style="font-family: Times New Roman; font-size: 28px; color: #ffffff; padding: 10px 0 10px 15px; border-bottom: 3px solid #7DD2F6"><B>VIDEO</B></div>
<div style="font-size: 22px; color: #000; padding: 30px 0 10px 15px"><B><?=$title?></B></div>
<div style="margin: 25px 0 0 0; font-size: 26px; color: #fff; padding: 15px"><a target="_blank" style="color: #fff" href="https://googly.notunshomoy.com"><B>আরো ভিডিও ></B></a></div>
</div>
</div>
<? }?>
</div>
<!--Visual End -->
<div class="clear" style="margin: 0 0 10px 0"></div>
<div style="margin: 25px 0 25px 0"><?php include "adsense_body.html"; ?></div>
<div class="clear"></div>
<!-- For You start -->
<div style="padding: 0 0 0 0">
<fieldset style="border-radius: 6px; padding: 10px; border-color: #cccccc; background: #ffffff">
<legend align="left"><a href="#"><div style="font-size: 26px; color: #00ADEE"><b> FOR YOU </b></div></a></legend>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='2' and id > '".$Ndates."' order by short DESC limit 0,6";
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$titles=str_replace(' ','-',$newss['headline']);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 3) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
echo '<div class="title_cat" style="margin: 0 0 15px 0"><a href="details.php?id='.$id.'"><img class="img_half" src="'.$img.'" align="left" style="margin: 0 15px 30px 15px"></a><span><a style="color: #00ADEE" href="cat.php?cd='.$menu.'"><B>'.$mtitle.'</B></a><BR></span><a href="details.php?id='.$id.'"><B>'.strip_tags($newss['headline'],'').'</B></a></div>';
$max = 30;
$NewDetails = strip_tags($newss['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<span class="news m_none">'.strip_tags($NewDetails,'').'...</span>';
echo '<div class="clear"></div>';
}
?>
</fieldset>
</div>
<!-- For You end -->
<div class="clear" style="margin: 0 0 20px 0"></div>
<!-- Dear Diana Start -->
<div style="margin: 20px 0 20px 0">
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE menu='181' order by id DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
?>
<div style="background: #00ADEE; padding: 15px">
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-12" style="padding: 0">
<a href="details.php?id=<?=$id?>"><img src="<?=$imgRoot?><?=$img?>" style="width: 100%; border: 1px solid #ddd; margin-right: 10px" align="left"></a>
</div>
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12" style="padding: 0">
<div style="font-family: Times New Roman; font-size: 28px; color: #ffffff; padding: 10px 0 10px 15px; text-align: center; margin: 0 0 0 15px; border-bottom: 3px solid #7DD2F6"><B>DEAR DIANA</B></div>
<div class="body" style="margin: 30px 0 0 0; text-align: center"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div style="font-size: 16px; color: #fff; padding: 15px; text-align: center; margin: 20px 0 0 0">
ব্যাক্তিগত কিংবা পারিবারিক, স্বাস্থ্য কিংবা ক্যারিয়ার। যে কোন বিষয়ে ডায়নাকে জানান। পরামর্শ পাবেন...
<BR>
[email protected]</div>
</div>
<div class="clear"></div>
</div>
<? }?>
</div>
<!-- Dear Diana End -->
<div class="clear" style="margin: 0 0 20px 0"></div>
<!-- TAKE CARE start -->
<div style="padding: 0 0 0 0">
<fieldset style="border-radius: 6px; padding: 10px; border-color: #cccccc; background: #ffffff">
<legend align="left"><a href="#"><div style="font-size: 26px; color: #00ADEE"><b> TAKE CARE </b></div></a></legend>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='5' and id > '".$Ndates."' order by short DESC limit 0,3";
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$titles=str_replace(' ','-',$newss['headline']);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 3) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
echo '<div class="title_cat" style="margin: 0 0 15px 0"><a href="details.php?id='.$id.'"><img class="img_half" src="'.$img.'" align="left" style="margin: 0 15px 30px 15px"></a><span><a style="color: #00ADEE" href="cat.php?cd='.$menu.'"><B>'.$mtitle.'</B></a><BR></span><a href="details.php?id='.$id.'"><B>'.strip_tags($newss['headline'],'').'</B></a></div>';
$max = 30;
$NewDetails = strip_tags($newss['details'],'');
$words = explode(" ", $NewDetails);
$words = array_filter($words);
$words = implode(" ", $words);
$words = explode(" ", $words);
$count = count($words)+1;
if ($count > $max) {
$NewDetails = "";
for ($i = 0; $i < $max; $i++) {
$NewDetails .= $words[$i] . " ";
}
$NewDetails .= "";
}
echo '<span class="news m_none">'.strip_tags($NewDetails,'').'...</span>';
echo '<div class="clear"></div>';
}
?>
</fieldset>
</div>
<!-- TAKE CARE end -->
<div class="clear" style="margin: 0 0 20px 0"></div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<?php include "ad_right_top.html"; ?>
<style>
.success {background: #DFF0D8; border: 1px solid #D6E9C6; border-radius: 5px; color: #3C763D; padding: 10px 10px 10px 10px; margin: 0 0 15px 0;}
.recomand {background: #eeeeee; border: 1px solid #dddddd; border-radius: 5px; color: #FF0000; padding: 10px 10px 10px 10px; margin: 0 0 15px 0;}
</style>
<?php
if (isset($_POST['Add'])) {
$name = $_POST["name"];
$cell = $_POST["cell"]; $cells = '0'.$cell;
$ans = $_POST["ans"];
$qid = $_POST["qid"];
if ($cell !='') {
$sql = "SELECT cell FROM quiz_ans where qid='".$qid."' and cell='".$cells."' order by id DESC limit 0,1";
$res = $conn->query($sql); $row = $res->fetch_assoc();
$cells = $row["cell"]; $cellss = '0'.$row["cell"];
if ($cell == $cells || $cell == $cellss ) {echo '<div align="center" class="success" style="font-size: 20px"><BR>দূঃখিত<br>আপনি এর আগেও একবার উত্তর দিয়েছেন। <BR><BR></div>';}
else {
if ($name == '') {
echo '<div class="recomand">Please try again with Name, Cell no & Answer</div>';}
else if ($cell == '') {
echo '<div class="recomand">Please try again with Name, Cell no & Answer</div>';}
else if ($ans == '') {
echo '<div class="recomand">Please try again with Name, Cell no & Answer</div>';}
else {
$sql = "INSERT INTO quiz_ans (name, cell, ans, qid) VALUES ('$name', '$cell', '$ans', '$qid')";
$result = $conn->query($sql);
if ($result) {echo '<div align="center" class="success" style="font-size: 20px"><BR>ধন্যবাদ<BR>আপনার উত্তরটি গ্রহণ করা হয়েছে। <BR> সঠিক উত্তর দাতাদের মধ্যে আপনি বিজয়ী হলে আপনার সাথে যোগাযোগ করা হবে। <BR><BR></div>';}
else echo '<div class="recomand">Sorry! you can not be added</div>'; unset($_POST);
}
}
}
}
else {
$sql = "SELECT title, dt, a1, a2, a3, a4, a, id FROM quiz order by id DESC limit 0,1";
$res = $conn->query($sql); $row = $res->fetch_assoc();
$id = $row["id"];
$title = $row["title"];
$dt = $row["dt"];
$a1 = $row["a1"];
$a2 = $row["a2"];
$a3 = $row["a3"];
$a4 = $row["a4"];
$a = $row["a"];
?>
<div class="success">
<div style="margin: 0 0 15px 0; font-weight: bold"><h2><b>ডেইলি গুগলি কুইজ</b></h2></div>
<div style="font-family: SolaimanLipi; font-size: 16px; color: #00974A; margin: 0 0 5px 0">আজকের প্রশ্ন:</div>
<div style="font-family: SolaimanLipi; font-size: 22px; color: #000000"><?=$title?></div>
<div style="font-family: SolaimanLipi; font-size: 20px; color: #000000; margin: 10px 0 0 0">
১. <?=$a1?><BR>
২. <?=$a2?><BR>
৩. <?=$a3?><BR>
৪. <?=$a4?><BR>
</div>
</div>
<form target="_top" name="quiz" action="" method="post" style="margin: 0 0 0 0">
<div class="recomand">
<div style="font-family: SolaimanLipi; font-size: 16px; color: #00974A; margin: 0 0 10px 0">উত্তর:</div>
<input id="name" name="name" type="text" value="Your Name" onfocus="javascript: if (this.value == 'Your Name') this.value = '';" onblur="javascript: if (this.value == '') this.value = 'Your Name';" style="font-family: Arial; font-size: 15px; width: 250px; padding: 4px 0 3px 3px; border: 1px solid #aaaaaa"/>
<div class="clear" style="margin: 0 0 10px 0"></div>
<input id="cell" name="cell" type="text" value="Your Mobile No" onfocus="javascript: if (this.value == 'Your Mobile No') this.value = '';" onblur="javascript: if (this.value == '') this.value = 'Your Mobile No';" style="font-family: Arial; font-size: 15px; width: 200px; padding: 4px 0 3px 3px; border: 1px solid #aaaaaa"/>
<div style="font-family: SolaimanLipi; font-size: 20px; color: #000000; margin: 10px 0 0 0">
<select id="ans" name="ans" style="font-family: Arial; font-size: 15px; padding: 4px 0 5px 3px; background: #fff; border: 1px solid #aaaaaa">
<option value="">Please Select One</option>
<option value="1" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">১. <?=$a1?></option>
<option value="2" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">২. <?=$a2?></option>
<option value="3" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">৩. <?=$a3?></option>
<option value="4" style="font-family: SolaimanLipi; font-size: 20px; color: #000000">৪. <?=$a4?></option>
</select>
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<input type="hidden" name="qid" value="<?=$id?>"/>
<input type="submit" name="Add" value="Submit" style="color: #000; background: #aaaaaa; cursor: pointer; border-radius: 4px; border: 0px; padding: 3px 10px 4px 10px; font-size: 14px; font-family: Arial">
</div>
</form>
<?php } ?>
<?php include "ad_right.html"; ?>
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Blog Start -->
<div style="margin: 20px 0 0 0">
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE menu='199' order by id DESC limit 0,1";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$credit = $row['credit'];
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
?>
<div style="background: #E4E5E6; padding: 15px">
<a href="cat.php?cd=199">
<div style="font-family: Times New Roman; font-size: 28px; color: #00ADEE; padding: 0 0 10px 0; margin: 0 0 30px 0; text-align: center; border-bottom: 3px solid #666666"><B>BLOG</B></div></a>
<div align="center"><a href="details.php?id=<?=$id?>"><img class="img_round" src="<?=$img?>" style="width: 250px; height: 150px; border: 1px solid #ddd"></a></div>
<div class="body" style="margin: 30px 0 5px 0; text-align: center"><a style="color: #00ADEE; font-size: 18px" href="details.php?id=<?=$id?>"><B><?=$credit?></B></a></div>
<div class="title_cat" style="margin: 0 0 0 0; text-align: center"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div class="clear"></div>
</div>
<? }?>
</div>
<!-- Blog End -->
<!-- <div class="clear" style="margin: 0 0 15px 0"></div>
<a href="cat.php?cd=211"><img border="0" src="ad/personal.gif" width="100%" style="border: 1px solid #ddd"></a> -->
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Latest + Most Read -->
<div id="i2softTAB" class="i2softTABS" style="margin: 0 0 0 0; border: 0px solid #E2313A">
<div id="rm" class="tabs">
<ul>
<li style="width:50%"><a href="javascript:" class="button oppened">সর্বশেষ সংবাদ</a></li>
<li style="width:50%"><a href="javascript:" class="button">সর্বাধিক পঠিত</a></li>
</ul>
</div>
<div class="clear" style="margin: 5px 0 0 0"></div>
<div id="i2softLatest" class="tabs_content">
<div style="display: block;" class="each_tab data">
<!-- <div id="i2softSlim"> -->
<ul style="margin: 0 0 0 0">
<!-- Latest News Start -->
<?php
$sql = "select headline, details, imagefile, id from news where status !='1' order by id DESC limit 0,5";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$imagefile = $row["imagefile"];
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
echo '<img src="'.$imgRoot.''.$img.'" style="margin: 10px 10px 0 0; width: 80px; height: 50px" align="left">';
?>
<div class="bulletDETAILS" align="left" style="padding-top: 5px"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div class="clear"></div>
<div style="margin: 15px 0 0 0; border-bottom: 1px dotted #d1cbb4"></div>
<? } ?>
<!-- Latest News End -->
</ul>
<!-- <script>$('#i2softSlim').slimScroll({height: '275px', wheelStep: '3', railVisible: true, alwaysVisible: true, color: '#012642', size: '12px', position: 'right'});</script></div> -->
</div>
<div style="display: none;" class="each_tab data">
<!-- <div id="i2softSlims"> -->
<ul style="margin: 0 0 0 0">
<!-- Most Read News Start -->
<?php
$sql = "select headline, effect_to, details, imagefile, id from news where id > '".$Ndates."' order by count DESC limit 0,5";
$res = $conn->query($sql);
while($row = $res->fetch_assoc()) {
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$imagefile = $row["imagefile"];
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
echo '<img src="'.$imgRoot.''.$img.'" style="margin: 10px 10px 0 0; width: 80px; height: 50px" align="left">';
?>
<div class="bulletDETAILS" align="left" style="padding-top: 5px"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
<div class="clear"></div>
<div style="margin: 15px 0 0 0; border-bottom: 1px dotted #d1cbb4"></div>
<? } ?>
<!-- Most Read News End -->
</ul>
<!-- <script>$('#i2softSlims').slimScroll({height: '275px', wheelStep: '3', railVisible: true, alwaysVisible: true, color: '#012642', size: '12px', position: 'right'});</script></div> -->
</div>
</div>
<div class="clear" style="margin: 0 0 15px 0"></div>
<script type="text/javascript">
$("#i2softTAB .tabs_content .each_tab:first").show();
$("#i2softTAB .tabs a:first").addClass("oppened");
$(".i2softTABS .button").live("click",function(){
var index = $('a',$(this).parent().parent()).index(this);
var allA = $("#i2softTAB .tabs a");
allA.not( allA.eq(index) ).removeClass("oppened");
var allUl = $("#i2softTAB .tabs_content .each_tab");
var toShow = allUl.eq(index);
var toHide = allUl.not(toShow).hide();
if( toShow.is(':hidden') ){
$(this).addClass("oppened");
toShow.show();
}
else{
}
});
</script>
</div>
<!-- Latest + Most Read -->
<div class="clear"></div>
<?php include "adsense_article.html"; ?>
<div class="clear" style="margin: 0 0 15px 0"></div>
<!-- Right Segment Start -->
<?php
$sql = 'select title, id from menu where sub <1 and status ="1" and align="2" order by short DESC';
//$sql = 'select title, id from menu where id="117" or id="119" order by short DESC';
@$result=$conn->query($sql);
$data = array();
$t='0'; $c='0';
while($row = $result->fetch_assoc())
array_push($data, $row);
foreach($data as $catagory): $c++;
if ($c=='1' || $c=='2') {echo '<a href="cat.php?cd='.$catagory['id'].'"><div style="background: #00A8EC; color: #ffffff; font-size: 22px; padding: 2px 0 1px 0; margin: 15px 0 0 0; font-weight:bold; text-align:center">'.$catagory['title'].' </div></a>';}
else {echo '<a href="cat.php?cd='.$catagory['id'].'"><div style="background: #E4E5E6; color: #00ADEE; font-size: 22px; padding: 2px 0 1px 0; margin: 15px 0 5px 0; font-weight:bold; text-align:center; border-bottom: 2px solid #B3B5B7">'.$catagory['title'].' </div></a>';}
$sql = "SELECT hanger, headline, menu, details, effect_to, imagefile, id FROM news WHERE menu='".$catagory['id']."' order by id DESC limit 0,1";
@$news_result=$conn->query($sql);
$cats = array();
while($news = $news_result->fetch_assoc()) {
$id = $news['id'];
$headline = $news['headline'];
$t++; array_push($cats, $news['id']);
if ($c % 4) {$clear ='';} else {$clear ='clear'; }
$imagefile = $news["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $news['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($c=='1' || $c=='2') {
echo '<div style="background: #EAF5FC; border: 1px solid #00A8EC; padding: 5px">
<div style="max-height: 150px; overflow: hidden"><a href="details.php?id='.$id.'"><img class="lazy" data-original="'.$imgRoot.''.$img.'" style="width: 100%"></a></div>
<div style="margin: 10px 20px 5px 0">
<div class="body_title" style="margin: 3px 5px 0 5px"><a href="details.php?id='.$id.'"><B>'.$headline.'</B></a></div>
</div></div>
<div class="clear" style="margin: 0 0 10px 0"></div>';
} else {
echo '
<div style="max-height: 150px; overflow: hidden"><a href="details.php?id='.$id.'"><img class="lazy" data-original="'.$imgRoot.''.$img.'" style="width: 100%"></a></div>
<div style="margin: 10px 20px 5px 0">
<div class="body_title" style="margin: 3px 0 0 0"><a href="details.php?id='.$id.'"><B>'.$headline.'</B></a></div>
</div>
<div class="clear" style="margin: 0 0 30px 0"></div>';
}
}$t='0';
echo '<div class="'.$clear.'"></div>';
endforeach;
?>
<!-- Right Segment End -->
<?php include "adsense_article.html"; ?>
<div class="clear" style="margin: 0 0 0 0"></div>
</div>
<div class="clear" style="margin: 0 0 10px 0"></div>
<div style="margin: 25px 15px 25px 15px"><?php include "adsense_body.html"; ?></div>
<div class="clear"></div>
<div class="clear" style="margin: 0 0 25px 0"></div>
<!-- Hit List Start -->
<div style="margin: 20px 15px 0 15px; padding: 15px; background: #E4E5E6">
<div style="font-family: Times New Roman; font-size: 28px; color: #00ADEE; padding: 5px 0 15px 15px; text-align: center; margin: 0 0 15px 0; border-bottom: 3px solid #666666"><B>HIT LIST</B></div>
<?php
$sql = "select hanger, headline, menu, credit, details, imagefile, id from news WHERE showhome ='4' and id > '".$Ndates."' order by short DESC limit 0,4";
$res = $conn->query($sql);
$t='0'; $clear = '';
while($row = $res->fetch_assoc()) {$t++;
$headline = strip_tags($row["headline"]);
$id = $row['id'];
$menu = $row['menu'];
$imagefile = $row["imagefile"];
$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $row['details'], $matches);
$image = $matches[1];
$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t =='1') {$tcleft= '0'; $tcright= '15px';}
else if ($t =='2') {$tcleft= '0'; $tcright= '5px';}
else if ($t =='3') {$tcleft= '0'; $tcright= '15px';}
else if ($t =='4') {$tcleft= '0'; $tcright= '5px';}
else {$tcright='0'; $tcright='0';}
if ($t % 2) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
?>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 m_none" style="padding: 0 <?=$tcright?> 30px <?=$tcleft?>">
<div><a href="details.php?id=<?=$id?>"><img class="img_large lazy" src="<?=$imgRoot?><?=$img?>" style="border: 1px solid #ddd; margin-right: 10px" align="left"></a></div>
<div class="clear"></div>
<div class="body" style="margin: 5px 0 0 0"><a style="color: #00ADEE" href="cat.php?cd=<?=$menu?>"><B><?=$mtitle?></B></a></div>
<div class="title_cat" style="margin: 5px 0 0 0"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div>
</div><div class="<?=$clear?>" style="margin: 0 0 0 0"></div>
<?
echo '<div class="d_none t_none"><div class="titleBTM" style="margin: 0 0 0 10px"><a line-height: 20px" href="details.php?id='.$id.'"><img class="cat_div route" border="0" src="'.$imgRoot.''.$img.'" style="margin-right: 7px" align="left">';
echo ''.$headline.'</a></div><div class="clear" style="margin: 0 0 20px 0"></div></div>';
}?>
<div class="clear"></div>
</div>
<!-- Hit List End -->
<div class="clear" style="margin: 0 0 25px 0"></div>
<!-- <div style="background: #E4E5E6; color: #00ADEE; text-align: center; font-size: 32px; padding: 12px 0 10px 0; margin: 0 15px 20px 15px"><B>POPULAR 50</B></div> -->
<div style="background: #E4E5E6; color: #00ADEE; text-align: center; font-size: 32px; padding: 12px 0 10px 0; margin: 0 15px 20px 15px"><B>HOT WEEK</B></div>
<?php
//$sql = 'select hanger, headline, menu, details, imagefile, effect_to, id from news WHERE id > '.$Ndates.' order by count DESC limit '.$start.','.$limit.'';
$sql = 'select hanger, headline, menu, details, imagefile, effect_to, id from news WHERE showhome ="6" order by id DESC limit 0,20';
@$news_result= $conn->query($sql);
$cts = array(); $t='0';
while($newss = $news_result->fetch_assoc()) {
$t++; array_push($cts, $newss['id']);
$url = str_replace('-','/',$newss['effect_to']);
$titles=str_replace(' ','-',$newss['headline']);
$headline = strip_tags($newss["headline"]);
$id = $newss['id'];
$menu = $newss['menu'];
$imagefile = $newss["imagefile"];
//$imagefile = str_replace('_th','',$imagefile);
if ($imagefile!='') {$img=$imagefile;} else {
preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $newss['details'], $matches);
$image = $matches[1];
//$image = str_replace('_th','',$image);
if ($image !='') { $img = $image; }
else { $img = 'images/no-image.jpg'; }
}
if ($t % 4) {$float = 'left'; $clear =''; $border='2px';} else {$float = 'right'; $clear ='clear'; $border='0px';}
$sq = "select title, id from menu where id='$menu'";
$re = $conn->query($sq);
$ro = $re->fetch_assoc();
$mtitle = $ro["title"];
?>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" style="padding: 0 15px 30px 15px">
<div class="img_dc"><a href="details.php?id=<?=$id?>"><img class="img_dc img_zoom lazy" src="<?=$img?>" style="border: 1px solid #ddd; margin-right: 10px" align="left"></a></div>
<div class="clear"></div>
<div class="body" style="margin: 5px 0 0 0"><a style="color: #00ADEE" href="cat.php?cd=<?=$menu?>"><B><?=$mtitle?></B></a></div>
<div class="body" style="margin: 5px 0 0 0"><a href="details.php?id=<?=$id?>"><B><?=$headline?></B></a></div><div class="clear" style="margin: 0 0 25px 0"></div>
</div><div class="<?=$clear?>"></div>
<?php
}
?>
<div class="<?=$clear?>"></div>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js" ></script>
<script src="images/js.scrollPagination.js"></script>
<div id="get-list-view"></div>
<div class="clear" style="margin: 0 0 25px 0"></div>
<div id="load-msg"></div>
<script>
$(document).loadScrollData(0,{
limit : 4,
listingId : "#get-list-view",
loadMsgId : '#load-msg',
ajaxUrl : 'ajaxLoading.php',
loadingMsg : '<div style="padding: 10px; font-size: 20px; font-weight: bold; background: #E4E5E6; color: #00ADEE; text-align: center; border-radius: 30px; margin: 0 15px 40px 15px"></i>LOADING</div>',
});
</script> -->
</div>
<div class="clear"></div>
<!-- Facebook Popup -->
<script type="text/javascript">
$(document).ready(function () {
$('#facebook_likebox').slideDown(1500);
$('#closefacebook_likebox').click(function(){
$(this).fadeOut();
$('#facebook_Likebox').css('display','none');
$('#facebook_likebox').slideUp(1500);
});
});
</script>
<div class="m_none"><div style="position: fixed; right: 0; margin-bottom: 1px; border: 1px solid #ccc; background:#f5f5f5; z-index: 999; bottom: 0px; display: block;" id="facebook_likebox">
<div style="position: absolute; right: 0px; margin: -10px -5px 0 0; z-index: 1000;">
<span id="closefacebook_likebox" style="cursor:pointer"><img height="20" src="images/xCloseButton.png" border="0" /></span>
</div>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like-box href="<?=$fb_like_page?>" width="280" height="180" show_faces="true" border_color="#fff" stream="false" header="false">
</fb:like-box>
</div></div>
<!-- Facebook Popup -->
<script type="text/javascript" src="images/jquery.lazyload.min.js"></script>
<script>
$(document).ready(function(){
$("img.lazy").lazyload({effect : "fadeIn" });
});
</script>
</div>
<?php include "footer.php"; ?>
</body>
</html>
Function Calls
None |
Stats
MD5 | 652aefb0122a93b7d78fb8cd78ce82fd |
Eval Count | 0 |
Decode Time | 161 ms |