* Hide logout and user-deny page's footer in xuanxuan client mode.
This commit is contained in:
@@ -22,6 +22,10 @@ body {scrollbar-gutter: stable both-edges;}
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
const logoutElement = $('#userNav .has-avatar .pull-right li > a[href*="logout"]');
|
||||
logoutElement.parent().addClass('hide');
|
||||
if(logoutElement.parent().prev().hasClass('divider')) logoutElement.parent().prev().addClass('hide');
|
||||
|
||||
if(window.parent === window || window.parent.appHeaderStyleUpdated) return;
|
||||
const mainHeader = document.getElementById('mainHeader');
|
||||
if(!mainHeader) return;
|
||||
@@ -32,4 +36,12 @@ $(function()
|
||||
window.open('xxc://setAppHeaderStyle/zentao-integrated/' + encodeURIComponent(JSON.stringify(clientHeaderStyle)), '_blank');
|
||||
});
|
||||
</script>
|
||||
<?php if($this->app->moduleName =='user' && $this->app->methodName == 'deny'): ?>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('.m-user-deny .modal-footer').addClass('hide');
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
<?php
|
||||
$lang->user->tokenInvalid = "Token denied, please login with password.";
|
||||
|
||||
if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') != false)
|
||||
{
|
||||
$lang->user->errorDeny = "Sorry, your access to <b>%2\$s</b> of <b>%1\$s</b> is denied. Please contact your Admin to get privileges.";
|
||||
}
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
<?php
|
||||
$lang->user->tokenInvalid = "Token denied, please login with password.";
|
||||
|
||||
if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') != false)
|
||||
{
|
||||
$lang->user->errorDeny = "Sorry, your access to <b>%2\$s</b> of <b>%1\$s</b> is denied. Please contact your Admin to get privileges.";
|
||||
}
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
<?php
|
||||
$lang->user->tokenInvalid = "Token denied, please login with password.";
|
||||
|
||||
if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') != false)
|
||||
{
|
||||
$lang->user->errorDeny = "Sorry, your access to <b>%2\$s</b> of <b>%1\$s</b> is denied. Please contact your Admin to get privileges.";
|
||||
}
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
<?php
|
||||
$lang->user->tokenInvalid = "Token 认证失败,请尝试使用密码登录。";
|
||||
|
||||
if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') != false)
|
||||
{
|
||||
$lang->user->errorDeny = "抱歉,您无权访问『<b>%s</b>』模块的『<b>%s</b>』功能。请联系管理员获取权限。";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user