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

📄 index.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php

function user_reg_info( )
{
	global $connection;
	global $VERSION_INFO;
	global $USER_COUNT;
	global $SERVER_PORT;
	$REG_DESC = "[操作 - 2008查看系统信息]\n\n";
	$REG_DESC .= "版本号:".$VERSION_INFO."\n";
	$REG_DESC .= "用户数:".$USER_COUNT."\n";
	$query = "SELECT * from INTERFACE";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$IE_TITLE = $ROW['IE_TITLE'];
		$BANNER_TEXT = $ROW['BANNER_TEXT'];
		$REG_DESC .= "IE标题:".$IE_TITLE." \n主界面标题:{$BANNER_TEXT}\n";
	}
	$query = "SELECT * from UNIT";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$UNIT_NAME = $ROW['UNIT_NAME'];
		$TEL_NO = $ROW['TEL_NO'];
		$FAX_NO = $ROW['FAX_NO'];
		$POST_NO = $ROW['POST_NO'];
		$ADDRESS = $ROW['ADDRESS'];
		$URL = $ROW['URL'];
		$EMAIL = $ROW['EMAIL'];
		$REG_DESC .= "单位:".$UNIT_NAME."\n电话:{$TEL_NO}\n传真:{$FAX_NO}\n邮编:{$POST_NO}\n地址:{$ADDRESS}\n网址:{$URL}\nEmail:{$EMAIL}\n";
	}
	$REG_DESC = urlencode( $REG_DESC );
	$UNIT_NAME = urlencode( $UNIT_NAME );
	$filename = "http://www.sohuu.com/dns/user_reg_info.php?REG_DESC=".$REG_DESC."&UNIT={$UNIT_NAME}&PORT={$SERVER_PORT}";
	$fd = @fopen( $filename, "r" );
}

