rendered paste body<?phpsession_start();if ( !isset($_SESSION['kullanici_id']) ) header("Location: index.php");$kaynak = $_FILES["resim"]["tmp_name"]; $dosya = str_replace(" ", "_", $_FILES[resim][name]); $hedef = "upload/".$dosya; if (file_exists($hedef)) { $hmz = substr(md5(uniqid(rand())),0,8); $hedef = "upload/$hmz-".$dosya; $dosya = "$hmz-".$dosya; } move_uploaded_file($kaynak,$hedef); include "../guvenlik.php";include("../class.php");if (empty($_FILES["resim"]["name"])) { echo ' <script language="javascript"> alert("Resim seçilmedi seçde gel."); history.back(); </script>'; exit; } $baslik = sql_quote($_POST[baslik]);$mesaj = sql_quote($_POST[haber]);if ( @$vt->sorgula("INSERT INTO `haber` ( `editorid` ,`baslik` , `mesaj`, `resim` , `katagori`, `tarih`) VALUES ( '$_POST[editor]' ,'$baslik' , '$mesaj' ,'$hedef' ,'$_POST[kat]', NOW() )") ) echo "haber veritabanina eklendi!";$vt->kapat();echo "<SCRIPT LANGUAGE=\"JavaScript\">";echo "window.location=\"haber_duzenle.php\"";echo "</script>";?>