mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-04-10 02:35:14 +08:00
系统设置新增功能 1. 是否启用登录密码加密: 在许多现代系统中,登录密码加密是默认启用的,以确保用户密码的安全性。所以新增了一个系统配置项,允许管理员决定是否启用登录密码的加密传输。这一功能增强了用户密码的安全性,防止密码泄露风险。 2. UID登录(允许通过UID的方式登录验证): 引入UID(用户唯一标识符)登录方式,除了传统的用户名/邮箱/手机号登录外,用户还可以通过其UID进行登录验证,为系统访问提供另一种灵活的身份验证方式。 3. 用户在线时间更新时长: 管理员可以自定义更新用户在线时间的时间频率,这有助于更准确地反映用户的活跃状态,并对系统资源的使用进行优化。 4. 图片处理库类型: 系统新增了图片处理库类型的选择功能,允许管理员根据实际需求选择合适的图像处理库来处理缩略图和水印,以满足不同的性能和效果需求。 新增性能优化栏 1. 禁止浏览器缓冲: 通过此设置,管理员可以控制是否禁止浏览器对页面内容进行缓存。在某些场景下,禁用缓存可以提高页面的实时性和准确性。 2. 在线保持时间: 设置用户会话(session)的在线保持时间,即用户在不进行任何操作后,多久后会被视为离线。这有助于管理系统的会话资源,避免资源浪费。 3. 关闭session机制: 提供选项关闭系统的session管理机制。在某些特殊应用场景下,可能不需要使用session来跟踪用户状态,关闭session可以减少服务器负担,提高性能。 系统工具新增文件权限检查栏: 系统工具中新增了文件权限检查功能,帮助管理员快速识别和修复文件权限问题,确保系统的正常运行和数据安全。 优化提示消息框UI: 对系统的提示消息框进行了UI优化,使其更加美观、易用,提升了用户的使用体验。 压缩css、js代码优化前端性能 对前端的CSS和JS代码进行了压缩处理,减少了文件体积,加快了加载速度,从而提升了前端性能。
74 lines
2.0 KiB
JavaScript
74 lines
2.0 KiB
JavaScript
|
|
function loginsub(formid,rspaceid){
|
|
|
|
var url = jQuery('#'+formid).attr('action');
|
|
|
|
url = (url)? url:'user.php?mod=login&op=logging&action=login&loginsubmit=yes';
|
|
|
|
|
|
var formData = jQuery('#'+formid).serialize();
|
|
|
|
var type = 'json';
|
|
|
|
jQuery.post(url+'&returnType='+type,formData,function(json){
|
|
|
|
if(json['success']){
|
|
showmessage(json['success']['message'], 'success', '', 1,'right-top');
|
|
location.href=json['success']['url_forward'];
|
|
}else if(json['error']){
|
|
clearpwd();
|
|
showmessage(json['error'], 'danger', '', 1,'right-top');
|
|
jQuery('#'+rspaceid).html(json['error']);
|
|
|
|
}else{
|
|
clearpwd();
|
|
showmessage(__lang.system_busy, 'danger', '', 1,'right-top');
|
|
jQuery('#'+rspaceid).html(__lang.system_busy);
|
|
}
|
|
},'json');
|
|
}
|
|
function lostpass(contid,formid,rspaceid){
|
|
var url = jQuery('#'+formid).attr('action');
|
|
|
|
url = (url)? url:'user.php?mod=login&op=logging&action=lostpasswd&lostpwsubmit=yes';
|
|
|
|
|
|
var formData = jQuery('#'+formid).serialize();
|
|
|
|
var type = 'json';
|
|
|
|
jQuery.post(url+'&returnType='+type,formData,function(json){
|
|
|
|
if(json['success']){
|
|
var el=jQuery('#'+contid);
|
|
console.log(el);
|
|
var mail='http://mail.'+json['success'].email.split('@')[1];
|
|
el.find('.Mtitle').html(__lang.password_back_email_sent_successfully);
|
|
el.find('.Mbody').html(json['success'].msg);
|
|
el.find('.modal-footer .toMail').on('click',function(){
|
|
window.location.href=mail;
|
|
})
|
|
el.find('.modal-footer').show();
|
|
}else if(json['error']){
|
|
|
|
jQuery('#'+rspaceid).html(json['error']);
|
|
|
|
}else{
|
|
jQuery('#'+rspaceid).html(__lang.system_busy);
|
|
}
|
|
},'json');
|
|
}
|
|
function setImage(width,height){
|
|
var clientWidth=document.documentElement.clientWidth;
|
|
var clientHeight=document.documentElement.clientHeight;
|
|
var r0=clientWidth/clientHeight;
|
|
var r1=width/height;
|
|
if(r0>r1){//width充满
|
|
w=clientWidth;
|
|
h=w*(height/width);
|
|
}else{
|
|
h=clientHeight;
|
|
w=h*(width/height);
|
|
}
|
|
}
|