📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
reelsolusturmascripti.demodesign.com.tr
📝
uretilen-reels.php
← Geri Dön
<?php include ('config.php'); include ('system/inc/sitedata.php'); if (!isset($_SESSION['login'])){ echo " <meta http-equiv='refresh' content='1;URL=login.php'> "; exit(); } ?> <!DOCTYPE html> <html lang="en"> <?php include ('system/inc/header.php'); ?> <div class="page-body"> <div id="mobile-only" class="container-fluid" > <div class="page-title"> <div class="row"> <div class="col-12"> <h6> <img src="https://reelscreate.com/system/assets/images/giftools.gif" > <?=$sonDuyuru;?> </h6> </div> </div> </div> </div> <div > <br> </div> <!-- Container-fluid starts--> <div class="container-fluid" > <div class="row widget-grid" > <div class="col-xxl-12 col-xl-12 col-md-12 col-sm-12 notification box-col-6"> <div class="card height-equal"> <div class="card-header card-no-border"> <div class="header-top"> <h5 class="m-0">Üretilen İçerikler</h5> </div> </div> <div class="card-body pt-0"> <ul> <?php $animals = mysqli_query($connect, "SELECT * FROM icerikler WHERE userid = '$userid' ORDER BY id DESC "); foreach ($animals as $animall) { //DURUM if($animall['durum'] == 0){ $icerikBtn = '<a class="badge badge-primary">Ön Metin Girildi</a>'; } elseif($animall['durum'] == 1){ $icerikBtn = '<a href="create-reels.php?icerikstep=3&icerikdataid='.$animall['id'].'" class="badge badge-secondary">Ses ve Metin Oluştu.</a>'; }elseif($animall['durum'] == 2){ if($animall['icerikolustur'] == 0){ $icerikBtn = '<span id="mySpan" data-aaid="'.$animall['id'].'" style="cursor: pointer;" class="badge badge-danger" >İndirmeye Hazırla</span>'; }else{ $icerikBtn = '<a class="badge badge-success" href="created_videos/'.$animall['sonicerikhali'].'" download>İçeriği İndir</a>'; } } if($animall['promptsonuc'] <> NULL ){ $promtButon = '<span class="badge badge-danger" data-bs-toggle="modal" data-bs-target="#exampleModal'.$animall['id'].'" ><i class="fa fa-text-width"></i> Metni Gör</span>'; } if($animall['sesdosyasi'] <> NULL ){ $sesButon = '<a href="sounds/'.$animall['sesdosyasi'].'" target="_blank" class="badge badge-danger"><i class="fa fa-microphone"></i> Sesi Gör</a>'; } if($animall['outputfile'] <> NULL ){ $outButon = '<a href="downloaded/'.$animall['outputfile'].'" target="_blank" class="badge badge-danger"><i class="fa fa-video-camera"></i> Sesli Videoyu Gör</a>'; } echo ' <li class="d-flex"> <div class="activity-dot-secondary"></div> <div class=" ms-3"> <p class="d-flex justify-content-between mb-2"> <span class="date-content light-background">'.$animall['date'].' </span> </p> <h6>'.$animall['icerikozet'].' <span class="dot-notification"></span></h6><br> <p class="f-light"> '.$icerikBtn.' <br> '.$promtButon.' '.$sesButon.' '.$outButon.' </p> </div> </li> <!-- Modal --> <div class="modal fade" id="exampleModal'.$animall['id'].'" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Modal title</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> '.$animall['promptsonuc'].' </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Kapat</button> </div> </div> </div> </div> '; } ?> </ul> </div> </div> </div> </div> </div> <!-- Container-fluid Ends--> </div> <?php include ('system/inc/footer.php'); ?> <script> $(document).ready(function() { $('#mySpan').on('click', function() { var span = $(this); var aaid = span.data('aaid'); span.text('İndirmeye hazırlanıyor lütfen bekleyin ve onay mesajını görene kadar sayfa değiştirmeyin...'); span.css('pointer-events', 'none'); // span'ı devre dışı bırak function checkStatusNewAda() { // AJAX isteği gönder ve veritabanında durumu kontrol et $.ajax({ url: 'system/ajax/indirme-check.php?veriid=' + aaid, method: 'GET', success: function(responseNewAda){ if(responseNewAda == 1){ swal("Harika", "Video indirmeye hazır, hadi paylaşalım.", "success"); setTimeout(function(){ location.href = "uretilen-reels.php"; }, 2000); } } }); } setInterval(checkStatusNewAda, 1000); $.ajax({ url: 'system/ajax/create_icerik.php', type: 'POST', data: { aaid: aaid }, success: function(response) { var reply = parseInt(response); // response'ı integer olarak al if (reply === 1) { swal("Başarısız!", "Üzgünüz sistemsel bir sorun meydana geldi.", "error"); } else if (reply === 2) { swal("Başarısız!", "Sunucu kaynaklı bir hata oluştu.", "error"); } else if (reply === 98) { swal("Başarısız!", "Video işlemede bir sorun oluştu.", "error"); } else if (reply === 97) { swal("Başarısız!", "FFMPEG output sorunu oluştu", "error"); } span.text('Eventer Error'); span.css('pointer-events', 'auto'); // span'ı tekrar etkinleştir location.href = "uretilen-reels.php"; }, error: function() { swal("Başarısız!", "POST ERROR CODE 99I882", "error"); location.href = "uretilen-reels.php"; span.text('Post Error'); span.css('pointer-events', 'auto'); // span'ı tekrar etkinleştir } }); }); }); </script> </body> </html>
💾 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