Sindbad~EG File Manager

Current Path : /home/beghelic/www/admin/kod/
Upload File :
Current File : /home/beghelic/www/admin/kod/dosya-ekle.php

<?php
ob_start();
require_once 'baglan.php';

$title = $_POST["title"];

$kaynak	    = $_FILES["file"]["tmp_name"];
$dosyaadi	= $_FILES["file"]["name"];
$yol = "../../img/files/";
$yeniad =substr(md5(time()), 0,30);
$uzanti =substr($dosyaadi, -3);
$sonad = $yeniad . '.' . $uzanti;
$yukle	= move_uploaded_file($kaynak,$yol."/".$sonad);

$stmt = $db->prepare("insert into dosyalar (title, file)value(:title, :file)");
$stmt->bindParam(':title', $title, PDO::PARAM_STR);
$stmt->bindParam(':file', $sonad, PDO::PARAM_STR);
$stmt->execute();
header('Location: ../pages/dosyalar.php');

?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists