mirror of https://github.com/helloxz/imgurl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
547 B
27 lines
547 B
<?php |
|
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED); |
|
include_once("../functions/class/class.admin.php"); |
|
//获取图片ID |
|
$id = $_GET['id']; |
|
$id = (int) $id; |
|
//获取类型 |
|
$type = $_GET['type']; |
|
|
|
if((!isset($id) || ($id == ''))) { |
|
echo 'ID错误'; |
|
exit; |
|
} |
|
|
|
// 判断类型 |
|
switch ($type) { |
|
case 'sm': |
|
$pic->deletesm($id); |
|
break; |
|
|
|
default: |
|
//删除图片 |
|
$pic->delete($id); |
|
break; |
|
} |
|
|
|
?>
|