mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-04-10 16:05:12 +08:00
更新至V1.73,更新内容在笔记中查看
This commit is contained in:
@@ -572,14 +572,15 @@ class dzz_app extends dzz_base{
|
||||
|
||||
}
|
||||
}
|
||||
if ($this->var['member']['adminid']==1){
|
||||
if ($this->var['member']['adminid']){
|
||||
}elseif(in_array(CURSCRIPT, array('admin', 'user', 'api')) || defined('ALLOWGUEST') && ALLOWGUEST) {
|
||||
}else{
|
||||
}elseif($_GET['mod']=='system') {
|
||||
}else{
|
||||
if ($this->var['member']['uid']){
|
||||
foreach($this->var['setting']['verify'] as $key=>$value){
|
||||
$verify = C::t('user_verify')->fetch($this->var['member']['uid']);
|
||||
if($value['available'] && $key==1){
|
||||
if($verify['verify1']){
|
||||
if($verify['verify1']==1){
|
||||
}else {
|
||||
dheader("Location: user.php?mod=profile&vid=1");
|
||||
}
|
||||
@@ -596,14 +597,16 @@ class dzz_app extends dzz_base{
|
||||
if ($this->var['member']['uid']){
|
||||
showmessage(lang('您无权使用该应用,请联系管理员。'));
|
||||
}
|
||||
}else{
|
||||
}elseif ($this->var['member']['uid']){
|
||||
$appuid= C::t('user_field')->fetch($this->var['member']['uid']);
|
||||
$appuidz=explode(',',$appuid['applist']);
|
||||
if (in_array($appidxu['appid'],$appuidz)){
|
||||
}else{
|
||||
showmessage(lang('您无权使用该应用,请联系管理员。'));
|
||||
}
|
||||
}
|
||||
}else{
|
||||
Hook::listen('check_login');
|
||||
}
|
||||
}
|
||||
if(isset($this->var['setting']['nocacheheaders']) && $this->var['setting']['nocacheheaders']) {
|
||||
@header("Expires: -1");
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
<ul class="nav navbar-nav">
|
||||
<!--{if $_G['uid']}-->
|
||||
<!--{if !$_G['setting']['bbclosed'] || !$_G['adminid'] ==0}-->
|
||||
{eval $verify = C::t('user_verify')->fetch($_G['uid']);}
|
||||
<!--{if $verify[verify1]==1 || !$_G['adminid'] ==0}-->
|
||||
{eval}
|
||||
foreach($_G['setting']['verify'] as $key=>$value){
|
||||
$verify = C::t('user_verify')->fetch($_G['uid']);
|
||||
if($value['available'] && $key==1){
|
||||
if($verify['verify1']==1){
|
||||
}else {
|
||||
$kai=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
{/eval}
|
||||
<!--{if $kai && $verify[verify1]==1 || $_G['adminid'] || $kai==0}-->
|
||||
<li class="app_popup-parent">
|
||||
<a href="javascript:;" id="desktop_app" data-href="index.php?mod=system&op=app_ajax&operation=app" class="app_popup_icon js-popbox" data-placement="bottom" data-trigger="focus" data-auto-adapt="true" data-toggle="popover"><span class="dzz dzz-apps basil"></span></a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user