📄 index.php
字号:
<?php
/**************************/
/* Decode Of TD_OA2008adv */
/* by FYCDC-Germ */
/* http://fy.fycdc.com */
/**************************/
include_once("inc/auth.php");
include_once("inc/td_core.php");
//---- 获取系统信息 ----
$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('FYCDC-Germ')"><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>
<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>
</td>
</tr>
</table>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -