Viewing File: /people/testlab/www/testlab.com.pl/panel/usun_pliki_aktualnosci.php

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?
include('../config.php');
if (!islogin()) die();
include('../inc/db.php');
$db = new DBConnect();

	
	$sql= "delete from `files` where id=".$_GET['id'].";";
    $db ->query($sql);
	
	//echo $rozszerzenie;
	//$player = ""; 
	//echo "<script>parent.rto[parent.document.fImage.id.value].viewDialog(\'Image\');parent.document.getElementById('fImage').reset();</script>";
    //echo "<script>parent.document.getElementById('file_loader').innerHTML='';</script>";
	//echo "<script>";
	//$al='';
	//if ($_POST['pozycja']!='') $al="align=".$_POST['pozycja']."";
	//list($width, $height, $type, $attr) = getimagesize('../upload/'.$foto.'.jpg'); if ($width>500) $w='width=500'; else $w='';
	//if ($_POST['wysokoscmin']!='') $w='height='.$_POST['wysokoscmin'];
	
//	if ($_POST['aktywny']==on) 
	//echo "
	//var html='<a href=\'upload/".$foto.".jpg\' id=\"mb".$j."\" class=\"mb\" ><img src=\'upload/".$foto.".jpg\' border=0 $al $w></a>';
//	";
	//else
	//echo "
	//var html='<img src=\'upload/".$foto.".jpg\' border=0 $al $w>';
	//";
	//<div class=\"multiBoxDesc mb".$j."\">$opis</div>
//	echo "
	////alert(html);
    //parent.editor1.doCmd('insertHTML', html);
	//
	//</script>
	//";

		echo "<script>parent.document.getElementById('upload_form').reset();</script>";		
				echo "<script>parent.pokaz_pliki_do_pobrania(".$_GET['page'].",".$_GET['news'].")</script>";	

//echo "<script>parent.document.getElementById('okladka_error').innerHTML=\"<font color=red>Błąd podczas przesyłania pliku!</font>\";</script>";


?>
Back to Directory File Manager