123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- require("../../class/connect.php");
- require("../../class/q_functions.php");
- require("../../class/db_sql.php");
- require("../../member/class/user.php");
- require("../../data/dbcache/MemberLevel.php");
- $link=db_connect();
- $empire=new mysqlquery();
- $editor=1;
- eCheckCloseMods('member');//关闭模块
- if($public_r['showinfolevel'])
- {
- $user=islogin();
- if($level_r[$user[groupid]]['level']<$level_r[$public_r[showinfolevel]]['level'])
- {
- printerror("NotLevelShowInfo","",1);
- }
- }
- $userid=(int)$_GET['userid'];
- if($userid)
- {
- $where=egetmf('userid')."='$userid'";
- $username='';
- }
- else
- {
- $username=RepPostVar($_GET['username']);
- if(empty($username))
- {
- printerror("NotUsername","",1);
- }
- $utfusername=$username;
- $where=egetmf('username')."='$username'";
- }
- $r=$empire->fetch1("select ".eReturnSelectMemberF('userid,username,email,groupid,userfen,userdate,registertime')." from ".eReturnMemberTable()." where ".$where." limit 1");
- if(empty($r['userid']))
- {
- printerror("NotUsername","",1);
- }
- if(empty($username))
- {
- $username=$r['username'];
- }
- $registertime=eReturnMemberRegtime($r['registertime'],'Y-m-d H:i:s');
- $email=$r['email'];
- $addr=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid='".$r['userid']."' limit 1");
- //取得表单
- $formid=GetMemberFormId($r['groupid']);
- $formr=$empire->fetch1("select filef,imgf,tobrf,viewenter from {$dbtbpre}enewsmemberform where fid='$formid'");
- //导入模板
- require(ECMS_PATH.'e/template/member/ShowInfo.php');
- db_close();
- $empire=null;
- ?>
|