📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
taksiscripti.demodesign.com.tr
/
detay
📝
video.php
← Geri Dön
<section class="page-header" style="background-image: url(resimler/<?=$bead["resim"]?>);"> <div class="page-header-shape"></div> <div class="container"> <div class="page-header-info"> <h4><?=$title?></h4> <h2><span><?=$dilsec["video"]?></span></h2> </div> </div> </section> <!--/.page-header--> <section class="team-section padding"> <div class="container"> <div class="row"> <?php $videocek = $db->query("SELECT * FROM video WHERE durum='0' AND dil='{$dilsec["id"]}' ORDER BY sira ASC")->fetchAll(PDO::FETCH_ASSOC); foreach($videocek as $video){ $videoLink = $video["linki"]; $youtube_id = ''; // YouTube linkinden video ID'sini almak için: if (preg_match('/youtu\.be\/([^\?]*)/', $videoLink, $matches)) { $youtube_id = $matches[1]; // youtu.be formatında ID'yi al } elseif (preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $videoLink, $matches)) { $youtube_id = $matches[1]; // youtube.com/watch?v= formatında ID'yi al } elseif (preg_match('/youtube\.com\/embed\/([^\?]*)/', $videoLink, $matches)) { $youtube_id = $matches[1]; // youtube.com/embed/ formatında ID'yi al } if (!empty($youtube_id)) { ?> <div class="col-lg-4 col-md-6 padding-15"> <div class="team-item"> <div class="team-thumb"> <!-- Modal tetikleyici --> <a href="#" onclick="openModal('<?=$youtube_id?>'); return false;"> <img src="resimler/<?=$video["resim"]?>" alt="<?=$video["adi"]?>"> </a> </div> <div class="team-content"> <h3><a href="#" onclick="openModal('<?=$youtube_id?>'); return false;"><?=$video["adi"]?></a></h3> </div> </div> </div> <?php } // if (!empty($youtube_id)) ?> <?php } // foreach ?> </div> </div> </section> <!--/.team-section--> <!-- Modal --> <div class="modal fade" id="videoModal" tabindex="-1" role="dialog" aria-labelledby="videoModalLabel" aria-hidden="true"> <div class="modal-dialog modal-xl" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="videoModalLabel">Video</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="closeModal();"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <!-- Daha geniş bir iframe --> <div class="video-wrapper"> <iframe id="videoIframe" class="video-frame" src="" allowfullscreen></iframe> </div> </div> </div> </div> </div> <script> function openModal(youtubeId) { // Modal iframe kaynağını güncelle const iframe = document.getElementById('videoIframe'); iframe.src = `https://www.youtube.com/embed/${youtubeId}`; // Modal'ı göster $('#videoModal').modal('show'); } function closeModal() { // Modal'ı kapat ve iframe içeriğini temizle const iframe = document.getElementById('videoIframe'); iframe.src = ''; $('#videoModal').modal('hide'); } </script> <style> .modal-xl { max-width: 90%; /* Modal genişliğini daha büyük yapar */ } .video-wrapper { position: relative; padding-bottom: 56.25%; /* 16:9 oranı */ height: 0; overflow: hidden; } .video-wrapper .video-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; } </style>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula