2020-11-01 / 5241阅
include('wp-load.php'); if(is_user_logged_in()) { if ($_GET['id']) { $file = get_option($_GET['id']); if (file_exists($file)) { $filename = explode('.', $file); $filename = array_pop($filename); $filename = time().'.'.$filename; header('Content-type:application/octet-stream'); header('Content-Disposition:attachment;filename='.$filename); header('Content-Length:'.filesize($file)); readfile($file); } } }else{ echo '没有登录禁止访问'; }
阅读文章或者观看视频过程中有任何问题,请下方留言或者联系我Q248758228