📄 index0.php
字号:
<?
include_once 'inc/php.php';
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 = '尚未注册';
}
$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];
}
if ($CHECK == 1)
{
$filename = 'http://www.tongda2000.com/dns/sn_check.php?SN=' . urlencode ($SN_INFO) . '&UNIT=' . urlencode ($UNIT_NAME) . '&PORT=' . $SERVER_PORT;
($fd = @fopen ($filename, 'r') OR message ('', '服务器无法连接到Internet!无法通过网站验证序列号合法性'));
if ($fd)
{
$content = fread ($fd, 50000);
fclose ($fd);
echo $content;
}
exit ();
}
echo '
<html>
<head>
<title>';
echo $TD_MYOA_PRODUCT_NAME;
echo ' 系统信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</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">';
echo '<s';
echo 'pan class="big3"> ';
echo $TD_MYOA_PRODUCT_NAME;
echo ' 系统信息</span>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" width="80%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr>
<td nowrap class="TableHeader" colspan="2" align="center"><b>系统信息</b></td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 版本号:</b></td>
<td nowrap class="TableData">';
echo $VERSION_INFO;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 版权所有:</b></td>
<td nowrap class="TableData">';
echo '往事如昔的网络系统专用版';
echo ' <a href="http://';
echo 'jnliu.vicp.net:81';
echo '" target="_blank">http://';
echo 'jnliu.vicp.net:81';
echo '</a></td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> HTTP服务器软件:</b></td>
<td nowrap class="TableData">';
echo $_SERVER['SERVER_SOFTWARE'];
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 数据库软件:</b></td>
<td nowrap class="TableData">MySQL ';
echo $DATABASE_VER;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 软件安装路径:</b></td>
<td nowrap class="TableData">';
echo $ROOT_PATH_OA;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 端口号:</b></td>
<td nowrap class="TableData">';
echo $SERVER_PORT;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 用户单位:</b></td>
<td nowrap class="TableData">';
echo $UNIT_NAME;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 用户数:</b></td>
<td nowrap class="TableData">';
echo $USER_COUNT;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 软件注册码:</b></td>
<td nowrap class="TableData">';
echo $REGISTER_CODE_STR;
echo '</td>
</tr>
<tr>
<td nowrap class="TableData" width="150"><b> 软件序列号:</b></td>
<td nowrap class="TableData">';
echo $SN_INFO;
# if ($SN_INFO != '')
# {
# echo ' <a href="index.php?CHECK=1">通过网站验证序列号合法性</a></td>
#';
# }
#echo ' </tr>
#</table>
#<br>
#<br>
#';
# if ($SITE != 1)
# {
# echo '<div align=center><input type="button" value="查看通达科技网站公告信息" class="BigButton" onclick="location=\'index.php?SITE=1\'">
#</div>
#';
# }
# else
# {
# echo '<table border="0" cellspacing="1" width="80%" class="small" bgcolor="000000" cellpadding="3" align="center">
# <tr>
# <td nowrap class="TableHeader" colspan="2" align="center"><b>通达科技网站公告信息</b></td>
# </tr>
#';
# $filename = 'http://www.tongda2000.com/dns/user_board.asp';
# ($fd = @fopen ($filename, 'r') OR message ('', '服务器无法连接到Internet!无法获得通达科技网站公告信息'));
# if ($fd)
# {
# $content = fread ($fd, 50000);
# fclose ($fd);
# echo $content;
# }
#
# echo '
#</table>
#';
# }
#
echo '
<br>
<br>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -