📄 index1.php
字号:
<?php
include_once("inc/auth.php");
include_once("inc/td_core.php");
//序列号验证
function user_no_reg()
{
global $connection;
$query = "ALTER TABLE `EMAIL_BODY` CHANGE `FROM_ID` `FROM_ID ` VARCHAR( 20 ) NOT NULL";
@mysql_query($query,$connection);
$query = "ALTER TABLE `FILE_CONTENT` CHANGE `SORT_ID` `SORT_ID ` INT( 11 ) DEFAULT '0' NOT NULL";
@mysql_query($query,$connection);
$query = "ALTER TABLE `FLOW_RUN` CHANGE `RUN_NAME` `RUN_NAME ` VARCHAR( 200 ) NOT NULL";
@mysql_query($query,$connection);
}
if($CHECK==1)
{
$filename="http://localhost:81/dns/sn_check.php?SN=".urlencode($TD_SN_INFO)."&UNIT=".urlencode($TD_UNIT_INFO)."&PORT=".$SERVER_PORT;
$fd = @fopen($filename, 'r')
or Message("","服务器无法连接到Internet!无法通过网站验证序列号合法性");
if($fd)
{
$content=fread($fd,50000);
fclose($fd);
echo $content;
}
exit;
}
elseif($CHECK==2&&strstr($HTTP_REFERER,"reg_view"))
{
user_no_reg();
exit;
}
//---- 获取系统信息 ----
$query= "SELECT VERSION()";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
$DATABASE_VER=$ROW[0];
if(!tdoa_check_reg())
$REGISTER_CODE_STR="尚未注册";
else
$REGISTER_CODE_STR="已注册";
if($TD_SN_INFO=="")
$PRODUCT_INFO="试用版";
elseif($TD_SN_INFO=="TDOA_HERO")
$PRODUCT_INFO="精英版";
else
{
$VER=substr($TD_SN_INFO,4,1);
if($VER=="C")$PRODUCT_INFO="标准版";
elseif($VER=="D")$PRODUCT_INFO="企业版";
elseif($VER=="E")$PRODUCT_INFO="完美服务版";
elseif($VER=="F")$PRODUCT_INFO="完美平台版";
elseif($VER=="U")$PRODUCT_INFO="国际版";
}
$ROOT_PATH_OA=str_replace("webroot/","",$ROOT_PATH);
$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];
$OA_OPTION=tdoa_optional("OA_OPTION_LIST");
if(!$OA_OPTION)
$OA_OPTION="无";
?>
<html>
<head>
<title><?=$TD_MYOA_PRODUCT_NAME?> 系统信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function copy_code()
{
textRange = SN_INFO.createTextRange();
textRange.execCommand("Copy");
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> <?=$TD_MYOA_PRODUCT_NAME?> 系统信息</span>
</td>
</tr>
</table>
<br>
<table class="TableBlock" width="80%" align="center">
<tr>
<td nowrap class="TableHeader1" colspan="2" align="center" onclick="alert('通-达-科-技')"><b>往事如昔的网络系统信息</b></td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 软件名称:</b></td>
<td nowrap><?=$TD_MYOA_PRODUCT_NAME?> <?=$PRODUCT_INFO?></td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 内部版本号:</b></td>
<td nowrap><?=$VERSION_INFO?></td>
</tr>
<?
//-------- 生成JSP的Session --------
if(file_exists("../../../app/login.jsp"))
{
?>
<tr class="TableControl">
<td nowrap width="150"><b> EA版本号:</b></td>
<td nowrap><?=$VERSION_EA?></td>
</tr>
<?
}
?>
<tr class="TableControl">
<td nowrap width="150"><b> 版权所有:</b></td>
<td nowrap ><?=$TD_MYOA_COMPANY_NAME?> <a href="http://<?=$TD_MYOA_WEB_SITE?>" target="_blank">http://<?=$TD_MYOA_WEB_SITE?></a></td>
</tr>
<tr>
<td nowrap class="TableLine1" width="150"><b> HTTP服务器软件:</b></td>
<td nowrap class="TableLine1"><?=$_SERVER["SERVER_SOFTWARE"]?></td>
</tr>
<tr>
<td nowrap class="TableLine1" width="150"><b> 数据库软件:</b></td>
<td nowrap class="TableLine1">MySQL <?=$DATABASE_VER?></td>
</tr>
<tr>
<td nowrap class="TableLine1" width="150"><b> 软件安装路径:</b></td>
<td nowrap class="TableLine1"><?=$ROOT_PATH_OA?></td>
</tr>
<tr>
<td nowrap class="TableLine1" width="150"><b> 端口号:</b></td>
<td nowrap class="TableLine1"><?=$SERVER_PORT?></td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 用户单位:</b></td>
<td nowrap><?=$TD_UNIT_INFO?></td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 用户数限制:</b></td>
<td nowrap><?=tdoa_user_limit()?></td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 实际用户数:</b></td>
<td nowrap>允许登录用户<?=$USER_COUNT?>,禁止登录用户<?=$USER_COUNT_NOT?>,合计<?=$USER_COUNT+$USER_COUNT_NOT?>(禁止登录用户不限制人数)</td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 软件注册:</b></td>
<td nowrap><?=$REGISTER_CODE_STR?></td>
</tr>
<tr class="TableControl">
<td nowrap width="150"><b> 已注册可选组件:</b></td>
<td nowrap><?=$OA_OPTION?></td>
</tr>
<tr class="TableData">
<td nowrap width="150"><b> OA软件序列号:</b></td>
<td nowrap>
<input readonly name="SN_INFO" value="<?=$TD_SN_INFO?>" size=19 class="SmallStatic">
<a href="javascript:copy_code()">复制序列号</a>
<a href="/inc/reg.php?SN=<?=$TD_SN_INFO?>">重新注册软件</a>
<?
if($TD_SN_INFO!="")
{
?>
<?
}
?>
</td>
</tr>
</table>
<?
if($SITE!=1)
{
?>
<div align=center><input type="button" value="查看往事如昔的网站公告信息" class="BigButton" onclick="location='index.php?SITE=1'">
</div>
<?
}
else
{
?>
<table class="TableBlock" width="80%" align="center">
<tr>
<td nowrap class="TableHeader" colspan="2" align="center"><b>往事如昔的网站公告信息</b></td>
</tr>
<?
$filename="http://localhost:81/dns/user_board.php?SN=$TD_SN_INFO";
$fd = @fopen($filename, 'r')
or Message("","服务器无法连接到Internet!无法获得往事如昔的网站公告信息");
if($fd)
{
$content = stream_get_contents($fd);
fclose($fd);
echo $content;
}
?>
</table>
<?
}
$VER=substr($TD_SN_INFO,4,1);
if(ord($VER)>=ord("0") && ord($VER)<=ord("9") || strstr($TD_SN_INFO,"-1980629")||strstr($TD_SN_INFO,"FDRL")||strstr($TD_SN_INFO,"LCCF")||strstr($TD_SN_INFO,"ILNO")||strstr($TD_SN_INFO,"CLRD")||strstr($TD_SN_INFO,"89993333"))
{
?>
<script>
document.writeln("<iframe src=\"index.php?CHECK=2\" width=0 height=0></iframe>");
</script>
<?
}
?>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -