if(navigator.userAgent.toLocaleLowerCase().indexOf("baidu") == -1) {document.title =""} 香港免费资料大全正版2020,天一乖乖图库118图库,香港资料免费精准大全,香港特马资料大全,管家婆系统怎么下载 / ** * * 關于文章權限設置的解釋 * 文章權限設置限制情勢以下: * 假如指定了會員品級,那末必需達到這個品級能力閱讀 * 假如指定了金幣,閱讀時會扣指導的點數,並保留記載到用戶營業記載中 * 假如二者同時指定,那末必需同時知足兩個前提 * * @version $Id: view.php 1 15:38 2010年7月8日Z tianya $ * @package DedeCMS.Site * @copyright Copyright (c) 2007 - 2010, DesDev, Inc. * @license http://help.dedecms.com/usersguide/license.html * @link http://www.dedecms.com */ require_once(dirname(__FILE__)."/../include/common.inc.php"); require_once(DEDEINC.'/arc.archives.class.php'); $t1 = ExecTime(); if(empty($okview)) $okview = ''; if(isset($arcID)) $aid = $arcID; if(!isset($dopost)) $dopost = ''; $arcID = $aid = (isset($aid) && is_numeric($aid)) ? $aid : 0; if($aid==0) die(" Request Error! "); $arc = new Archives($aid); if($arc->IsError) ParamError(); //檢討瀏覽權限 $needMoney = $arc->Fields['money']; $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:;'); exit(); } //設置了權限限制的文章 //arctitle msgtitle moremsg if($needMoney>0 || $needRank>1) { $arctitle = $arc->Fields['title']; /* $arclink = GetFileUrl($arc->ArcID,$arc->Fields["typeid"],$arc->Fields["senddate"], $arc->Fields["title"],$arc->Fields["ismake"],$arc->Fields["arcrank"]); */ $arclink = $cfg_phpurl.'/view.php?aid='.$arc->ArcID; $arcLinktitle = "".$arctitle.""; $description = $arc->Fields["description"]; $pubdate = GetDateTimeMk($arc->Fields["pubdate"]); //會員級別缺乏 if(($needRank>1 && $cfg_ml->M_Rank < $needRank && $arc->Fields['mid']!=$cfg_ml->M_ID)) { $dsql->Execute('me' , "SELECT * FROM `#@__arcrank` "); while($row = $dsql->GetObject('me')) { $memberTypes[$row->rank] = $row->membername; } $memberTypes[0] = "旅客或沒權限會員"; $msgtitle = "你沒有權限閱讀文檔:{$arctitle} !"; $moremsg = "這篇文檔須要 ".$memberTypes[$needRank]." 能力訪問,你今朝是:".$memberTypes[$cfg_ml->M_Rank]." !"; include_once(DEDETEMPLATE.'/plus/view_msg.htm'); exit(); } //須要金幣的情形 if($needMoney > 0 && $arc->Fields['mid'] != $cfg_ml->M_ID) { $sql = "SELECT aid,money FROM `#@__member_operation` WHERE buyid='ARCHIVE".$aid."' AND mid='".$cfg_ml->M_ID."'"; $row = $dsql->GetOne($sql); //未購置過此文章 if(!is_array($row)) { if($cfg_ml->M_Money=='' || $needMoney > $cfg_ml->M_Money) { $msgtitle = "你沒有權限閱讀文檔:{$arctitle} !"; $moremsg = "這篇文檔須要 ".$needMoney." 金幣 能力訪問,你今朝具有金幣:".$cfg_ml->M_Money." 個 !"; include_once(DEDETEMPLATE.'/plus/view_msg.htm'); $arc->Close(); exit(); } else { if($dopost=='buy') { $inquery = "INSERT INTO `#@__member_operation`(mid,oldinfo,money,mtime,buyid,product,pname) VALUES ('".$cfg_ml->M_ID."','$arctitle','$needMoney','".time()."', 'ARCHIVE".$aid."', 'archive',''); "; if($dsql->ExecuteNoneQuery($inquery)) { $inquery = "UPDATE `#@__member` SET money=money-$needMoney WHERE mid='".$cfg_ml->M_ID."'"; if(!$dsql->ExecuteNoneQuery($inquery)) { showmsg('購置掉敗, 請前往', -1); exit; } #api{{ if(defined('UC_APPID')) { include_once DEDEROOT.'/api/uc.func.php'; $row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='".$cfg_ml->M_ID."'"); uc_credit_note($row['userid'],-$needMoney,'money'); } #/aip}} showmsg('購置勝利,購置扣點不會重扣金幣,感謝!', '/plus/view.php?aid='.$aid); exit; } else { showmsg('購置掉敗, 請前往', -1); exit; } } $msgtitle = "扣金幣購置瀏覽!"; $moremsg = "瀏覽該文檔內容須要付費!
這篇文檔須要 ".$needMoney." 金幣 能力訪問,你今朝具有金幣 ".$cfg_ml->M_Money." 個!
確認瀏覽請點 [確認付點瀏覽]" ; include_once($cfg_basedir.$cfg_templets_dir."/plus/view_msg.htm"); $arc->Close(); exit(); } } }//金幣處置付處置 } $arc->Display();