Server : nginx/1.20.2 System : Linux launch-advisor-20210512 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 User : www ( 1000) PHP Version : 5.3.29 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/jingsi/mobsite/e/data/template/ |
<?php require("../../class/connect.php"); if(!defined('InEmpireCMS')) { exit(); } require("../../class/db_sql.php"); require("../../class/q_functions.php"); require "../".LoadLang("pub/fun.php"); $link=db_connect(); $empire=new mysqlquery(); $editor=1; //分类id $bid=(int)$_GET['bid']; $gbr=$empire->fetch1("select bid,bname,groupid from {$dbtbpre}enewsgbookclass where bid='$bid'"); if(empty($gbr['bid'])) { printerror("EmptyGbook","",1); } //权限 if($gbr['groupid']) { include("../../member/class/user.php"); $user=islogin(); include("../../data/dbcache/MemberLevel.php"); if($level_r[$gbr[groupid]][level]>$level_r[$user[groupid]][level]) { echo"<script>alert('您的会员级别不足(".$level_r[$gbr[groupid]][groupname]."),没有权限提交信息!');history.go(-1);</script>"; exit(); } } esetcookie("gbookbid",$bid,0); $bname=$gbr['bname']; $search="&bid=$bid"; $page=(int)$_GET['page']; $page=RepPIntvar($page); $start=0; $line=$public_r['gb_num'];//每页显示条数 $page_line=10;//每页显示链接数 $offset=$start+$page*$line;//总偏移量 $totalnum=(int)$_GET['totalnum']; if($totalnum>0) { $num=$totalnum; } else { $totalquery="select count(*) as total from {$dbtbpre}enewsgbook where bid='$bid' and checked=0"; $num=$empire->gettotal($totalquery);//取得总条数 } $search.="&totalnum=$num"; $query="select lyid,name,email,`mycall`,lytime,lytext,retext from {$dbtbpre}enewsgbook where bid='$bid' and checked=0"; $query=$query." order by lyid desc limit $offset,$line"; $sql=$empire->query($query); $listpage=page1($num,$line,$page_line,$start,$page,$search); $url="<a href='".ReturnSiteIndexUrl()."'>".$fun_r['index']."</a> > ".$fun_r['saygbook']; ?> <!--empire.listtemp.top--> <? while($r=$empire->fetch($sql)) { $r['retext']=nl2br($r[retext]); $r['lytext']=nl2br($r[lytext]); ?> <!--empire.listtemp.center--> <? } ?> <!--empire.listtemp.footer--> <?php db_close(); $empire=null; ?>