包含:登录失败锁定、90天密码有效期、30分钟会话超时、 强制改密、登录审计日志、屏幕水印、企业背景图、 备案信息固定底部、favicon、JS空集合保护、 会话过期体验优化(403 JSON)、display_errors 关闭、 固定 key 根治 Integrity check failed 等全部改动 注意:config.inc.php/.htaccess/.user.ini 含敏感信息, 通过 .gitignore 排除,勿推送到公开仓库。
170 lines
2.8 KiB
PHP
170 lines
2.8 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace MRBS;
|
|
|
|
// Modifications to the standard CSS when using RTL languages (eg Hebrew)
|
|
|
|
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
|
|
?>
|
|
|
|
|
|
/* ------------ GENERAL -----------------------------*/
|
|
|
|
h1, h2, td, th {
|
|
direction: rtl;
|
|
}
|
|
|
|
legend {
|
|
float: right;
|
|
}
|
|
|
|
/* ------------ ADMIN.PHP ---------------------------*/
|
|
|
|
form.form_admin, .form_admin div, div#div_custom_html,
|
|
#area_form form, #area_form label[for="area_select"],
|
|
.areaChangeForm select, .areaChangeForm input, .areaChangeForm input.button {
|
|
float: right;
|
|
}
|
|
|
|
.form_admin label, .form_admin fieldset, .form_admin input,
|
|
div#area_form, div#room_form {
|
|
float: inherit;
|
|
}
|
|
|
|
.form_admin label {
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.form_admin fieldset {
|
|
width: 700px;
|
|
}
|
|
|
|
.form_admin legend {
|
|
padding-left: 36px;
|
|
}
|
|
|
|
.admin h2 {
|
|
clear: right;
|
|
}
|
|
|
|
div#area_form, div.header_columns, div.body_columns {
|
|
direction: rtl;
|
|
}
|
|
|
|
/* ------------ INDEX.PHP ------------------*/
|
|
|
|
div#dwm_header, div.cell_container {
|
|
float: right;
|
|
}
|
|
|
|
.date_before {
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
|
|
.date_now {
|
|
float: right;
|
|
}
|
|
|
|
.date_after {
|
|
float: left;
|
|
text-align: left;
|
|
}
|
|
|
|
.date_before, .date_after, table.dwm_main {
|
|
direction: rtl;
|
|
}
|
|
|
|
#dwm_header ul {
|
|
margin-left: 30px;
|
|
}
|
|
|
|
<?php
|
|
foreach ($color_types as $type => $col)
|
|
{
|
|
echo ".month div.$type {float: right}\n"; // used in the month view
|
|
}
|
|
?>
|
|
|
|
/* ------------ EDIT_AREA.PHP ------------------*/
|
|
|
|
#book_ahead_periods_note span {
|
|
float: right;
|
|
}
|
|
|
|
/* ------------ FUNCTIONS.INC -------------------*/
|
|
|
|
.banner {
|
|
direction: rtl;
|
|
}
|
|
|
|
.banner li {
|
|
border-width: 0 <?php echo $banner_border_cell_width ?>px 0 0;
|
|
}
|
|
|
|
/* ------------ MINCALS.PHP ---------------------*/
|
|
|
|
div#cal_last, div#cal_this, div#cal_next {
|
|
float: right;
|
|
}
|
|
|
|
div#cal_last {
|
|
margin-left: 1.0em;
|
|
}
|
|
|
|
table.calendar {
|
|
margin-right: 30px
|
|
}
|
|
|
|
.calendar th {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* ------------ PENDING.PHP ------------------*/
|
|
|
|
table#pending_list {
|
|
direction: rtl;
|
|
}
|
|
|
|
#pending_list form {
|
|
float: right;
|
|
}
|
|
|
|
#pending_list td, #pending_list td.control + td,
|
|
#pending_list th.header_name, #pending_list th.header_create, #pending_list th.header_area,
|
|
#pending_list th.header_room, #pending_list th.header_action {
|
|
text-align: right;
|
|
}
|
|
|
|
#pending_list th.control + th, #pending_list td.control + td {
|
|
border-left-width: 1px;
|
|
}
|
|
|
|
/* ------------ REPORT.PHP ----------------------*/
|
|
|
|
.div_report h3, .div_report table,
|
|
div.report_entry_name {
|
|
direction: rtl;
|
|
}
|
|
|
|
div.report_entry_title, div.report_entry_name, p.report_entries {
|
|
float: right;
|
|
}
|
|
|
|
|
|
/* ------------ VIEW_ENTRY.PHP ------------------*/
|
|
|
|
.view_entry div#view_entry_nav {
|
|
direction: rtl;
|
|
}
|
|
|
|
.view_entry #approve_buttons form {
|
|
float: right;
|
|
}
|