⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 多用户PHP统计系统 1.统计系统支持多用户申请 2.两种统计模式:1.页面浏览统计 2.独立IP统计 3.两种统计图样:1.统计小图标显示 2.数字样式,共几十种数字样式,还可以自己增加 4
💻 PHP
字号:
<?
session_start();

@include("conn.php");
@include("myfunction.php");

//用户登陆
if($_GET["action"]=="login")
{
  $username=chkstr($_POST["username"],1);
  $pwd=chkstr($_POST["pwd"],1);
  $cookies_time=chkstr($_POST["cookies_time"],2);
  
  if($username=="") alertback("请输入用户名",1);
  if($pwd=="") alertback("请输入密码",1);

  $sql="select username,pwd from cfstat_user where username='$username'";
  $result=mysql_query($sql);
  $rs=mysql_fetch_array($result);
  if ($rs["username"]=="") alertback("没有此用户",1);
  if ($rs["pwd"]<>md5($pwd)) alertback("密码错误",1);
  $_SESSION["cfstatuser"]=$username;
  setcookie("cfstatusercookie",md5("1".$rs["username"].$rs["pwd"]),time()+$cookies_time);
  
 $sql="update cfstat_user set cookies='".md5("1".$rs["username"].$rs["pwd"])."' where username='$username'";
 mysql_query($sql);

  gotourl("manage.php");
}
?>

<HTML>
<HEAD><TITLE><?echo $rsset["title"];?></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<?
@include("cf_style.php");
?>
</HEAD>
<BODY>
<?
@include("top.php");
?>


<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td width="3px" background="images/menu_1.gif" height="24px"></td>
    <td background="images/menu_2.gif">&nbsp;</td>
	<td width="3px" background="images/menu_3.gif" height="24px"></td>
  </tr>
</table>


<table width="98%" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr> 
    <td width="213" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td width="51%" valign="top"><TABLE align=center border=0 cellPadding=0 cellSpacing=0 
            width="100%">
              <TR> 
                <TD class=td1>&nbsp;</TD>
                <TD class=td2 width="200px"><span class="te1">用户登录</span></TD>
                <TD class=td3></TD>
              </TR>
            </TABLE>
            <TABLE align=center bgColor=#cccccc cellPadding=0 cellSpacing=1 
            style="WORD-BREAK: break-all" width="100%">
              <TR bgColor=#ffffff> 
                <TD colSpan=2 vAlign=top><TABLE cellSpacing=0 cellPadding=3 width=200 border=0>
          <form name="form1" method="post" action="index.php?action=login" onsubmit="return check()">
            <TBODY>

              <TR> 
                <TD colSpan=2 height=1><img height=1 
            src="images\spacer(1).gif" 
            width=1></TD>
              </TR>

<?
$lfusercookie=$_COOKIE["lfusercookie"];
if(empty($lfusercookie))
{
?>
              <TR bgColor=#f7f7f7> 
                <TD>&nbsp;用户名:</TD>
                <TD><INPUT id=user_name size=16 name=username></TD>
              </TR>
              <TR bgColor=#f7f7f7> 
                <TD>&nbsp;密&nbsp;&nbsp;码:</TD>
                <TD><INPUT id=pwd type=password size=16 
            name=pwd></TD>
              </TR>
              <TR bgColor=#f7f7f7> 
                <TD>Cookies:</TD>
                <TD><select name="cookies_time" id="cookies_time">
                    <option value="0" selected>不保留</option>
                    <option value="86400">保留一天</option>
                    <option value="2592000">保留一个月</option>
                    <option value="31104000">保留一年</option>
                  </select></TD>
              </TR>
              <TR bgColor=#f7f7f7> 
                <TD></TD>
                <TD><INPUT type=image 
            src="images/login.gif" border=0 
            name=imageField> &nbsp;<A href="reg.php"><img src="images/reg.gif" 
            border=0></A></TD>
              </TR>
         <?
}
else
{
?><TR bgColor=#f7f7f7> 
                <TD></TD>
                <TD class="td_1"><a href="manage.php"><strong><font color="#FF0000">登陆系统</font></strong></a></TD>
              </TR>
              <TR bgColor=#f7f7f7>
                <TD></TD>
                <TD class="td_1"><a href="manage.php?action=logout"><strong><font color="#FF0000">退出管理</font></strong></a></TD>
              </TR>
<?
}
?>
          </FORM>
        </TABLE></TD>
              </TR>
            </TABLE>
            <TABLE align=center border=0 cellPadding=0 cellSpacing=0 
            width="100%">
              <TR> 
                <TD class=td4></TD>
                <TD class=td5 width="158px"></TD>
                <TD class=td6></TD>
              </TR>
            </TABLE></td>
        </tr>
      </table></td>
    <td valign="top"><IMG src="images/banner.jpg" width="497" height="158" hspace="3" vspace="8" border="0"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr> 
    <td valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td width="51%" valign="top"><TABLE align=center border=0 cellPadding=0 cellSpacing=0 
            width="100%">
              <TR> 
                <TD class=td1>&nbsp;</TD>
                <TD class=td2 width="1000px"><span class="te1"><?echo $rsset["title"];?>简介</span></TD>
                <TD class=td3></TD>
              </TR>
            </TABLE>
            <TABLE align=center bgColor=#cccccc cellPadding=0 cellSpacing=1 
            style="WORD-BREAK: break-all" width="100%">
              <TR bgColor=#ffffff> 
                <TD colSpan=2 vAlign=top><TABLE cellSpacing=0 cellPadding=0 width=100% align=center 
bgColor=#ffffff border=0>
                    <TBODY>
                      <TR>
                        <TD vAlign=bottom align=middle width=10>&nbsp; </TD>
                        <TD width=706 vAlign=top ><strong><img height=1 
      src="images\spacer(1).gif" 
      width=1>功 能:</strong><br>
1.统计系统支持多用户申请<br>
2.两种统计模式:1.页面浏览统计 2.独立IP统计<br>
3.两种统计图样:1.统计小图标显示 2.数字样式,共几十种数字样式,还可以自己增加<br>
4.可以统计每个来源的点击数量,有报表可以查询<br>
5.可以更换几种皮肤<br>
6.完全防注入攻击,密码32位Md5加密<br>
                        </TD>
                        <TD vAlign=bottom align=middle width=21>&nbsp;</TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
            </TABLE>
            <TABLE align=center border=0 cellPadding=0 cellSpacing=0 
            width="100%">
              <TR> 
                <TD class=td4></TD>
                <TD class=td5 width="920px"></TD>
                <TD class=td6></TD>
              </TR>
            </TABLE></td>
        </tr>
      </table></td>
  </tr>
</table>

<?
@include("bottom.php");
?>

</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -