📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv12.demodesign.com.tr
/
panel
/
assets
/
uploadfive
📝
uploadifive.php
← Geri Dön
<?php $panel = $_SERVER['REQUEST_URI']; if ( strpos($panel, '/panel/') !== false ) { include '../../db-ayar.php'; $uyeID = $_COOKIE['Sayim']; $query = $db->prepare("SELECT * FROM panel_kullanicilari where id=:id"); $kontrol = $query->execute(array(":id"=>$uyeID)); $kontrol = $query->fetchColumn(); if ( $kontrol != 0 ) { if ( $_POST ) { $time_al = time().'-'.uniqid(); $verifyToken = 'sayim'.@$_POST['timestamp'].'sayim'; if (!empty($_FILES) && $_POST['token'] == $verifyToken) { $fileTypes = array('jpg','jpeg','JPG','JPEG','png','PNG','svg','gif','mp4'); $fileParts = pathinfo($_FILES['Filedata']['name']); $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder; $targetFile = rtrim($targetPath,'/') . '/' .$time_al.'.'.$fileParts['extension']; if ( in_array($fileParts['extension'],$fileTypes) ) { move_uploaded_file($tempFile,$targetFile); echo $time_al.'.'.$fileParts['extension']; } else { echo 2; } } else { echo 3; } } } } ?>
💾 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