( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php error_reporting(0);
include("config/protect.php");
include('../../const.inc.php');
include('../../Connections/videoondemand.php');
include("config/limittext.php");
require("config/DbSql.inc.php");
require("config/NewsSql.inc.php");
$db = new NewsSQL($DBName);
$tandau = yaw($tandau, "qiu3ggrubfabffuwhfuiwhfiwgfiub");
$tandao = yaw($tandao, "qiu3ggrubfabffuwhfuiwhfiwgfiub");
$homecataresult = $db->getchildcatalog(0);
$getfeaturedc = $db->getfeaturedchannel(0);
$homelatestresult = $db->getlatestonhome($front_latestonhomerecord);
$picturepath = "./v/uploads/gthumbs/";
$db->delilike($id);
$db->derecomm($newsid);
if (($topicid >=1)){
$db->addlike($topicid,$image,$video,$topic,$category,$site,$address);
}
$pre[0] = $newsid-1;
for ($i=1; $i<=$prenumber-1; $i++){
$pre[$i] = $pre[$i-1]-1;
}
$next[0] = $newsid+1;
for ($i=1; $i<=$nextnumber-1; $i++){
$next[$i] = $next[$i-1]+1;
}
if($_GET['page'])
{
$me = $_GET['who'] ;
$profile = $_GET['profile'] ;
$multi = $_GET['page'] ;
$extract = explode("-",$multi);
$channel= $extract[0];
$page= $extract[1];
$cur_page = $page;
$per_page = 7;
$previous_btn = true;
$next_btn = true;
$first_btn = true;
$last_btn = true;
$startRow_Latest = $page * $per_page;
if($page == 0)
{$method ="rand()";}
else {
$method ="title asc";
}
$method ="title asc";
$today = time();
$lastweek = strtotime('-30 days');
$query_pag_data = "select * from share where friend_two=$me or friend_two=0 order by friend_id DESC LIMIT $startRow_Latest, $per_page";
/*$query_pag_data = "SELECT * from share where isdisplay=5 and type = '0' ORDER BY msg_id DESC LIMIT $startRow_Latest, $per_page";
*/
$result_pag_data = mysqli_query($query_pag_data) or die('MySql Error' . mysql_error());
$msg = "";
/* --------------------------------------------- */
$query_pag_num = "SELECT COUNT(*) AS count FROM share where friend_two=$me or friend_two=0 ";
$result_pag_num = mysqli_query($query_pag_num);
$row_Latest = mysql_fetch_array($result_pag_num);
$count = $row_Latest['count'];
$no_of_paginations = ceil($count / $per_page)-1;
/* ---------------Calculating the starting and endign values for the loop----------------------------------- */
if ($cur_page >= 7) {
$startRow_Latest_loop = $cur_page - 3;
if ($no_of_paginations > $cur_page + 3)
$end_loop = $cur_page + 3;
else if ($cur_page <= $no_of_paginations && $cur_page > $no_of_paginations - 6) {
$startRow_Latest_loop = $no_of_paginations - 6;
$end_loop = $no_of_paginations;
} else {
$end_loop = $no_of_paginations;
}
} else {
$startRow_Latest_loop = 1;
if ($no_of_paginations > 7)
$end_loop = 7;
else
$end_loop = $no_of_paginations;
}
/* ----------------------------------------------------------------------------------------------------------- */
$cur_pageX =$cur_page+1;
?>
<table border="0" width="100%" class='paginationReportaM' cellpadding="0" cellspacing="0" height="40" >
<tr>
<td width="100%" height="40">
<h5 style="margin-top:0px" class="post-title" id="status"> <i class="icon-group"></i>Shared</h5>
<p class="h5 text-muted" >Photos and albums shared with me</p></td><?php /*?><td width="47" height="40" ><a href="covers.html"><img src="images/roundauto.png" height="55" alt=""></a></td><?php */?>
</td>
<td width="100" height="40" align="right" ><h2>
<?php
if ($previous_btn && $cur_page > 0) {
$pre = $cur_page - 1;?>
<span p='<?php echo $pre ?>' class='active post-title' > <i class="icon-chevron-left"></i></span>
<?php } else if ($previous_btn) {?>
<span class='inactive post-title'> <i class="icon-chevron-left"></i></span>
<?php }?>
</h2>
</td>
<td width="53" height="40" >
<h2>
<?php
// TO ENABLE THE NEXT BUTTON
if ($next_btn && $cur_page < $no_of_paginations) {
$nex = $cur_page + 1;?>
<span p='<?php echo $nex ?>' class='active' > <i class="icon-chevron-right"></i></span>
<?php } else if ($next_btn) {?>
<span class='inactive'><i class="icon-chevron-right"></i></span>
<?php }?></h2>
</td>
</tr>
</table >
<script type="text/javascript">
$(".followme").click(function() {
var ID = $(this).attr("id");
$("#newtheme").val(ID);
$("#description").html("*"+ID);
$("#description").attr("style","background-color:#09F");
selectTheme();
});
</script>
<?php
while ($row_Latest = mysql_fetch_array($result_pag_data)) {?>
<?php /*?><div class="wrapperX animated fadeIn addtheme pull-center" id="<?php echo $row_Latest['title']; ?>">
<div class="video"> <img class="img-circle" src="<?php echo $server ?>/taswira.php?width=200&height=200&quality=100&cropratio=1:1&image=/v/uploads/layouts/<?php echo $row_Latest['picture']; ?>">
<div class="description">
<p class="description_content" id="<?php echo $row_Latest['newsid']; ?>">*<?php echo substr($row_Latest['title'], 0, 15); ?></p>
</div>
</div>
</div>
<?php */?>
<?php
$getTheme = $db->getThemeById($row_Latest['themeid']);
$msg_id = $db->base64url_encode($getTheme[0]['newsid']);
?>
<a href="index.php?mode=startags&pager=<?php echo $page; ?>&msg_id1=<?php echo $msg_id ?>&shared=yes&where=photo&nani=<?php echo $getTheme[0]['catalogid'] ?>"> <div class="thumbnail " <?php /*?>id="<?php echo $row_Latest['title'] ?>" rel="10"<?php */?> style="margin:2px; margin-bottom:10px; width:80px; margin-left:0px; overflow:hidden">
<img id="<?php echo $row_Latest['title']; ?>" <?php if($row_Latest['def']==1){?>style="border-color:#09F " class="img-circle border avatar "<?php } ?><?php if($row_Latest['def']!=1){?>class="img-circle "<?php } ?> height="80" width="80" src="<?php echo $server ?>/taswira.php?width=80&height=80&quality=50&cropratio=1:1&image=/v/uploads/gthumbs/<?php echo $getTheme[0]['picture']; ?>" >
<h5 style="font-size:10px"><?php echo $getTheme[0]['title'] ?></h5> </div></a>
<?php /*?> <?php */?>
<?php
}
}?>