📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
reelsolusturmascripti.demodesign.com.tr
/
adminpnl
/
system
/
ajax
📝
tempekle.php
← Geri Dön
<?php include ('../../config.php'); include ('../../inc/sitedata.php'); $sure = $_POST['sure']; if($sure == '' ){ echo "<script>alert('Boş Alan Bırakmayınız.'); location='../../template.php'; </script>"; die; } if(isset($_FILES['dosya'])){ $hata = $_FILES['dosya']['error']; if($hata != 0) { echo "<script>alert('Sistemsel Sorun'); location='../../template.php'; </script>"; die; } else { $boyut = $_FILES['dosya']['size']; if($boyut > (1024*1024*500)){ echo "<script>alert('Dosya 300MB den az olmalı'); location='../../template.php'; </script>"; die; } else { $tip = $_FILES['dosya']['type']; $isim = $_FILES['dosya']['name']; $uzanti = explode('.', $isim); $uzanti = $uzanti[count($uzanti)-1]; if($uzanti !== 'asdasd' or $uzanti !== 'asdasdasd' or $uzanti !== 'zxczxc' or $uzanti !== 'zxczxc'){ $userid = $_SESSION['userid']; $dosya = $_FILES['dosya']['tmp_name']; copy($dosya, '../../../system/videos/' . $_FILES['dosya']['name']); $querySoru = mysqli_query($connect, "INSERT INTO videotemps (video,sure) VALUES ('$isim','$sure')"); echo "<script>alert('Template Ekleme Başarıyla Yapılmıştır.'); location='../../template.php'; </script>"; } else { echo "<script>alert('Sadece JPG Formatında Resimler Kabul Edilir'); location='../../template.php'; </script>"; die; } } } } ?>
💾 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