<?php
//'**************************************************************************************************
//' 软件名称: 搜一次 Content Management System
//' 版本编号: PHP V1.6版
//' 官方网站: http://www.syccms.com
//' 官方论坛：http://bbs.syccms.com
//' 版权所有: 搜一次运营团队
//' 郑重声明:
//'    1、任何个人或组织不得在未经授权的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
//'    2、搜一次网络有限公司保留此软件的法律追究权利
//'**************************************************************************************************
include "../include/conn.php";
include "../include/function.php";

$Vipname=SafeRequest("name","get");
$Vippwd=SafeRequest("pwd","get");
$Viplogn=SafeRequest("logname","get");
if(($Vipname=="")||($Vippwd=="")){
	if(empty($_COOKIE["S_Name"])||empty($_COOKIE["S_PWD"])){
		echo "<script>window.location='userlog.php'</script>";
		die();
	}
	else{
		$sql="select * from s_users where S_Name='".$_COOKIE["S_Name"]."'";
		$result=$db->query($sql);
		if($row=$db->fetch_array($result)){
			if($row["S_PassWord"]!=$_COOKIE["S_PWD"]){
				echo "<script>window.location='userlog.php'</script>";
				die();
			}
			else{
			}
		}
		else{
			echo "<script>window.location='userlog.php'</script>";
			die();
		}
	}
}
else{
	if($Vipname==""){
		echo "<script>window.location='userlog.php'</script>";
	}
	else{
		$sql="select * from s_users where S_Name='".$Vipname."'";
		$result=$db->query($sql);
		if($row=$db->fetch_array($result)){
			if($row["S_PassWord"]==$Vippwd){
				if($row["S_Group"]==1){
					setcookie("S_LogName",$Viplogn,time()+3600);
				}
				setcookie("S_Name",$Vipname,time()+3600);
				setcookie("S_PWD",$Vippwd,time()+3600);
			}
			else{
				echo "<script>window.location='userlog.php'</script>";
			}
		}
		else{
			echo "<script>window.location='userlog.php'</script>";
			
		}
	}
}

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<link href="images/style.css" rel="stylesheet" type="text/css" />
<title>会员中心 - <?php echo s_sitename ?></title>
</head>
<body>

<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border:#004fac 1px solid">
  <tr>
    <td width="219"><a href="http://www.yicicms.com" target="_blank"><img src="images/logo.gif" border="0" /></a></td>
    <td width="727">&nbsp;</td>
  </tr>
</table>


<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" style="border:#004fac 1px solid; ">
  
  <tr>
    <td width="212" rowspan="2" valign="top" bgcolor="#004fac"><table width="211" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="32" height="29" align="center" background="images/class.jpg"><img src="images/info.jpg"/></td>
    <td width="179" align="left" background="images/class.jpg" class="listsize">会员信息管理</td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#ddefff"  ><img src="images/minus.jpg" /> <a href="usercen.php?action=list1"></a></td>
    <td height="30" align="left" bgcolor="#ddefff"  >&nbsp; <a href="usercen.php?action=list1" target="right"><font style="font-size:14px;">会员系统消息</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#ddefff"  ><img src="images/minus.jpg" /></td>
    <td height="30" align="left" bgcolor="#ddefff"  >&nbsp; <a href="usercen.php?action=vipinfo" target="right"><font style="font-size:14px;">用户资料信息</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" align="left" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=showinfo" target="right"><font style="font-size:14px;">修改用户资料</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>
   <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" align="left" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=password1" target="right"><font style="font-size:14px;">修改用户密码</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="29" align="center" background="images/class.jpg"><img src="images/account.jpg" /></td>
    <td align="left" background="images/class.jpg" class="listsize"><font style="font-size:14px;">会员功能操作</font></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=usertg" target="right"><font style="font-size:14px;">推广赚取积分</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr> 
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=list2" target="right"><font style="font-size:14px;">用户留言信息</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=watchrec" target="right"><font style="font-size:14px;">用户观看记录</font></a></td>
  </tr>
   <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr> 
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=sqlist" target="right"><font style="font-size:14px;">用户网站收藏</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>   
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=usercz" target="right"><font style="font-size:14px;">用户在线充值</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=changejf" target="right"><font style="font-size:14px;">用户积分转换</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="29"align="center" background="images/class.jpg"><img src="images/exit.jpg" height="22" /></td>
    <td height="30"align="left" background="images/class.jpg" class="listsize" ><font style="font-size:14px;">退出管理后台</font></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="30" align="right" bgcolor="#ddefff" ><img src="images/minus.jpg" /></td>
    <td height="30" bgcolor="#ddefff" >&nbsp; <a href="usercen.php?action=delcook" target="_parent"><font style="font-size:14px;">安全退出管理</font></a></td>
  </tr>
  <tr>
  	<td colspan="2" height="2" bgcolor="#ffffff"></td>
  </tr>  
  <tr>
    <td height="218" colspan="2" align="center" bgcolor="#ddefff">&nbsp;</td>
  </tr>
</table></td>
    <td width="734" height="29" background="images/autorepeat.jpg">&nbsp;<a href="<?php echo S_SiteDomain.S_SitePath;?>"><font color="#ff0033"><strong>&lt;&lt;返回首页看电影</strong></font></a></td>
  </tr>
  <tr>
    <td valign="top" bgcolor="#ffffff"><br/><iframe name="right" id="right" align="middle" src="usercen.php?action=vipinfo" scrolling="auto" width="735px" height="520px" frameborder="no" border="0" marginwidth="0" marginheight="0">
    </iframe></td>
  </tr>
</table>

<table width="950" height="100" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border:#004fac 1px solid">
  <tr>
    <td width="728"><a href="http://www.syccms.com" target="_blank"></a>
      <table width="100%" height="89" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center"><a href="<?php echo S_SiteDomain; ?>" target="_blank">网站首页</a>&nbsp;&nbsp; |&nbsp; <a href="http://wpa.qq.com/msgrd?v=1&amp;uin=<?php echo S_AdminQQ; ?>&amp;site=<?php echo S_SiteName; ?>&amp;menu=yes" target="_blank">点卡冲值</a>&nbsp;&nbsp; |&nbsp; <a href="<?php echo S_SiteDomain; ?>" target="_blank">联系我们</a>&nbsp;&nbsp; |&nbsp; <a href="http://wpa.qq.com/msgrd?v=1&amp;uin=<?php echo S_AdminQQ; ?>&amp;site=<?php echo S_SiteName; ?>&amp;menu=yes" target="_blank">商务合作</a>&nbsp;&nbsp; |&nbsp; <a target="blank" href="http://wpa.qq.com/msgrd?v=1&uin=<?php echo S_AdminQQ; ?>&site=<?php echo S_SiteName; ?>&menu=yes">客服中心</a>&nbsp;&nbsp; |&nbsp; <a href="<?php echo S_SiteDomain; ?>" target="_blank">免责声明</a></td>
        </tr>
        <tr>
          <td align="center"> 联系站长：<?php echo S_AdminQQ; ?>&nbsp;&nbsp;电子邮件：<?php echo S_Adminmail; ?>&nbsp;&nbsp;  <?php echo html_entity_decode(stripslashes(S_SiteCount)) ?></td>
        </tr>
      </table></td>
    <td width="220"><a href="http://www.syccms.com" target="_blank"><img src="images/logo.gif" border="0" /></a><a href="http://bbs.syccms.com" target="_blank"></a></td>
  </tr>
</table>
</body>
</html>
