index.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. require('../../class/connect.php');
  3. require('../../class/db_sql.php');
  4. require('../class/user.php');
  5. $link=db_connect();
  6. $empire=new mysqlquery();
  7. $editor=1;
  8. eCheckCloseMods('member');//关闭模块
  9. $enews=$_POST['enews'];
  10. if(empty($enews))
  11. {
  12. $enews=$_GET['enews'];
  13. }
  14. //关闭
  15. if($public_r['openspace']==1)
  16. {
  17. printerror('CloseMemberSpace','',1);
  18. }
  19. //导入文件
  20. if($enews=='ChangeSpaceStyle'||$enews=='DoSetSpace')
  21. {
  22. include('spacecomfun.php');
  23. }
  24. elseif($enews=='AddMemberGbook'||$enews=='ReMemberGbook'||$enews=='DelMemberGbook'||$enews=='DelMemberGbook_All')
  25. {
  26. include('gbookfun.php');
  27. }
  28. elseif($enews=='AddMemberFeedback'||$enews=='DelMemberFeedback'||$enews=='DelMemberFeedback_All')
  29. {
  30. include('feedbackfun.php');
  31. }
  32. if($enews=="ChangeSpaceStyle")//选择空间模板
  33. {
  34. ChangeSpaceStyle($_GET);
  35. }
  36. elseif($enews=="DoSetSpace")//设置空间信息
  37. {
  38. DoSetSpace($_POST);
  39. }
  40. elseif($enews=="AddMemberGbook")//留言
  41. {
  42. AddMemberGbook($_POST);
  43. }
  44. elseif($enews=="ReMemberGbook")//回复留言
  45. {
  46. ReMemberGbook($_POST);
  47. }
  48. elseif($enews=="DelMemberGbook")//删除留言
  49. {
  50. DelMemberGbook($_GET);
  51. }
  52. elseif($enews=="DelMemberGbook_All")//批量删除留言
  53. {
  54. DelMemberGbook_All($_POST);
  55. }
  56. elseif($enews=="AddMemberFeedback")//提交反馈
  57. {
  58. AddMemberFeedback($_POST);
  59. }
  60. elseif($enews=="DelMemberFeedback")//删除反馈
  61. {
  62. DelMemberFeedback($_GET);
  63. }
  64. elseif($enews=="DelMemberFeedback_All")//批量删除反馈
  65. {
  66. DelMemberFeedback_All($_POST);
  67. }
  68. else
  69. {
  70. printerror("ErrorUrl","history.go(-1)",1);
  71. }
  72. db_close();
  73. $empire=null;
  74. ?>