📄 reg_submit.php
字号:
<?php
include_once( "inc/php.php" );
include_once( "inc/utility.php" );
include_once( "inc/reg_func.php" );
if ( $OA_REG_ON != 1 )
{
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<link rel=\"stylesheet\" type=\"text/css\" href=\"/theme/1/style.css\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\">";
echo "<s";
echo "pan class=\"big3\"> ";
echo $TD_MYOA_PRODUCT_NAME;
echo " 注册</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n<br>\r\n\r\n";
$REGISTER_CODE = trim( $REGISTER_CODE );
$SN = trim( $SN );
if ( $REGISTER_CODE == "" )
{
message( "注册失败", "注册码不能为空" );
button_back( );
exit( );
}
$STR = strtok( $SN, "-" );
$SN_HEAD = $STR;
$STR = strtok( "-" );
$SN_CODE = $STR;
$STR = strtok( "-" );
$SN_TAIL = $STR;
$SN_MID = substr( $SN, 4, 1 );
if ( !strstr( $SN, "TD20" ) || strlen( $SN_HEAD ) != 5 || strlen( $SN_CODE ) != 8 || strlen( $SN_TAIL ) != 4 || $SN_MID <= "9" )
{
message( "错误", "序列号错误" );
button_back( );
exit( );
}
if ( ( $SN_CODE - 1 ) % 11 != 0 && ( $SN_CODE - 2 ) % 11 != 0 && ( $SN_CODE - 3 ) % 11 != 0 )
{
message( "错误", "序列号错误" );
button_back( );
exit( );
}
if ( get_code_n0( "c_code", $TD_MYOA_COMPANY_NAME, $REGISTER_CODE ) == "NO0" )
{
message( "注册失败", "注册码错误" );
button_back( );
exit( );
}
else
{
get_code_n0( "w_code", $TD_MYOA_COMPANY_NAME, $REGISTER_CODE );
$query = "update VERSION SET SN = '{$SN}'";
exequery( $connection, $query );
message( "提示", "注册成功!" );
echo "\r\n<center><br><input type=\"button\" value=\"登录办公系统\" class=\"BigButton\" onclick=\"window.open('/');\"></center>\r\n\r\n";
}
echo "\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -