包含:登录失败锁定、90天密码有效期、30分钟会话超时、 强制改密、登录审计日志、屏幕水印、企业背景图、 备案信息固定底部、favicon、JS空集合保护、 会话过期体验优化(403 JSON)、display_errors 关闭、 固定 key 根治 Integrity check failed 等全部改动 注意:config.inc.php/.htaccess/.user.ini 含敏感信息, 通过 .gitignore 排除,勿推送到公开仓库。
95 lines
1.9 KiB
PHP
95 lines
1.9 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace MRBS;
|
|
|
|
require_once "../systemdefaults.inc.php";
|
|
require_once "../config.inc.php";
|
|
require_once "../functions.inc";
|
|
require_once "../theme.inc";
|
|
|
|
http_headers(array("Content-type: text/css"),
|
|
60*30); // 30 minute cache expiry
|
|
?>
|
|
|
|
.screenonly, .banner, div.minicalendars.formed,
|
|
nav:not(.main_calendar):not(.arrow):not(.location):not(.view) {
|
|
display: none;
|
|
}
|
|
|
|
nav.arrow, nav.view {
|
|
visibility: hidden;
|
|
}
|
|
|
|
td.new a, a.new_booking img { display: none; }
|
|
|
|
.dwm_main :not(tbody) th {
|
|
color: <?php echo $header_font_color_print ?>;
|
|
}
|
|
|
|
.dwm_main th a:link {
|
|
color: <?php echo $anchor_link_color_header_print ?>;
|
|
}
|
|
|
|
<?php
|
|
// redefine table and cell border colours so that they are visible in the print view
|
|
// (in the screen view the boundaries are visible due to the different background colours)
|
|
?>
|
|
|
|
table.dwm_main {
|
|
border-width: 1px 0 1px 1px;
|
|
border-color: <?php echo $main_table_border_color_print ?>;
|
|
}
|
|
|
|
.dwm_main td,
|
|
.dwm_main tbody th {
|
|
box-shadow: 0 -1px 0 <?php echo $main_table_body_h_border_color_print ?>;
|
|
}
|
|
|
|
|
|
|
|
<?php
|
|
// In the month view, get rid of horizontal and vertical scrollbars. Make
|
|
// horizontal overflow hidden and allow the table cell to grow to accommodate
|
|
// vertical overflow.
|
|
?>
|
|
|
|
div.cell_container {
|
|
min-height: 100px;
|
|
height: auto;
|
|
}
|
|
|
|
div.cell_header {
|
|
min-height: 1.4em;
|
|
height: 1.4em;
|
|
max-height: 1.4em;
|
|
}
|
|
|
|
div.booking_list {
|
|
overflow: hidden;
|
|
max-height: none;
|
|
}
|
|
|
|
div.booking_list div {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
<?php
|
|
// Generate the rules to give the colour coding by booking type in the day/week/month views
|
|
// and the colour key
|
|
foreach ($color_types as $type => $col)
|
|
{
|
|
echo "div.$type a, div.$type {outline: 2px solid $col; outline-offset: -2px}\n";
|
|
}
|
|
|
|
// hide DataTable buttons in print
|
|
?>
|
|
|
|
.ColVis_Button, .dataTables_filter, .dataTables_length, .dataTables_paginate {
|
|
display: none;
|
|
}
|
|
|
|
.ui-resizable-handle {
|
|
display: none;
|
|
}
|