File Manager

Current Path : /webspace/www.alexishaulot.be/html/admin/
Upload File :
Current File : /webspace/www.alexishaulot.be/html/admin/del_photo.php

<?
	require_once("../config.php");
	
	$query = "select image,thumb from photo where id=".$_REQUEST['photo_id'];
	$res1 = mysql_query($query,$link);
	$rec = mysql_fetch_assoc($res1);
	unlink($rec['image']);
	unlink($rec['thumb']);
	
	$query = "delete from photo where id=".$_REQUEST['photo_id'];
	$res = mysql_query($query,$link);
	
	header("Location: index.php");
?>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com