• delete.php
  • /
1 <?php
2     $targetFolder =
'uploads/';
3     
if(!isset($_POST['id'])||!isset($_POST['url']))return;
4     
if($_POST['id']=='-1')
5     {
6         unlink($targetFolder.
'img/'.$_POST['url']);
7         unlink($targetFolder.
'thumb/'.$_POST['url']);
8         echo
1;
9     }
10     
else
11     {
12         unlink($targetFolder.
'img/'.$_POST['url']);
13         unlink($targetFolder.
'thumb/'.$_POST['url']);
14         echo
1;
15         
// xu ly xoa csdl
16     }
17
18 ?>



Full source code website bán hàng thương mại điện tử gần giống shopee 467.193 lượt xem

Gõ tìm kiếm nhanh...