jianglong 4 years ago
parent
commit
9e90e40c94
  1. 22
      e/action/ShowInfo.php

22
e/action/ShowInfo.php

@ -78,6 +78,27 @@ if($ecms_tofunr['cacheopen']==1&&!($r['groupid']||$class_r[$classid]['cgtoinfo']
//副表
$finfor=$empire->fetch1("select ".ReturnSqlFtextF($mid)." from {$dbtbpre}ecms_".$tbname."_data_".$r['stb']." where id='$r[id]' limit 1");
$r=array_merge($r,$finfor);
$cr=$empire->fetch1("select classpagekey,intro,classimg,cgroupid,companygroupid from {$dbtbpre}enewsclass where classid='$classid'");
$isCompany = 0;
if($cr['companygroupid'])
{
$userId= (int)$_COOKIE['lsfmomluserid'];
$usergroupid = 0;
if($userId){
$ccompany=$empire->fetch1("SELECT id FROM www_moban5_cn_ecms_companys WHERE title IN (SELECT company FROM www_moban5_cn_enewsmemberadd WHERE userid='{$userId}')");
if($ccompany){
$usergroupid = $ccompany['id'];
}
}
if(!in_array($usergroupid,explode(",",$cr[companygroupid])))
{
printerror('NotLevelToClass2','history.go(-1)',1);
}
}
//权限
if($r['groupid']||$class_r[$classid]['cgtoinfo'])
{
@ -90,6 +111,7 @@ if($r['groupid']||$class_r[$classid]['cgtoinfo'])
$checkinfor=$r;
@include("../class/CheckLevel.php");
}
//缓存
if($ecms_tofunr['cacheopen']==1&&!$ecms_tofunr['cachehavedo'])
{

Loading…
Cancel
Save