����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.144.1.100 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 : |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <script type="text/javascript" src="./js/sweetalert.min.js"></script> <style> *{ font-family: Arial, Helvetica, sans-serif; } </style> </head> <body> <?php include './php/connect.php'; include './php/core.php'; if (!loggedin()) { header('location:./signin'); } if (isset($_GET['id'])) { $id = $_GET['id']; $sql1 = "SELECT `title`,`image` FROM `playlists` WHERE `pid`=$id"; if ($run = mysqli_query($conn, $sql1)) { list($title, $image) = mysqli_fetch_array($run); $sql2 = "SELECT * FROM `playlists`,`videos` WHERE `playlists`.`pid`=`videos`.`pid` AND `playlists`.`pid`=$id"; if ($run2 = mysqli_query($conn, $sql2)) { if (mysqli_num_rows($run2) == 0) { $sql3 = "DELETE FROM `playlists` WHERE `pid`=$id"; if ($run3 = mysqli_query($conn, $sql3)) { if (@unlink('./playlists/img/' . $image)) { ?> <script> swal("SUCCESS", "<?php echo $title; ?> was successfully deleted", "success"); setTimeout(function() { window.location = 'playlists.php' }, 1000); </script> <?php } } else { die(mysqli_error($conn)); } } else { ?> <script> swal("WARNING", "<?php echo $title; ?> Has Content", "warning"); setTimeout(function() { window.location = 'playlists.php' }, 1000); </script> <?php } } else { die(mysqli_error($conn)); } } else { die(mysqli_error($conn)); } } ?> </body> </html>