D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
grandhou
/
public_html
/
admin
/
Filename :
delete-thumbnail-album.php
back
Copy
<!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=utf-8" /> <title>GRAND HOUSE | Admin</title> </head> <body oncontextmenu="return false;"> <script> document.onkeydown = function(e) { if(event.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } } </script> <?php include("include/configpage.php"); $id=$_GET['Id']; $album_id=$_GET['album_id']; $sql = "select file_name from thumbnail_album where album_id='".$album_id."' and thumbid='".$id."'"; $res=mysqli_query($dbhandle,$sql); while($row=mysqli_fetch_array($res)) { unlink("upload/".$row['file_name']); } $sql1 = "delete from thumbnail_album where album_id='".$album_id."' and thumbid='".$id."'"; mysqli_query ($dbhandle,$sql1); header("location:manage-thumbnail-album.php?Id=".$id); ?> </body> </html>