update.php

来自「极限网络智能办公系统 - Office Automation 2008 官方10」· PHP 代码 · 共 27 行

PHP
27
字号
<?php
 

include_once( "inc/auth.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<br>\r\n";
$CAPACITY = intval( $CAPACITY );
if ( $CAPACITY != "" && ( !is_int( $CAPACITY ) && $CAPACITY < 0 ) )
{
	message( "错误", "容量大小应为整数!" );
	button_back( );
	exit( );
}
$query = "update USER set ".$MODULE."={$CAPACITY} where 1=1 ";
if ( $USER_PRIV != "" )
{
	$query .= " and USER_PRIV='".$USER_PRIV."'";
}
if ( $DEPT_ID != "" )
{
	$query .= " and DEPT_ID='".$DEPT_ID."'";
}
exequery( $connection, $query );
message( "提示", "设置已保存" );
button_back( );
echo "</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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