gvOnlineArea.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:2k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"  %><%
  2. String ruri="", clubArea = "";
  3. ruri = request.getRequestURI();
  4. ruri = ruri.substring(ruri.lastIndexOf("/"),ruri.length());
  5. if(ruri.equals("/main.jsp")){
  6. clubArea = "进站画面";
  7. }else if(ruri.equals("/clubClass.jsp")){
  8. clubArea = "<a href="clubClass.jsp?ccID="+ request.getParameter("ccID") +"">浏览版面</a>";
  9. }else if(ruri.equals("/clubPage.jsp")){
  10. clubArea = "<a href="clubPage.jsp?ccID="+ request.getParameter("ccID") +"&" +
  11. "tID="+ request.getParameter("tID");
  12. if(request.getParameter("reID")!=null){
  13. clubArea += "&reID="+ request.getParameter("reID");
  14. }
  15. if(request.getParameter("ccStyle")!=null){
  16. clubArea += "&ccStyle="+request.getParameter("ccStyle");
  17. }
  18. clubArea += "">"+"查看文章</a>";
  19. }else if(ruri.equals("/clubPost.jsp")){
  20. clubArea = "发表文章";
  21. }else if(ruri.equals("/onlineList.jsp")){
  22. clubArea = "在线名单";
  23. }else if(ruri.equals("/userBox.jsp")){
  24. clubArea = "工具箱";
  25. }else if(ruri.equals("/search.jsp")){
  26. clubArea = "搜索";
  27. }else{
  28. clubArea = "未知区域";
  29. }
  30. col.setSessionID(String.valueOf(session.getId()));
  31. if(gvUserID>0){
  32. col.setUserName(gvUserName);
  33. }else{
  34. col.setUserName("今晚过客");
  35. }
  36. col.setOnUserID(gvUserID);
  37. col.setUserArea(clubArea);
  38. col.setUserip(request.getRemoteAddr());
  39. col.setTimeOut(-(refreshPage+10));
  40. col.setSessionID(String.valueOf(session.getId()));
  41. col.onlineUpdate();
  42. col.allOnlines();
  43. int onlines=0;
  44. onlines = col.getOnlines(); 
  45. application.setAttribute("onlines",String.valueOf(onlines));
  46. //out.println(String.valueOf(session.getId()));
  47. //out.println(col.getMessage());
  48. /*
  49. if(gvUserID>0){
  50. cmf.setUserMeID(gvUserID);
  51. cmf.friendOnline();
  52. gvFriendOnlineCount=cmf.getFriendOnlineCount();
  53. }
  54. application.setAttribute("friendOnlines",String.valueOf(gvFriendOnlineCount));
  55. */
  56. %>