HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / home / cuneytsener53 / guzel2.snrsoft.com.tr /

Server Ip : 172.67.216.244




Filename/home/cuneytsener53/guzel2.snrsoft.com.tr/video-galeri.php
Size3.2 kb
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified17-Mar-2022 20:24
Last accessed05-Apr-2025 00:21
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php $page = 'galeri'; include "includes/header.php"; ?>

<div class="inner-banner">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-lg-7 col-md-7">
<div class="inner-title">
<h3>Video Galeri </h3>
<ul>
<li>
<a href="index.html">Anasayfa</a>
</li>
<li>Video Galeri </li>
</ul>
</div>
</div>
<div class="col-lg-5 col-md-5">
<div class="inner-img">
<img src="assets/images/inner-banner/inner-banner9.png" alt="Inner Banner" />
</div>
</div>
</div>
</div>
</div>


<div class="services-area ptb-100">
<div class="container">
<div class="row">
<?php
$sayfada = 6; // sayfada gösterilecek içerik miktarını belirtiyoruz.
$sorgu=$db->prepare("select * from videos");
$sorgu->execute();
$toplam_icerik=$sorgu->rowCount();
$toplam_sayfa = ceil($toplam_icerik / $sayfada);
// eğer sayfa girilmemişse 1 varsayalım.
$sayfa = isset($_GET['sayfa']) ? (int) $_GET['sayfa'] : 1;
// eğer 1'den küçük bir sayfa sayısı girildiyse 1 yapalım.
if($sayfa < 1) $sayfa = 1;
// toplam sayfa sayımızdan fazla yazılırsa en son sayfayı varsayalım.
if($sayfa > $toplam_sayfa) $sayfa = $toplam_sayfa;
$limit = ($sayfa - 1) * $sayfada;
$refsor=$db->prepare("select * from videos order by rank ASC limit $limit,$sayfada");
$refsor->execute();
while ($refcek=$refsor->fetch(PDO::FETCH_ASSOC)) {
if ($refcek['gallery_id']==11){
if ($refcek['isActive']==1){
?>
<div class="col-lg-4 col-6">
<div class="services-card">
<iframe width="100%" height="315" src="<?php echo $refcek['url']; ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</div>
</div>
<?php }}} ?>

<div class="col-lg-12 col-md-12 text-center">
<div class="pagination-area">
<?php
$s=0;
while ($s < $toplam_sayfa) {
$s++; ?>
<?php
if ($s==$sayfa) {?>
<span class="page-numbers current" aria-current="page"><?php echo $s; ?></span>
<?php } else {?>
<a href="video-galeri?k=<?php echo $katid; ?>&sayfa=<?php echo $s ?>" class="page-numbers"><?php echo $s; ?></a>
<?php } } ?>
</div>
</div>

</div>
</div>
</div>

<?php include "includes/footer.php"; ?>