reg_check.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 42 行

PHP
42
字号
<?php
 
include_once( "inc/php.php" );
include_once( "inc/utility.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/reg_func.php" );
++$OA_REG_ON;
$TD_MYOA_CODE_NO = get_code_n0( "is_code", $TD_MYOA_COMPANY_NAME, "" );
if ( $TD_MYOA_CODE_NO == "NO0" )
{
	$PATH = $ROOT_PATH."inc/reg_func.php";
	$SETUP_TIME = filectime( $PATH );
	if ( 86400 * $OA30_TIME_LIMIT < time( ) - $SETUP_TIME || time( ) <= $SETUP_TIME )
	{
		header( "location: /inc/expired.php" );
	}
	$query = "SELECT count(*) from USER";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$USER_COUNT = $ROW[0];
		if ( $OA30_USER_LIMIT < $USER_COUNT )
		{
			header( "location: /inc/expired.php" );
		}
	}
}
else if ( $TD_MYOA_CODE_NO == "NO2" )
{
	$query = "SELECT count(*) from USER where NOT_LOGIN!='1'";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$USER_COUNT = $ROW[0];
		if ( $OA30_USER_SETLINE < $USER_COUNT )
		{
			header( "location: /inc/expired.php" );
		}
	}
}
?>

⌨️ 快捷键说明

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