EasyImages2.0/application/post_del.php

31 lines
663 B
PHP
Raw Normal View History

2021-11-09 03:43:23 +00:00
<?php
/**
2022-02-23 03:12:10 +00:00
* 删除/回收文件页面
* @author Icret
* 2022-2-23 11:01:52
2021-11-09 03:43:23 +00:00
*/
require_once __DIR__ . '/function.php';
2022-01-27 09:25:46 +00:00
if (!is_who_login('admin')) {
exit('Not Logged!');
2021-11-09 03:43:23 +00:00
}
2022-02-23 03:12:10 +00:00
// 删除文件
if (isset($_POST['del_url_array'])) {
$del_url_array = $_POST['del_url_array'];
$del_num = count($del_url_array);
for ($i = 0; $i < $del_num; $i++) {
getDel($del_url_array[$i], 'url');
}
2021-11-09 03:43:23 +00:00
}
2022-02-23 03:12:10 +00:00
// 回收文件
if (isset($_POST['recycle_url_array'])) {
$recycle_url_array = $_POST['recycle_url_array'];
$del_num = count($recycle_url_array);
for ($i = 0; $i < $del_num; $i++) {
checkImg($recycle_url_array[$i], 3);
}
2022-01-27 09:25:46 +00:00
}