MRBS 1.12.2 等保2.0二级整改完整提交
Docker image / push (push) Canceled after 0s

包含:登录失败锁定、90天密码有效期、30分钟会话超时、
强制改密、登录审计日志、屏幕水印、企业背景图、
备案信息固定底部、favicon、登录页JS修复等全部改动
This commit is contained in:
人事系统开发
2026-09-08 21:19:47 +08:00
commit 48092cab42
2221 changed files with 659586 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
<?php
declare(strict_types=1);
namespace MRBS;
function test_constants($class)
{
echo "<h1>Testing constants</h1>\n";
$passed = true;
$php_constants = (new \ReflectionClass($class))->getConstants();
$emulation_constants = (new \ReflectionClass("MRBS\Intl\\$class"))->getConstants();
foreach ($php_constants as $name => $value)
{
// We are only interested in public constants
if (!(new \ReflectionClassConstant($class, $name))->isPublic())
{
continue;
}
if (!isset($emulation_constants[$name]))
{
$passed = false;
echo "Failed to find constant $name ($value)<br>\n";
}
else if ($value != $emulation_constants[$name])
{
$passed = false;
echo "Constant $name has different value in PHP ($value) and MRBS ($emulation_constants[$name])<br>\n";
}
}
if ($passed)
{
echo "Passed<br>\n";
}
}
function thead_html(array $arg_names) : string
{
$html = "<thead>\n";
$html .= '<tr>';
$html .= '<th>function</th>';
foreach ($arg_names as $arg_name)
{
$html .= '<th>$' . escape_html($arg_name) . '</th>';
}
$html .= '<th>Result - PHP</th><th>Result - MRBS</th><th>Summary</th>';
$html .= "<tr>\n";
$html .= "</thead>\n";
return $html;
}