page.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. require("../class/connect.php");
  3. require("../class/db_sql.php");
  4. require("../class/q_functions.php");
  5. require("../data/dbcache/class.php");
  6. require("../member/class/user.php");
  7. require("../data/dbcache/MemberLevel.php");
  8. $link=db_connect();
  9. $empire=new mysqlquery();
  10. $userid=0;
  11. $username='';
  12. $groupid=0;
  13. $spacestyle='';
  14. require('CheckUser.php');//验证用户
  15. $p=RepPostVar($_GET['p']);
  16. if(!$p)
  17. {
  18. printerror('ErrorUrl','',1);
  19. }
  20. $pagename='';
  21. $pagetext='';
  22. if($groupid)
  23. {
  24. $record="<!--record-->";
  25. $field="<!--field--->";
  26. $memberformid=GetMemberFormId($groupid);
  27. $memberformr=$empire->fetch1("select viewenter from {$dbtbpre}enewsmemberform where fid='$memberformid'");
  28. $flike=$field.$p.$record;
  29. if(strstr($memberformr['viewenter'],$flike))
  30. {
  31. $dofr=explode($flike,$memberformr['viewenter']);
  32. if(strstr($dofr[0],$record))
  33. {
  34. $dofr1=explode($record,$dofr[0]);
  35. $last=count($dofr1)-1;
  36. $pagename=$dofr1[$last];
  37. }
  38. else
  39. {
  40. $pagename=$dofr[0];
  41. }
  42. $pagetext=$addur[$p];
  43. }
  44. $pagename=stripSlashes($pagename);
  45. $pagetext=stripSlashes($pagetext);
  46. }
  47. require('template/'.$spacestyle.'/page.temp.php');
  48. db_close();
  49. $empire=null;
  50. ?>