| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -25,7 +25,7 @@ $needRank = $arc->Fields['arcrank']; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			require_once(DEDEINC.'/memberlogin.class.php');
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			$cfg_ml = new MemberLogin();
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			if ($needRank < 0 && $arc->Fields['mid'] != $cfg_ml->M_ID) {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    ShowMsg('文档尚未审核,非作者本人无权查看', 'javascript:;');
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    ShowMsg('文档未审核,暂时无法浏览', 'javascript:;');
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    exit();
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			}
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			//设置了权限限制的文档
 | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -44,7 +44,7 @@ if ($needMoney > 0 || $needRank > 1) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        }
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        $memberTypes[0] = "游客或没权限会员";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        $msgtitle = "您没有权限浏览文档:{$arctitle} ";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        $moremsg = "文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        $moremsg = "该文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        include_once(DEDETEMPLATE.'/plus/view_msg.htm');
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        exit();
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    }
 | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -56,7 +56,7 @@ if ($needMoney > 0 || $needRank > 1) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        if (!is_array($row)) {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) {
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $msgtitle = "您没有权限浏览文档:{$arctitle} ";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $moremsg = "文档需要<span class='text-primary'>".$needMoney."金币</span>才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."个</span>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $moremsg = "该文档需要<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                include_once(DEDETEMPLATE.'/plus/view_msg.htm');
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $arc->Close();
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                exit();
 | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -77,7 +77,7 @@ if ($needMoney > 0 || $needRank > 1) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                    }
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                }
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $msgtitle = "扣金币购买阅读";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $moremsg = "浏览该文档需要付费<br>文档需要<span class='text-primary'>".$needMoney."金币</span>才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>个<br><a href='{$GLOBALS['cfg_cmsurl']}/apps/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $moremsg = "该文档需要付费<span class='text-primary'>".$needMoney."</span>金币,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span><br><a href='{$GLOBALS['cfg_cmsurl']}/apps/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>";
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                include_once($cfg_basedir.$cfg_templets_dir."/plus/view_msg.htm");
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $arc->Close();
 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                exit();
 | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |