ImgURL是一个简单、纯粹的图床程序,让个人图床多一个选择。
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

7 years ago
<?php
7 years ago
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
7 years ago
include_once("../functions/class/class.admin.php");
//获取图片ID
$id = $_GET['id'];
$id = (int) $id;
7 years ago
//获取类型
$type = $_GET['type'];
7 years ago
if((!isset($id) || ($id == ''))) {
echo 'ID错误';
exit;
}
7 years ago
// 判断类型
switch ($type) {
case 'sm':
$pic->deletesm($id);
break;
default:
//删除图片
$pic->delete($id);
break;
}
7 years ago
?>