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

📄 stat_member.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/stat.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 71 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<div align=\"center\">\r\n  <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n    <tr> \r\n      <td width=\"250\" >&nbsp;&nbsp;<img src=\"images/bar.gif\" width=\"13\" height=\"12\">&nbsp;&nbsp;";
echo $strStatFav;
echo "</td>\r\n      <td >&nbsp;</td>\r\n      <td width=\"100\" >&nbsp;</td>\r\n    </tr>\r\n    \r\n  </table>\r\n\r\n\r\n\r\n <br>\r\n  <table width=\"625\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n    <tr> \r\n      <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n      <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strStatFav;
echo " [";
echo $strStatFPerson;
echo ":";
echo $member;
echo "]</td>\r\n      <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n    </tr>\r\n  </table>\r\n  <table width=\"623\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n    <tr> \r\n      <form method=\"get\" action=\"stat_member.php\">\r\n        <td class=pages colspan=\"2\"> ";
echo daylist( "fromY", "fromM", "fromD", $fromY, $fromM, $fromD );
echo " \r\n          - ";
echo daylist( "toY", "toM", "toD", $toY, $toM, $toD );
echo " \r\n          <input type=\"hidden\" name=\"tp\" value=\"search\">\r\n          <input type=\"hidden\" name=\"member\" value=\"";
echo $member;
echo "\">\r\n          <input type=\"submit\" name=\"Submit\" value=\"";
echo $strQuery;
echo "\" class=button>\r\n        </td>\r\n      </form>\r\n\r\n    </tr>\r\n  </table>\r\n";
if ( !isset( $fromM ) || !isset( $toM ) )
{
	$fromY = date( "Y", time( ) );
	$fromM = date( "n", time( ) );
	$fromD = date( "j", time( ) );
	$toY = date( "Y", time( ) );
	$toM = date( "n", time( ) );
	$toD = date( "j", time( ) );
}
$fromtime = mktime( 0, 0, 0, $fromM, $fromD, $fromY );
$totime = mktime( 23, 59, 59, $toM, $toD, $toY );
$scl = " member='{$member}' ";
$scl .= " and time>={$fromtime} and time<={$totime} ";
$totalnums = tblcount( $tbl_stat_count, "id", $scl );
$pages = new pages( );
$pages->setvar( array(
	"member" => $member,
	"tp" => $tp,
	"fromY" => $fromY,
	"fromM" => $fromM,
	"fromD" => $fromD,
	"toY" => $toY,
	"toM" => $toM,
	"toD" => $toD
) );
$pages->set( 10, $totalnums );
$pagelimit = $pages->limit( );
echo "  <table width=\"625\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\">\r\n    <tr> \r\n\t <td align=\"center\"  class=title width=\"120\" height=\"25\">";
echo $strStatFtime;
echo "</td>\r\n      <td align=\"center\"  class=title height=\"25\">";
echo $strStatFUrl;
echo "</td>\r\n      <td align=\"center\"  class=title height=\"25\">";
echo $strStatFPage;
echo "</td>\r\n\r\n    </tr>\r\n    ";
$msql->query( "select * from {$tbl_stat_count} where {$scl} order by id desc limit {$pagelimit}" );
while ( $msql->next_record( ) )
{
	$time = $msql->f( "time" );
	$ip = $msql->f( "ip" );
	$os = $msql->f( "os" );
	$ie = $msql->f( "browse" );
	$from = $msql->f( "urlform" );
	$nowpage = $msql->f( "nowpage" );
	$member = $msql->f( "member" );
	$time = date( "Y-n-j H:i:s", $time );
	$from1 = csubstr( $from, 0, 28, 1 );
	$nowpage1 = str_replace( $SiteUrl, "", $nowpage );
	$nowpage1 = csubstr( $nowpage1, 0, 28, 1 );
	if ( substr( $member, 0, 2 ) == "10" || substr( $member, 0, 2 ) == "11" )
	{
		$member1 = "非会员";
	}
	else
	{
		$member1 = $member;
	}
	echo " \r\n    <tr> \r\n      <td  class=con align=\"center\" width=\"120\">&nbsp;";
	echo $time;
	echo "</td>\r\n      <td  class=con width=\"250\" >&nbsp;";
	echo "<a href={$from} target=_blank title='{$from}'><font color=#000000>{$from1}</font></a>";
	echo "</td>\r\n      <td  class=con >&nbsp;";
	echo "<a href={$nowpage} target=_blank title='{$nowpage}'><font color=#000000>{$nowpage1}</font></a>";
	echo "</td>\r\n    </tr>\r\n    ";
}
echo " \r\n  </table>\r\n  <table width=\"623\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n    <tr> \r\n      <td class=pages width=\"300\">";
$pages->shownow( );
echo " </td>\r\n      <td class=pages align=\"right\">";
$pages->output( $ShowPageList );
echo "</td>\r\n    </tr>\r\n  </table>\r\n</div>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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