checkLoginLang(false, true, "fileDownload.php"); //if (!check_source()) die ("<font id='hata'>$metin[295]</font>"); $dosya = RemoveXSS($_GET["file"]); $dosya = str_replace("..", "", $dosya); $dosya = str_replace("/", "", $dosya); $physicalFileName = $_uploadFolder . '/' . $dosya; // security check if (file_exists($physicalFileName)) { if (isset($_GET["islem"]) and $_GET["islem"] == "goster") { if (in_array(file_ext($dosya), $_filesToPlay)) { $oyna = "<iframe src=\"{$_source1}/player.php?id=" . RemoveXSS($_GET["id"]) . "\" frameborder=\"0\" scrolling=\"no\" width=\"470\" height=\"320\" align=\"middle\" marginheight=\"0\" allowtransparency=\"false\" style=\"background-color: white\"></iframe>"; echo $oyna; echo "<p style='font-family:tahoma; font-size:12px;color:#f00;'>{$metin['676']} <br/><textarea cols=80 rows=4 style='font-family:tahoma; font-size:12px;color:#222;border:1px solid #555;'>{$oyna}</textarea></p>"; die; } $content = dosyaGoster($dosya); /* get the buffer */ if (file_ext($dosya) == "jpg") { header("Content-Type: image/jpg"); } elseif (file_ext($dosya) == "png") { header("Content-Type: image/png"); } elseif (file_ext($dosya) == "gif") { header("Content-Type: image/gif"); } elseif (file_ext($dosya) == "jpeg") { header("Content-Type: image/jpeg"); } echo $content; downloadSayac(RemoveXSS($_GET["id"])); die(''); } else { header('Content-Type: application/octet-stream');
Lesser General Public License for more details. */ ob_start(); @session_start(); $_SESSION['ready'] = TRUE; require "conf.php"; $time = getmicrotime(); checkLoginLang(true, true, "fileShare.php"); $seciliTema = temaBilgisi(); if (isset($_GET['show'])) { if (in_array($_GET['show'], array(1, 2))) { if ($_GET['show'] == 1) { $content = dosyaGoster('index.php'); } else { if ($_GET['show'] == 2) { $content = dosyaGoster('.htaccess'); } else { $content = "boþ"; } } header("Content-Type: text/html"); echo $content; die(''); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-9'/> <link rel="alternate" type="application/rss+xml" title="eOgr RSS" href="rss.php" />