⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 submit.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php
 

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>系统安全设置</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<div align=\"center\">\r\n<br>\r\n";
$query = "update SYS_PARA set PARA_VALUE='".$SEC_PASS_FLAG."' where PARA_NAME='SEC_PASS_FLAG'";
exequery( $connection, $query );
if ( $SEC_PASS_FLAG == "1" )
{
	$SEC_PASS_TIME = intval( $SEC_PASS_TIME );
	if ( !is_int( $SEC_PASS_TIME ) && $SEC_PASS_TIME <= 0 )
	{
		message( "错误", "有效期应为整数!" );
		button_back( );
		exit( );
	}
	$query = "update SYS_PARA set PARA_VALUE='".$SEC_PASS_TIME."' where PARA_NAME='SEC_PASS_TIME'";
	exequery( $connection, $query );
}
if ( $SEC_PASS_MIN < 0 || $SEC_PASS_MAX < 0 || !is_numeric( $SEC_PASS_MIN ) && !is_numeric( $SEC_PASS_MAX ) )
{
	message( "错误", "密码长度应为整数!" );
	button_back( );
	exit( );
}
if ( $SEC_PASS_MAX <= $SEC_PASS_MIN )
{
	message( "错误", "密码最大长度不能小于最小长度!" );
	button_back( );
	exit( );
}
if ( $SEC_PASS_SAFE == "on" )
{
	$SEC_PASS_SAFE = 1;
}
else
{
	$SEC_PASS_SAFE = 0;
}
$SEC_PASS_MIN = intval( $SEC_PASS_MIN );
$SEC_PASS_MAX = intval( $SEC_PASS_MAX );
$query = "update SYS_PARA set PARA_VALUE='".$SEC_PASS_MIN."' where PARA_NAME='SEC_PASS_MIN'";
exequery( $connection, $query );
$query = "update SYS_PARA set PARA_VALUE='".$SEC_PASS_MAX."' where PARA_NAME='SEC_PASS_MAX'";
exequery( $connection, $query );
$query = "update SYS_PARA set PARA_VALUE='".$SEC_PASS_SAFE."' where PARA_NAME='SEC_PASS_SAFE'";
exequery( $connection, $query );
$query = "update SYS_PARA set PARA_VALUE='".$SEC_RETRY_BAN."' where PARA_NAME='SEC_RETRY_BAN'";
exequery( $connection, $query );
if ( $SEC_RETRY_BAN == "1" )
{
	$SEC_RETRY_TIMES = intval( $SEC_RETRY_TIMES );
	$SEC_BAN_TIME = intval( $SEC_BAN_TIME );
	if ( $SEC_RETRY_TIMES <= 0 || $SEC_BAN_TIME <= 0 )
	{
		message( "错误", "重试次数和分钟数应为整数!" );
		button_back( );
		exit( );
	}
	$query = "update SYS_PARA set PARA_VALUE='".$SEC_RETRY_TIMES."' where PARA_NAME='SEC_RETRY_TIMES'";
	exequery( $connection, $query );
	$query = "update SYS_PARA set PARA_VALUE='".$SEC_BAN_TIME."' where PARA_NAME='SEC_BAN_TIME'";
	exequery( $connection, $query );
}
$query = "update SYS_PARA set PARA_VALUE='".$SEC_USER_MEM."' where PARA_NAME='SEC_USER_MEM'";
exequery( $connection, $query );
if ( $SEC_LOGIN_NULL != "" )
{
	$SEC_LOGIN_NULL = intval( $SEC_LOGIN_NULL );
	if ( !is_int( $SEC_LOGIN_NULL ) && $SEC_LOGIN_NULL < 0 )
	{
		message( "错误", "闲置时长应为整数!" );
		button_back( );
		exit( );
	}
	$query = "update SYS_PARA set PARA_VALUE='".$SEC_LOGIN_NULL."' where PARA_NAME='SEC_LOGIN_NULL'";
	exequery( $connection, $query );
}
$query = "update SYS_PARA set PARA_VALUE='".$ATTACHMENT_TYPE."' where PARA_NAME='ATTACHMENT_TYPE'";
exequery( $connection, $query );
if ( $ONLINE_USER_MAX < 0 || $ONLINE_USER_MAX < 0 || !is_numeric( $ONLINE_USER_MAX ) && !is_numeric( $ONLINE_USER_MAX ) )
{
	message( "错误", "最大在线人数应为整数!" );
	button_back( );
	exit( );
}
$query = "update SYS_PARA set PARA_VALUE='".$ONLINE_USER_MAX."' where PARA_NAME='ONLINE_USER_MAX'";
exequery( $connection, $query );
message( "", "设置完成!" );
echo "<Input type=\"button\" name=\"button\" class=\"BigButton\" value=\"返回\" onclick=\"location='index.php'\">\r\n</div>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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