X7ROOT File Manager
Current Path:
/home/u126090504/domains/oceanicabeachresort.com/public_html
home
/
u126090504
/
domains
/
oceanicabeachresort.com
/
public_html
/
📁
..
📄
.htaccess
(0 B)
📁
Version
📄
about.php
(4.19 KB)
📁
admin
📁
assets
📄
booking.php
(4.55 KB)
📄
booking_details.php
(4.43 KB)
📄
booking_process.php
(1.12 KB)
📄
config.php
(914 B)
📄
contact.php
(14.48 KB)
📄
contactdb.php
(796 B)
📄
footer.php
(13.26 KB)
📄
gallery.php
(2.82 KB)
📄
header.php
(19.3 KB)
📁
images
📄
index.php
(2.27 KB)
📄
indexx.php
(75.25 KB)
📁
lib
📄
oce.zip
(106.17 MB)
📄
payment.php
(6.79 KB)
📄
payment_submit.php
(15.1 KB)
📄
payment_verify.php
(2.31 KB)
📄
peret.php
(266.87 KB)
📁
qrcodes
📄
room-service.php
(8.98 KB)
📄
search_videos.php
(1.76 KB)
📄
services.php
(14.04 KB)
📄
success.php
(2.06 KB)
📄
test_mailer.php
(372 B)
📄
thank-you.php
(1.28 KB)
📁
uploads
📄
videos.php
(6.87 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