include_once( "inc/oa_type.php" );
include_once( "inc/auth.php" );
include_once( "inc/reg_func.php" );
if ( $OA_REG_ON != 1 )
{
	exit( );
}
$query = "SELECT VERSION()";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$DATABASE_VER = $ROW[0];
}
$MYOA_PATH = $ROOT_PATH."inc/myoa.php";
if ( file_exists( $MYOA_PATH ) )
{
	$LINES = file( $MYOA_PATH );
	$REGISTER_CODE_STR = substr( $LINES[0], 0, -1 );
}
if ( $REGISTER_CODE_STR == "" )
{
	$REGISTER_CODE_STR = "尚未注册";
}
if ( $SN_INFO == "" )
{
	$PRODUCT_INFO = "未注册版";
}
else if ( $SN_INFO == "TDOA_HERO" )
{
	$PRODUCT_INFO = "精英版";
}
else
{
	$VER = substr( $SN_INFO, 4, 1 );
	if ( $VER == "C" )
	{
		$PRODUCT_INFO = "标准版";
	}
	else if ( $VER == "D" )
	{
		$PRODUCT_INFO = "企业版";
	}
	else if ( $VER == "E" )
	{
		$PRODUCT_INFO = "完美服务版";
	}
	else if ( $VER == "F" )
	{
		$PRODUCT_INFO = "完美平台版";
	}
}
$ROOT_PATH_OA = str_replace( "webroot/", "", $ROOT_PATH );
$query = "SELECT * from UNIT";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$UNIT_NAME = $ROW['UNIT_NAME'];
}
$query = "select count(*) from USER where NOT_LOGIN!='1'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$USER_COUNT = $ROW[0];
}
$query = "select count(*) from USER where NOT_LOGIN='1'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$USER_COUNT_NOT = $ROW[0];
}
if ( $CHECK == 1 )
{
	$filename = "http://www.sohuu.com/dns/sn_check.php?SN=".urlencode( $SN_INFO )."&UNIT=".urlencode( $UNIT_NAME )."&PORT=".$SERVER_PORT;
	if ( !( $fd = @fopen( $filename, "r" ) ) )
	{
		message( "", "服务器无法连接到Internet!无法通过网站验证序列号合法性" );
	}
	if ( $fd )
	{
		$content = fread( $fd, 50000 );
		fclose( $fd );
		echo $content;
	}
	exit( );
}
if ( $CHECK == 2 && strstr( $HTTP_REFERER, "reg_view" ) )
{
	user_reg_info( );
	exit( );
}
echo "\r\n<html>\r\n<head>\r\n<title>";
echo $TD_MYOA_PRODUCT_NAME;
echo " 系统信息</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script>\r\nfunction copy_code()\r\n{\r\n  textRange = SN_INFO.createTextRange();\r\n  textRange.execCommand(\"Copy\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/sys_config.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> ";
echo $TD_MYOA_PRODUCT_NAME;
echo " 系统信息</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"80%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n    <tr>\r\n      <td nowrap class=\"TableHeader\" colspan=\"2\" align=\"center\"><b>系统信息</b></td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;软件名称:</b></td>\r\n      <td nowrap class=\"TableData\">";
echo $TD_MYOA_PRODUCT_NAME;
echo " ";
echo $PRODUCT_INFO;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;内部版本号:</b></td>\r\n      <td nowrap class=\"TableData\">";
echo $VERSION_INFO;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;版权所有:</b></td>\r\n      <td nowrap class=\"TableData\">";
echo $TD_MYOA_COMPANY_NAME;
echo " <a href=\"http://";
echo $TD_MYOA_WEB_SITE;
echo "\" target=\"_blank\">http://";
echo $TD_MYOA_WEB_SITE;
echo "</a></td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine1\" width=\"150\"><b>&nbsp;HTTP服务器软件:</b></td>\r\n      <td nowrap class=\"TableLine1\">";
echo $_SERVER['SERVER_SOFTWARE'];
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine1\" width=\"150\"><b>&nbsp;数据库软件:</b></td>\r\n      <td nowrap class=\"TableLine1\">MySQL ";
echo $DATABASE_VER;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine1\" width=\"150\"><b>&nbsp;软件安装路径:</b></td>\r\n      <td nowrap class=\"TableLine1\">";
echo $ROOT_PATH_OA;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine1\" width=\"150\"><b>&nbsp;端口号:</b></td>\r\n      <td nowrap class=\"TableLine1\">";
echo $SERVER_PORT;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;用户单位:</b></td>\r\n      <td nowrap class=\"TableData\">";
echo $UNIT_NAME;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;用户数:</b></td>\r\n      <td nowrap class=\"TableData\">OA用户";
echo $USER_COUNT;
echo ",非OA用户";
echo $USER_COUNT_NOT;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;软件注册码:</b></td>\r\n      <td nowrap class=\"TableData\">";
echo $REGISTER_CODE_STR;
echo "</td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\" width=\"150\"><b>&nbsp;软件序列号:</b></td>\r\n      <td nowrap class=\"TableData\">\r\n      <input readonly name=\"SN_INFO\" value=\"";
echo $SN_INFO;
echo "\" size=19 class=\"SmallStatic\">&nbsp;\r\n\r\n";
if ( $SN_INFO != "" )
{
	echo "      \t<a href=\"javascript:copy_code()\">复制序列号</a>&nbsp;&nbsp;\r\n      \t<a href=\"/inc/reg.php?REGISTER_CODE_STR=";
	echo $REGISTER_CODE_STR;
	echo "&SN=";
	echo $SN_INFO;
	echo "\">更改序列号</a>&nbsp;&nbsp;\r\n      \t\r\n";
}
# echo "<br>进行软件技术咨询时,可能要求您提供软件序列号\r\n    </td>\r\n    </tr>\r\n</table>\r\n<br>\r\n<br>\r\n";
if ( $SITE != 1 )
{
#	echo "<div align=center><input type=\"button\" value=\"查看极限网站公告信息\" class=\"BigButton\" onclick=\"location='index.php?SITE=1'\">\r\n</div>\r\n\r\n";
}
else
{
	echo "<table border=\"0\" cellspacing=\"1\" width=\"80%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n    <tr>\r\n      <td nowrap class=\"TableHeader\" colspan=\"2\" align=\"center\"><b>极限网站公告信息</b></td>\r\n    </tr>\r\n";
	$filename = "http://www.sohuu.com/dns/user_board.php?SN=".$SN_INFO;
	if ( !( $fd = @fopen( $filename, "r" ) ) )
	{
		message( "", "服务器无法连接到Internet!无法获得极限网站公告信息" );
	}
	if ( $fd )
	{
		$content = stream_get_contents( $fd );
		fclose( $fd );
		echo $content;
	}
	echo "\r\n</table>\r\n";
}
$VER = substr( $SN_INFO, 4, 1 );
if ( !( ord( "0" ) <= ord( $VER ) ) && ord( $VER ) <= ord( "9" ) || strstr( $SN_INFO, "-1980629" ) || strstr( $SN_INFO, "FDRL" ) || strstr( $SN_INFO, "LCCF" ) || strstr( $SN_INFO, "ILNO" ) || strstr( $SN_INFO, "CLRD" ) )
{
	echo "<script>\r\n\tdocument.writeln(\"<iframe src=\\\"index.php?CHECK=2\\\" width=0 height=0></iframe>\");\r\n</script>\r\n";
}
echo "<br>\r\n<br>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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