爱看星星 - 专注于分享类博客 - 截图 https://www.2kxy.com/tag/%E6%88%AA%E5%9B%BE/ zh-CN Sat, 16 Sep 2023 10:10:00 +0800 Sat, 16 Sep 2023 10:10:00 +0800 填写正确的密码,上传文件PHP源码 https://www.2kxy.com/38.html https://www.2kxy.com/38.html Sat, 16 Sep 2023 10:10:00 +0800 admin <?php // 设置密码 $password = "123123"; // 设置上传目录 $uploadDir = "uploads/"; // 检查密码 if (isset($_POST['password']) && $_POST['password'] === $password) { // 确保有文件被上传 if (isset($_FILES['file']) && $_FILES['file']['error'] === UPLOAD_ERR_OK) { // 获取上传文件信息 $fileInfo = pathinfo($_FILES['file']['name']); $fileName = $fileInfo['filename']; $fileExt = $fileInfo['extension']; // 生成一个唯一的文件名 $uploadFileName = uniqid($fileName . '_') . '.' . $fileExt; // 移动上传文件到指定目录 $uploadFilePath = $uploadDir . $uploadFileName; move_uploaded_file($_FILES['file']['tmp_name'], $uploadFilePath); // 返回上传链接 $uploadLink = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $uploadFilePath; echo "文件上传成功!上传链接:<a href='$uploadLink'>$uploadLink</a>"; } else { echo "文件上传失败!"; } } else { // 密码错误时显示密码输入框 echo ' <form method="POST" enctype="multipart/form-data"> <input type="password" name="password" placeholder="输入密码" required> <input type="file" name="file" required> <input type="submit" value="上传文件"> </form>'; } ?>







成品截图

]]>
0 https://www.2kxy.com/38.html#comments https://www.2kxy.com/feed/tag/%E6%88%AA%E5%9B%BE/
自适应二次元漫画APP下载单页 https://www.2kxy.com/37.html https://www.2kxy.com/37.html Mon, 11 Sep 2023 21:52:00 +0800 admin 源码截图
11

源码下载
https://linche.lanzouc.com/in09915ozd3c

]]>
0 https://www.2kxy.com/37.html#comments https://www.2kxy.com/feed/tag/%E6%88%AA%E5%9B%BE/
Like_Girl V5.0.0恋爱主题博客 https://www.2kxy.com/26.html https://www.2kxy.com/26.html Mon, 07 Aug 2023 21:51:00 +0800 admin 源码截图:
1

下载地址:
https://linche.lanzouk.com/ial3m13eo63c

]]>
0 https://www.2kxy.com/26.html#comments https://www.2kxy.com/feed/tag/%E6%88%AA%E5%9B%BE/
安卓一键修改手Q在线机型 https://www.2kxy.com/15.html https://www.2kxy.com/15.html Sun, 06 Aug 2023 00:07:00 +0800 admin 软件介绍:
可以自定义QQ的在线状态信息,且全部好友可见,无需会员,一键操作

软件截图:
1

下载地址:
https://www.123pan.com/s/GvmZVv-Qg9Fv.html

如果修改后无效或者修改失败请检查你的IMEI码是否填写正确

]]>
0 https://www.2kxy.com/15.html#comments https://www.2kxy.com/feed/tag/%E6%88%AA%E5%9B%BE/