帝國CMS二次開發(fā)回復(fù)后可見功能開發(fā)發(fā)表于:2019-03-13 10:14:11 欄目:帝國cms教程方法說明帝國CMS二次開發(fā)回復(fù)后可見功能方法是參考修改的官方的loginjs.php文件,在需要顯示地方帳帖下方的“內(nèi)容頁模板代碼”,然后新建一個(gè)php判斷文件,帳帖“index.php”內(nèi)的代碼,完成。內(nèi)容頁模板代碼12345<h3>文件下載:</h3><script type="text/javascript">document.write('<script src="/e/extend/down/?classid=[!--classid--]&id=[!--id--]&d=<?php echo $navinfor[stb] ?>&t='+Math.random()+'"><'+'/script>');</script><noscript><div class="reply-to-read"><i class="far fa-comment-dots"></i> 溫馨提示:你很可能禁用了Java scrip,我們無法正常為你服務(wù),真心抱歉!</div></noscript>帝國CMS二次開發(fā)回復(fù)后可index.php代碼123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263<?phprequire("../../class/connect.php");if(!defined('InEmpireCMS')){exit();}eCheckCloseMods('member');//關(guān)閉模塊$myuserid=(int)getcvar('mluserid');$r=array();$mhavelogin=0;if($myuserid){include("../../class/db_sql.php");include("../../member/class/user.php");$link=db_connect();$empire=new mysqlquery();$mhavelogin=1;//數(shù)據(jù)$myusername=RepPostVar(getcvar('mlusername'));$myrnd=RepPostVar(getcvar('mlrnd'));$qcklgr=qCheckLoginAuthstr();if(!$qcklgr['islogin']){EmptyEcmsCookie();$mhavelogin=0;}else{$r=$empire->fetch1("select ".eReturnSelectMemberF('userid,username,checked')." from ".eReturnMemberTable()." where ".egetmf('userid')."='$myuserid' and ".egetmf('rnd')."='$myrnd' limit 1");if(empty($r[userid])||$r[checked]==0){EmptyEcmsCookie();$mhavelogin=0;}}}if($mhavelogin==1){$down='';$id=(int)$_GET['id'];$classid=(int)$_GET['classid'];$stb=(int)$_GET['d'];$r_pl=$empire->fetch1("select userid,classid,id,saytime from {$dbtbpre}enewspl_1 where classid='$classid' and id='$id' and userid='$r[userid]' and saytime>UNIX_TIMESTAMP()-12*<a href="http://www.11px.cn/tags/360/" target="_blank">360</a>0 order by saytime desc limit 1");if(empty($r_pl[userid])){$down="<div class='reply-to-read'><p><i class='far fa-comment-dots'></i> ".$myusername." 會(huì)員: 你輸入用戶名 ".$myusername." 和登錄密碼<a href='#respond' title='評(píng)論本文'>「評(píng)論本文」</a>,即可獲得下載地址(資源有限,地址12小時(shí)內(nèi)有效)。請(qǐng)不要回復(fù)無意義內(nèi)容!</p></div>";}else{$down="<div class='reply-to-read'><p><i class='far fa-comment-dots'></i> ".$myusername." 會(huì)員: 你剛剛獲得下載地址 <a href='https://www.wentong.org/e/extend/down/go2dow.php?classid=".$classid."&id=".$id."&d=".$stb."&g=9'>/go2dow.php?g=9</a>(12小時(shí)內(nèi)有效,過期請(qǐng)重新評(píng)論獲?。?。請(qǐng)不要回復(fù)無意義內(nèi)容!</p></div>";}?>document.writeln("<?=$down?>");<?phpdb_close();$empire=null;}else{?>document.writeln("<div class='reply-to-read'><p><i class='far fa-comment-dots'></i> 溫馨提示: 隱藏內(nèi)容需要輸入「用戶名、密碼」<a href='#respond' title='評(píng)論本文'>「評(píng)論本文」</a>后查看。</p><p>未注冊(cè)的,請(qǐng)<a href='/e/member/register/' title='會(huì)員注冊(cè)'>「注冊(cè)」</a>。請(qǐng)不要回復(fù)無意義內(nèi)容!</p></div>");<?php}?>
新聞熱點(diǎn)
疑難解答
圖片精選