index.php
1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?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;
?>