����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.145.196.141 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/mtumbuka.org/ |
Upload File : |
<?php include './php/connect.php'; error_reporting(0); set_time_limit(0); if (isset($_GET['id'])) { $id = $_GET['id']; $query = "SELECT * FROM `ppts` WHERE `pid`=$id"; if ($result = mysqli_query($conn, $query)) { $row = mysqli_fetch_array($result); $name = $row['file']; $downloads = $row['downloads']; $path = './ppts/'.$name; if (!file_exists($path)) { die("File not found"); } else { header("content-Description: File Transfer"); header("content-type:application:octet-stream;"); header("Content-Disposition: attachment; filename=" . basename($path) . ""); header("Content-Transfer-Encoding: binary"); header("Connection: Keep-Alive"); header("Cache-Control: must-revalidate, post-check=0"); header("Content-Length: " . filesize($path)); header("pragma: public"); readfile($path); $increment = ++$downloads; $query2 = "UPDATE `ppts` SET `downloads`='$increment' WHERE `pid`=$id"; if (mysqli_query($conn, $query2)) { exit(); } else { die(mysqli_error($conn)); } } } }