no message

This commit is contained in:
2025-10-18 14:46:52 +08:00
commit 7a84025b05
387 changed files with 75711 additions and 0 deletions

111
user/ver.php Normal file
View File

@@ -0,0 +1,111 @@
<?php
include './email.php';
// 获取用户输入
$user = isset($_GET['uk']) ? $_GET['uk'] : '';
$pass = isset($_GET['pk']) ? $_GET['pk'] : '';
$user = v_ou($user);
$pass = v_ou($pass);
$e = 0;
//echo $user.$pass;
// 定义要检查的文件路径
$directoryPath = './can/' . $user; // 目录路径
if (!is_dir($directoryPath)) {
$e = 1;
}
// 定义要检查的文件路径
$directoryPath_can = './can/' . $user . '/' . $pass; // 目录路径
$filePath_can = $directoryPath_can . '/lock.txt'; // 文件路径
// 检查文件是否存在
if (!file_exists($filePath_can)) {
$e = 1;
}
// 定义第二个要检查的文件路径
$directoryPath_me = './me/' . $user . '/' . $pass; // 目录路径
$filePath_me = $directoryPath_me . '/lock.txt'; // 文件路径
// 检查文件是否存在
if (file_exists($filePath_me)) {
$e = 1;
}
if ($e == 1) {
echo '<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>激活失败</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; text-align: center; }
h1 { color: #333; }
p { color: #666; }
</style>
</head>
<body>
<h1>激活失败!</h1>
<p>无法激活您的账号,请联系管理员!</p>
<p><a href="https://host.fuxsto.cn" style="display:inline-block;padding:15px 30px;background-color:#4CAF50;color:white;text-align:center;text-decoration:none;border-radius:5px;">官网</a></p>
<p>如果您未注册,请忽略此邮件。</p>
</body>
</html>';
exit;
}
// 如果目录不存在,创建目录
if (!is_dir($directoryPath_me)) {
mkdir($directoryPath_me, 0755, true); // 创建多级目录
}
// 获取当前时间
$currentDateTime = date("Y年m月d日 H时i分s秒");
// 获取访问者的 IP 地址
$ipAddress = $_SERVER['REMOTE_ADDR'];
// 准备内容
$content = "激活IP: $ipAddress\n";
$content .= "激活时间: $currentDateTime\n";
// 创建文件,并写入内容
if (@file_put_contents($filePath_me, $content) !== false) {
$con = '<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>激活成功</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; text-align: center; }
h1 { color: #333; }
p { color: #666; }
</style>
</head>
<body>
<h1>激活成功!</h1>
<p>感谢您激活您的账号。现在您可以登录并开始使用我们的服务。</p>
<p><a href="https://host.fuxsto.cn" style="display:inline-block;padding:15px 30px;background-color:#4CAF50;color:white;text-align:center;text-decoration:none;border-radius:5px;">前往登录</a></p>
<p>如果您未注册,请忽略此邮件。</p>
</body>
</html>';
if (@sendMail($user . '@qq.com', '#Fuxsto Host 激活成功', $con)) {
echo $con;
exit;
} else {
echo "邮件发送失败,请稍后再试。";
}
} else {
echo "失败:001";
}
?>