����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.23.101.241 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/learn.skilltainment.org/ |
Upload File : |
<?php include './sidebar.php'; include './navbar.php'; if (isset($_GET['id'])) { if (!empty($_GET['id'])) { $pid = mysqli_real_escape_string($conn, $_GET['id']); } } ?> <div class="container-fluid pt-4 px-4 "> <div class="row home"> <?php $query = "SELECT `pid`, `title`, `image`, `mode`, UNIX_TIMESTAMP() -`time` as time_spent FROM `playlists` ORDER BY `pid` DESC"; $run = mysqli_query($conn, $query) or die(mysqli_error($conn)); if(mysqli_num_rows($run)>0){ while ($row = mysqli_fetch_array($run)) { ?> <div class="col-12 col-sm-6 col-md-6 col-lg-4 mb-3"> <div class="bg-secondary rounded h-100 shadow-3" data-aos="flip-left" data-aos-duration="500"> <a href="list=<?php echo filter_file(strtolower($row['title'])); ?>"> <div class="zoom"> <img src="./playlists/img/<?php echo $row['image']; ?>" alt=""> </div> <div class="title my-1 px-2"><?php echo $row['title']; ?></div> <div class="d-flex justify-content-between px-2 pb-2"> <div> <?php if ($row['mode'] == 1) { echo "<i class=\"fa fa-lock\"></i>"; } else { echo "<i class=\"fa fa-lock-open\"></i>"; } ?> </div> <div><?php timeSpent($row['time_spent']); ?></div> </div> </a> </div> </div> <?php } } else { ?> <p class="text-center h6 my-4">0 Playlists</p> <?php } ?> </div> </div> <script> //slicing all playlists titles var count = document.querySelectorAll(".home .title").length; for (var i = 0; i < count; i++) { var title = document.querySelectorAll(".home .title")[i].innerText; var slicer = title.slice(0, 40); if (title.length >= 40) { document.querySelectorAll(".home .title")[i].innerHTML = slicer + '...'; } else { document.querySelectorAll(".home .title")[i].innerHTML = slicer; } } document.querySelector("title").innerText = "Skilltainment - Home"; document.querySelectorAll(".navbar-nav a")[0].classList.add("active"); </script> <?php include './footer.php'; ?>