new $.zui.Messager("没有要删除的图片!", { type: "danger", // 定义颜色主题 icon: "exclamation-sign" // 定义消息图标 }).show(); '; } $img = rand_imgurl() . '/public/images/404.png'; if (isset($_GET['url'])) { $img = $_GET['url']; } // 解密删除 if (isset($_GET['hash'])) { $delHash = $_GET['hash']; $delHash = urlHash($delHash, 1); if ($config['image_recycl']) { // 如果开启回收站则进入回收站 if (checkImg($delHash, 3, 'recycle/') == true) { echo ' '; } else { echo ' '; } } else { // 否则直接删除 getDel($delHash, 'url'); } } // 检查登录后再处理url删除请求 if (is_who_login('admin')) { // 广场页面删除 if (isset($_GET['url'])) { getDel($_GET['url'], 'url'); } // 从管理页面删除 if (isset($_GET['url_admin_inc'])) { $del_url = $_GET['url_admin_inc']; if ($config['hide_path']) { $del_url = $config['domain'] . $config['path'] . parse_url($del_url)['path']; } getDel($del_url, 'url'); } // 回收 if (isset($_GET['recycle_url'])) { $recycle_url = $_GET['recycle_url']; $recycle_url = parse_url($recycle_url)['path']; if (file_exists(APP_ROOT . $recycle_url)) { checkImg($recycle_url, 3); echo ' '; } else { echo ' '; } } } else { if (isset($_GET['url'])) { echo ' '; } } ?>
简单图床-EasyImage