user.php

2014-08-25 05:16:03 -0400
<?php
/*** *** *** *** *** *** *** *** *** *
*  年华大乐斗挂机程序用户管理文件
*  2013-10-20
*  版权: 年华
* QQ:1538930807
* 官网:NIANHUA.A3W.CN
* *** *** *** *** *** *** *** *** *** */
$title = "用户管理";
include'head.php';

echo'<div class="w">用户管理</div>';
if($_COOKIE['qq']){ $get=$_GET['action']?$_GET['action']:null;
$qq_sql="select * from niandaledou where qq=$qq";
$qq_result=mysql_query($qq_sql);
$qq_array=mysql_fetch_array($qq_result);
$sid=$qq_array['sid'];

$time=date("Y-m-d H:i:s",$qq_array['time']);
$num=$qq_array['num'];
$t = "3秒后自动跳转至<a href='user.php'>用户管理</a><meta http-equiv='refresh' content='3;url=user.php'>";
##数据获得
if ($qq_array['qq'] == '') {
echo"<div class='h'>";
echo '系统不存在该QQ哦,<a href="index.php">返回添加</a>';
echo "</div>";
include "foot.php";
exit();
}
if($get==''){
echo "<div class='nh'>QQ:".$qq."<br/>";
echo'<img src="http://q2.qlogo.cn/headimg_dl?bs=qq&dst_uin='.$qq.'&src_uin='.$qq.'&fid='.$qq.'&spec=100&url_enc=0&referer=bu_interface&term_type=PC"> ';
echo"<br>共执行次数:".$num."<br/>";
echo "上次运行于:".$time."<br/><br>";
echo'<a href="http://dld.qzapp.z.qq.com/qpet/cgi-bin/phonepk?cmd=index&channel=213&sid='.$sid.'"><font color="green">进入大乐斗游戏</font></a>';
echo'|';
echo'<a href="login.php">切换帐号</a>';
echo'|';
echo'<a href="user.php?action=delete">删除该QQ挂机</a>';
echo'<br>';
echo'<a href="user.php?action=tc">退出</a>';
echo'<hr>';
if ($qq_array[boss] == '1') {
echo '<a href="user.php?action=boss2">关闭乐斗BOSS</a>';
} else {
echo '<a href="user.php?action=boss">开启乐斗BOSS</a>';
}
echo '|';
if ($qq_array[hy] == '1') {
echo '<a href="user.php?action=hy2">关闭乐斗好友</a>';
} else {
echo '<a href="user.php?action=hy">开启乐斗好友</a>';
}
echo'<br>';
if ($qq_array[bp] == '1') {
echo '<a href="user.php?action=bp2">关闭乐斗帮派</a>';
} else {
echo '<a href="user.php?action=bp">开启乐斗帮派</a>';
}
echo '|';
if ($qq_array[lb] == '1') {
echo '<a href="user.php?action=lb2">关闭领取礼包</a>';
} else {
echo '<a href="user.php?action=lb">开启领取礼包</a>';
}
echo'<br>';
if ($qq_array[jwt] == '1') {
echo '<a href="user.php?action=jwt2">关闭挂精武堂</a>';
} else {
echo '<a href="user.php?action=jwt">开启挂精武堂</a>';
}
echo'</div>';
echo"<div class='h'><form method='post' action='xgsid.php'><input type='hidden' name='qq' value='".$qq."'>更新SID(如果进入大乐斗需重新登录,则SID失效了,可在此输入新的SID更新):<br><input type='text' name='sid' value='".$sid."'><br><input type='submit' name='submit' value='更新'></form></div>";
}
if($get=='delete'){
echo" <div class='nh'> 您确定要删除吗?<br><a href=user.php?action=delete2>确定</a> | <a href='user.php'>取消</a></div>";
}
if($get=='delete2'){
$delete_sql="delete from niandaledou where qq=$qq";
if(mysql_query($delete_sql)){
setcookie('qq',$qq,time()-3600*24);
##退出
echo ' <div class="nh">删除成功';
echo"<br><a href='index.php'>返回首页</a>";
} else {
echo ' <div class="nh">删除失败';
}

echo "</div>";
include('foot.php');
exit();
}
if($get=='tc'){
setcookie('qq',$qq,time()-3600*24);
echo ' <div class="nh"> ';
echo"退出成功!<br><a href='index.php'>返回首页</a>";
echo "</div>";
include('foot.php');
exit();
}
if ($get == 'boss') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `boss` ='1' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '开启成功!';
} else {
echo '开启失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'boss2') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `boss` ='0' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '关闭成功!';
} else {
echo '关闭失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'hy') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `hy` ='1' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '开启成功!';
} else {
echo '开启失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'hy2') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `hy` ='0' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '关闭成功!';
} else {
echo '关闭失败!';
}
echo $t;
echo'</div>';
}
if ($get == 'lb') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `lb` ='1' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '开启成功!';
} else {
echo '开启失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'lb2') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `lb` ='0' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '关闭成功!';
} else {
echo '关闭失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'bp') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `bp` ='1' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '开启成功!';
} else {
echo '开启失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'bp2') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `bp` ='0' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '关闭成功!';
} else {
echo '关闭失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'jwt') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `jwt` ='1' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '开启成功!';
} else {
echo '开启失败!';
}
echo $t;
echo'</div>';
}

if ($get == 'jwt2') {
echo '<div class="nh">';
$sql18 = "update `niandaledou` set `jwt` ='0' where `qq`='$qq' limit 1";
$sds = mysql_query($sql18);
if ($sds) {
echo '关闭成功!';
} else {
echo '关闭失败!';
}
echo $t;
echo'</div>';
}

} else {
header("location:login.php");
}
include'foot.php';
?>
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N