<?php
if(!defined('IN_CRONLITE'))exit();
$uin=is_numeric($_GET['q'])?$_GET['q']:'0';
@header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE HTML>
<html>
<head>
<title><?php echo $uin?>-秒赞认证-<?php echo $conf['sitename']?></title>
<meta name="keywords" content="离线CQY,<?php echo $uin?>,<?php echo $uin?>秒赞验证"/>
<meta name="description" content="<?php echo $config['web_name']?>"/>
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="//clouds.odata.cc/static/search.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
</head>
<?php
$result=$DB->query("select * from ".DBQZ."_qq where qq='$uin' and status='1' limit 1");
if($row = $DB->fetch($result)){
	$gtk=getGTK($row['pskey']);
	$url='https://mobile.qzone.qq.com/list?g_tk='.$gtk.'&res_attach=att%3D0&format=json&list_type=shuoshuo&action=0&res_uin='.$row['qq'].'&count=5';
	$cookie='uin=o0'.$row['qq'].'; skey='.$row['skey'].'; p_skey='.$row['pskey'].'; p_uin=o0'.$row['qq'].';';
	$json=get_curl($url,0,'https://mobile.qzone.qq.com/infocenter?g_ut=3&g_f=6676',$cookie);
	$arr=json_decode($json,true);
	$zan=0;
	if($arr=$arr['data']['vFeeds']){
		foreach($arr as $new){
			if($new['like']['num']>$zan) $zan=$new['like']['num'];
		}
	}
?>
<body data-focus="1">
<div class="container mm-page">
	<div class="content">
		<div class="user-profile1 text-center">
			<img src="//q1.qlogo.cn/g?b=qq&nk=<?php echo $uin?>&s=100&t=<?php echo date("Ymd")?>" title="【QQ：<?php echo $uin?>】已获得<?php echo $conf['sitename']?>权威认证">
			<h3><?php echo get_qqnick($uin);?></h3>
			<ul class="list-unstyled list-inline">
				<li><a href="./" target="_blank" title="该QQ来自<?php echo $conf['sitename']?>"><span><i class="fa"></i></span></a></li>
			</ul>
			<p>
				您当前查看的QQ,正享受<a href="./"><?php echo $conf['sitename']?></a>系统认证
			</p>
			<a class="p-btn" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $row['qq']?>&site=qq&menu=yes" target="_blank">点击聊天</a>
			<a class="p-btn" href="http://user.qzone.qq.com/<?php echo $row['qq']?>" target="_blank">进入空间</a>
		</div>
		<div class="twitter-box">
			<div class="twitter-box-head">
				<h3>基本信息</h3>
				<div class="twitts-stat">
					<div class="twitts-stat-grid">
						<span>底赞数量</span>
						<label>
						<?php echo $zan?>
						</label>
					</div>
					<div class="twitts-stat-grid">
						<span>QQ号码</span>
						<label><?php echo $row['qq']?></label>
					</div>
					<div class="twitts-stat-grid">
					<span>是否秒赞</span>
					<label>是</label>
					</div>
					<div class="clearfix">
					</div>
				</div>
			</div>
			<script type="text/javascript" src="//clouds.odata.cc/static/jquery.easy-ticker.js?r=<?php echo rand()?>"></script>
			<script type="text/javascript">
							$(document).ready(function(){
								$('#demo').hide();
								$('.vticker').easyTicker();
							});
							</script>
			<div class="latest-tweets-box">
				<div class="vticker" style="display: block; position: relative; height: 134px; overflow: hidden;">
					<ul style="position: absolute; margin: 0px; top: 0px;">
						<?php
						$result=$DB->query("select * from ".DBQZ."_qq order by id limit 10");
						while($qq = $DB->fetch($result)){ 
						?>
						<li style="display: block; margin: 0px;">
						<p style="margin:0px;">
							恭喜<a href="?q=<?php echo $qq['qq']?>" target="_blank">QQ:<?php echo $qq['qq']?></a>,加入<?php echo $conf['sitename']?>认证！
						</p>
						<span style="margin: 0px;"><?php echo $qq['date']?></span></li>
						<?php
						}
						?>
					</ul>
				</div>
			</div>
		</div>
                 <div class="social-tags">
			<h4>秒赞认证查询</h4>
			<div class="newsletter clearfix">
                <div class="wrap">
                                     <div class="newsletter-form clearfix">
                       

       <div class="container">
       <form action="index.php" method="get"><input type="hidden" name="mod" value="search">
<input name="q" onkeyup="value=value.replace(/[^1234567890-]+/g,'')" placeholder="输入要查询的QQ号码" class="form-control" type="text">
      

<br><p style="text-align:center;"><button type="submit" class="p-btn" align="center">秒赞认证查询</button></p>


</form>
  
                  </div>
                    <br><p style="text-align:center;"><span style="color:#3AACF9;">仅支持查询在本平台开启秒赞的用户！</span></p>
                </div>
  
		</div>
		<div class="copy-right">
			<p>
				©2019 <a href="./"><?php echo $conf['sitename']?></a>
			</p>
		</div>
	</div>
</div>
</body>
<?php
}else{
?>
<body data-focus="1">
<div class="container mm-page">
	<div class="clearfix">
	</div>
	<div class="content">
		<div class="col-3-grid-3 alert-box text-center">
			<img src="//clouds.odata.cc/static/qq.png" title="该QQ未加入本站认证系统">
			<h3>槽糕,系统未找到</h3>
			<p>
				该QQ未通过或未加入本站认证系统
			</p>
			<a class="a-alert" href="./">立马加入</a>
		</div>
		<div class="copy-right">
			<p>
				©2019 <a href="./"><?php echo $conf['sitename']?></a>
			</p>
		</div>
	</div>
</div>
</body>
<?php
}
?>
</html>