File: //www/备份的/www.giornb.tw/et/ht.php
<?php
header("Content-Type:text/html;charset=utf-8");
session_start();
if (isset($_POST['login'])) {
$username = trim($_POST['username']);
$password = trim($_POST['password']);
if (($username == '') || ($password == '')) {
header('refresh:3;url=ht.html');
echo "改用户名或密码不能为空,3秒后跳转到登录页面";
exit;
} else if (($username != 'admin') || ($password != 'admin.2021')) {
//用户名或密码错误
header('refresh:3;url=ht.html');
echo "用户名或密码错误,请重新登录!或者联系技术微信:wxmingyan-----小伙子不要乱来哦!我已经注意到你了";
exit;
} else if (($username == 'admin') && ($password == 'admin.2021')) {
//登录成功将信息保存到session中
$_SESSION['username'] = $username;
$_SESSION['islogin'] = 1;
//如果勾选7天内自动保存,则将其保存到cookie
if ($_POST['remember'] == "yes") {
setcookie("username", $username, time() + 7 * 24 * 60 * 60);
setcookie("code", md5($username . md5($password)), time() + 7 * 24 * 60 * 60);
} else {
setcookie("username", '', time() - 1);
setcookie("code", '', time() - 1);
}
//跳转到用户首页
// header('refresh:0.1;url=ht.php');
}
}
?>
<?php
header("Content-Type:text/html;charset=utf-8");
session_start();
//首先判断Cookie是否有记住用户信息
if (isset($_COOKIE['username'])) {
$_SESSION['username'] = $_COOKIE['username'];
$_SESSION['islogin'] = 1;
}
if (isset($_SESSION['islogin'])) {
//已经登录
echo '<p style="text-align: center;font-size:18px;font-weight:700;line-height:50px;">';
echo $_SESSION['username'] . ":你好,欢迎进入个人中心! ";
echo "<a href='logout.php'>退出登录</a>";
echo '</p>';
} else { //为登录
echo '
<script LANGUAGE="JavaScript">
window.location="ht.html";
</script>
';
}
?>
<form action="add.php" name="form" method="post" enctype="multipart/form-data" >
<table width="550" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#B3B3B3" brder="1">
<tbody>
<tr style="display:none">
<td width="62" align="center" bgcolor="#FFFFFF">性别:</td>
<td width="465" bgcolor="#FFFFFF"><input type="text" name="title">
*
</td>
</tr>
<tr style="display:none">
<td align="center" bgcolor="#FFFFFF">微信昵称:</td>
<td bgcolor="#FFFFFF"><input name="name" type="text" id="name">
*
</td>
</tr>
<tr style="display:none">
<td align="center" bgcolor="#FFFFFF">微信二维码:</td>
<td bgcolor="#FFFFFF">
<input type="file" name="file" value=""/></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">line号码:</td>
<td bgcolor="#FFFFFF">
<input name="weixinhao" type="text" id="name"></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">line链接:</td>
<td bgcolor="#FFFFFF">
<input name="shouji" type="text" id="name"></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF">
<input name="submit" type="submit" value="提交">
<input name="reset" type="reset" value="重填"></td>
</tr>
</tbody>
</table>
</form>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="Copyright" content="60IE.NET CopyRight 2013"/>
<title>后台管理中心</title>
<style type="text/css">
<!--
body, td, th {
font-family: 宋体;
font-size: 9pt;
color: #222;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
line-height: 20px;
}
a:link {
color: #222;
/*text-decoration: none;*/
}
a:visited {
text-decoration: none;
color: #222;
}
a:hover {
text-decoration: underline;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #999999;
}
-->
</style>
<?php
if ($_POST["id"] != "") {
$id = $_POST["id"];
$info = file_get_contents("info.txt");
$column = explode("@@@", $info);
unset($column[$id]);
$noinfo = implode("@@@", $column);
file_put_contents("info.txt", $noinfo);
echo "<script language=javascript>alert('删除成功!');</script>";
}
?>
<?php
if ($_POST["id1"] != "") {
$id1 = $_POST["id1"];
$info1 = file_get_contents("whatsApp.txt");
$column1 = explode("@@@", $info1);
unset($column1[$id1]);
$noinfo1 = implode("@@@", $column1);
file_put_contents("whatsApp.txt", $noinfo1);
echo "<script language=javascript>alert('删除成功!');</script>";
}
?>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#B3B3B3" >
<tr>
<th width="60" bgcolor="#EBEBEB">id</th>
<th width="133" bgcolor="#EBEBEB">line号码</th>
<th width="133" bgcolor="#EBEBEB">line 链接</th>
<th width="78" bgcolor="#EBEBEB">时间</th>
<th width="59" bgcolor="#EBEBEB">操作</th>
</tr>
<?php
$info = file_get_contents("info.txt");
$info = rtrim($info, "@");
if (strlen($info) > 10) {
$column = explode("@@@", $info);
foreach ($column as $keys => $values) {
$message = explode("%%", $values);
?>
<tr>
<td align="center" bgcolor="#FFFFFF">
<?php echo $keys; ?></th>
<td align="center" bgcolor="#FFFFFF">
<?php echo $message[3]; ?></th>
<td align="center" bgcolor="#FFFFFF">
<?php echo $message[4]; ?></th>
<td align="center" bgcolor="#FFFFFF">
<?php echo date("m/d H:i", $message[5]); ?></th>
<td align="center" bgcolor="#FFFFFF">
<form action="" name="form" method="post" enctype="multipart/form-data">
<?php
echo ' <input name="id" type="hidden" id="name" value="' . $keys . '"> ';
?>
<input name="submit" type="submit" value="删除">
</form>
</tr>
<?php
}
}
?>
</table>
<br>
<br>
<form action="add.php" name="form" method="post" enctype="multipart/form-data">
<table width="550" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#B3B3B3" brder="1">
<tbody>
<tr style="display:none">
<td width="62" align="center" bgcolor="#FFFFFF">性别:</td>
<td width="465" bgcolor="#FFFFFF"><input type="text" name="title">
*
</td>
</tr>
<tr style="display:none">
<td align="center" bgcolor="#FFFFFF">微信昵称:</td>
<td bgcolor="#FFFFFF"><input name="name" type="text" id="name">
*
</td>
</tr>
<tr style="display:none">
<td align="center" bgcolor="#FFFFFF">微信二维码:</td>
<td bgcolor="#FFFFFF">
<input type="file" name="file" value=""/></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">whatsApp号码:</td>
<td bgcolor="#FFFFFF">
<input name="ws" type="text" id="name"></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">whatsApp链接:</td>
<td bgcolor="#FFFFFF">
<input name="ws1" type="text" id="name"></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF">
<input name="submit6" type="submit" value="提交">
<input name="reset" type="reset" value="重填"></td>
</tr>
</tbody>
</table>
</form>
<table width="550" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#B3B3B3">
<tr>
<th width="60" bgcolor="#EBEBEB">id</th>
<th width="133" bgcolor="#EBEBEB">whatsApp号码</th>
<th width="133" bgcolor="#EBEBEB">whatsApp 链接</th>
<th width="78" bgcolor="#EBEBEB">时间</th>
<th width="59" bgcolor="#EBEBEB">操作</th>
</tr>
<?php
$whatsApp = file_get_contents("whatsApp.txt");
$whatsApp = rtrim($whatsApp, "@");
if (strlen($whatsApp) > 10) {
$column1 = explode("@@@", $whatsApp);
foreach ($column1 as $keys1 => $values1) {
$message1 = explode("%%", $values1);
?>
<tr>
<td align="center" bgcolor="#FFFFFF">
<?php echo $keys1; ?></th>
<td align="center" bgcolor="#FFFFFF">
<?php echo $message1[3]; ?></th>
<td align="center" bgcolor="#FFFFFF">
<?php echo $message1[4]; ?></th>
<td align="center" bgcolor="#FFFFFF">
<?php echo date("m/d H:i", $message1[5]); ?></th>
<td align="center" bgcolor="#FFFFFF">
<form action="" name="form" method="post" enctype="multipart/form-data">
<?php
echo ' <input name="id1" type="hidden" id="name1" value="' . $keys1 . '"> ';
?>
<input name="submit1" type="submit" value="删除">
</form>
</tr>
<?php
}
}
?>
</table>
<br>
<br>
<form action="zt.php" method="post" align="center">
<input type="radio" value="1" name="zt">审核状态(手机端电脑端都显示审核页)<br><br>
<input type="radio" value="2" name="zt">推广状态<br><br>
<input name="tj" value="保存状态" id="tj" type="submit">
</form>
<table width="550" height="20" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td align="left" bgcolor="#FFFFFF"> 当前页面状态</td>
<td align="left" bgcolor="#FFFFFF">
<?php
$zt = file_get_contents("zt.txt");
if ($zt == "1") {
echo "审核状态";
}
if ($zt == "2") {
echo "推广状态";
}
if ($zt == "") {
echo "暂未设置,请尽快设置状态,默认为审核状态";
}
if ($zt != "1" && $zt != "2" && $zt != "") {
echo "状态错乱,请联系管理员";
}
?>
</td>
</tr>
</table>
<br><br>
<!--在这里输入谷歌统计代码,重新提交则覆盖原来的代码-->
<form action="link.php" name="form" method="post" enctype="multipart/form-data" style="max-width:600px;margin:0 auto;display:none" >
<p style="margin:0;border:1px solid;width:500px"> 在下面输入统计代码,重新提交则覆盖原来的代码</p>
<textarea name="daima" style="width:500px;height:auto;overflow:aut;min-height:200px;" >
</textarea>
<input name="submit3" type="submit" value="提交">
</form>
<br>
<div style="max-width:600px;margin:0 auto;width:500px;height:500px;border:1px solid;display:none">
<p style="text-align:center;border-bottom:1px solid;margin:0">当前页面统计代码</p>
<pre style="margin:0"><textarea
style="width:100%;height:100%;">
<?php
$tg = file_get_contents("daima.txt");
echo"$tg";
?>
</textarea></pre>
</div>
<form action="link.php" name="form" method="post" enctype="multipart/form-data" >
<table width="550" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#B3B3B3" brder="1">
<tbody>
<tr>
<td align="center" bgcolor="#FFFFFF">推广页:</td>
<td bgcolor="#FFFFFF">
<input name="tuiguan" type="text" id="name"></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF">
<input name="submit1" type="submit" value="提交">
<input name="reset" type="reset" value="重填"></td>
</tr>
</tbody>
</table>
</form>
<form action="link.php" name="form" method="post" enctype="multipart/form-data" >
<table width="550" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#B3B3B3" brder="1">
<tbody>
<tr>
<td align="center" bgcolor="#FFFFFF">审核页:</td>
<td bgcolor="#FFFFFF">
<input name="shenghe" type="text" id="name"></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF">
<input name="submit2" type="submit" value="提交">
<input name="reset" type="reset" value="重填"></td>
</tr>
</tbody>
</table>
</form>
<table width="550" height="20" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" >
<tr>
<td align="left" bgcolor="#FFFFFF"> 当前推广页</td>
<td align="left" bgcolor="#FFFFFF">
<?php
$tg = file_get_contents("linkt.txt");
echo "<a href='$tg' style='color:blue'>
$tg
</a>"
?>
</td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF"> 当前审核页</td>
<td align="left" bgcolor="#FFFFFF">
<?php
$sh = file_get_contents("links.txt");
echo "<a href='$sh' style='color:blue'>
$sh
</a>"
?>
</td>
</tr>
</table>
<br><br>
<br>
<table width="550" height="20" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" style="display:none">
<tr>
<td align="left" bgcolor="#FFFFFF"> 当前页面是否有跳转页</td>
<td align="left" bgcolor="#FFFFFF">
<?php
$tz = file_get_contents("tz.txt");
echo($tz == 1 ? "有跳转页" : "无跳转页");
?>
</td>
</tr>
</table>
<form action="link.php" method="post" align="center" style="display:none">
<input type="radio" value="1" name="tz">需要跳转页<br><br>
<input type="radio" value="2" name="tz">不需要跳转页<br><br>
<input name="submit4" value="保存" id="tz" type="submit">
</form>
<br><br>
<table width="550" height="20" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td align="left" bgcolor="#FFFFFF"> Copyright @2022 赛脑公司版权所有</td>
</tr>
</table>
</body>
</html>