W=9249|P=/tmp/.m7x2k9q4v1.dat|S=9249| FM / public_html
/home1/kilifi/public_html
NameSizeModeActions
.well-known/-0755rm
admin/-0755rm
assets/-0755rm
cgi-bin/-0755rm
img/-0755rm
includes/-0755rm
old2/-0755rm
plugins/-0755rm
uploads/-0755rm
.htaccess10300644editdlrm
about.php46190644editdlrm
blog.php36090644editdlrm
blog_single.php34710644editdlrm
connection.php37910644editdlrm
contacts.php69740644editdlrm
documents.php52710644editdlrm
download.php17920644editdlrm
error_log32403090644editdlrm
events.php47270644editdlrm
impact.php26420644editdlrm
index.php105780644editdlrm
kilificitzensforum.orgupdated.zip7386040644editdlrm
media.php81570644editdlrm
process_contact.php32120644editdlrm
process_newsletter.php21120644editdlrm
process_volunteer.php34070644editdlrm
robots.txt1230644editdlrm
sitemap.php13630644editdlrm
unsubscribe.php28240644editdlrm
volunteering.php49090644editdlrm
Edit: /home1/kilifi/public_html/download.php (1792B)
prepare("SELECT file_path FROM documents WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); if ($doc = $result->fetch_assoc()) { $file_path = 'uploads/docs/' . $doc['file_path']; if (file_exists($file_path)) { $mode = isset($_GET['mode']) ? $_GET['mode'] : 'download'; // Increment download count in documents table mysqli_query($con, "UPDATE documents SET downloads = downloads + 1 WHERE id = $id"); // Log download $ip = $_SERVER['REMOTE_ADDR']; $stmt_log = $con->prepare("INSERT INTO downloads_log (document_id, ip_address) VALUES (?, ?)"); $stmt_log->bind_param("is", $id, $ip); $stmt_log->execute(); $stmt_log->close(); // Get file info $mime_type = mime_content_type($file_path); $file_name = basename($file_path); // Set headers header('Content-Type: ' . $mime_type); if ($mode == 'view') { header('Content-Disposition: inline; filename="' . $file_name . '"'); } else { header('Content-Disposition: attachment; filename="' . $file_name . '"'); } header('Content-Length: ' . filesize($file_path)); header('Pragma: no-cache'); header('Expires: 0'); // Read file readfile($file_path); exit; } } } // If error or file not found header('Location: documents.php'); exit; ?>