page.php
1.09 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
<?php
require("../class/connect.php");
require("../class/db_sql.php");
require("../class/q_functions.php");
require("../data/dbcache/class.php");
require("../member/class/user.php");
require("../data/dbcache/MemberLevel.php");
$link=db_connect();
$empire=new mysqlquery();
$userid=0;
$username='';
$spacestyle='';
require('CheckUser.php');//驗證用戶
$p=RepPostVar($_GET['p']);
if(!$p)
{
printerror('ErrorUrl','',1);
}
$pagename='';
$pagetext='';
if($groupid)
{
$record="<!--record-->";
$field="<!--field--->";
$memberformid=GetMemberFormId($groupid);
$memberformr=$empire->fetch1("select viewenter from {$dbtbpre}enewsmemberform where fid='$memberformid'");
$flike=$field.$p.$record;
if(strstr($memberformr['viewenter'],$flike))
{
$dofr=explode($flike,$memberformr['viewenter']);
if(strstr($dofr[0],$record))
{
$dofr1=explode($record,$dofr[0]);
$last=count($dofr1)-1;
$pagename=$dofr1[$last];
}
else
{
$pagename=$dofr[0];
}
$pagetext=$addur[$p];
}
}
require('template/'.$spacestyle.'/page.temp.php');
db_close();
$empire=null;
?>