gvOnlineArea.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:2k
- <%@ page language="java" contentType="text/html;charset=UTF-8" %><%
- String ruri="", clubArea = "";
- ruri = request.getRequestURI();
- ruri = ruri.substring(ruri.lastIndexOf("/"),ruri.length());
- if(ruri.equals("/main.jsp")){
- clubArea = "进站画面";
- }else if(ruri.equals("/clubClass.jsp")){
- clubArea = "<a href="clubClass.jsp?ccID="+ request.getParameter("ccID") +"">浏览版面</a>";
- }else if(ruri.equals("/clubPage.jsp")){
- clubArea = "<a href="clubPage.jsp?ccID="+ request.getParameter("ccID") +"&" +
- "tID="+ request.getParameter("tID");
- if(request.getParameter("reID")!=null){
- clubArea += "&reID="+ request.getParameter("reID");
- }
- if(request.getParameter("ccStyle")!=null){
- clubArea += "&ccStyle="+request.getParameter("ccStyle");
- }
- clubArea += "">"+"查看文章</a>";
- }else if(ruri.equals("/clubPost.jsp")){
- clubArea = "发表文章";
- }else if(ruri.equals("/onlineList.jsp")){
- clubArea = "在线名单";
- }else if(ruri.equals("/userBox.jsp")){
- clubArea = "工具箱";
- }else if(ruri.equals("/search.jsp")){
- clubArea = "搜索";
- }else{
- clubArea = "未知区域";
- }
- col.setSessionID(String.valueOf(session.getId()));
- if(gvUserID>0){
- col.setUserName(gvUserName);
- }else{
- col.setUserName("今晚过客");
- }
- col.setOnUserID(gvUserID);
- col.setUserArea(clubArea);
- col.setUserip(request.getRemoteAddr());
- col.setTimeOut(-(refreshPage+10));
- col.setSessionID(String.valueOf(session.getId()));
- col.onlineUpdate();
- col.allOnlines();
- int onlines=0;
- onlines = col.getOnlines();
- application.setAttribute("onlines",String.valueOf(onlines));
- //out.println(String.valueOf(session.getId()));
- //out.println(col.getMessage());
- /*
- if(gvUserID>0){
- cmf.setUserMeID(gvUserID);
- cmf.friendOnline();
- gvFriendOnlineCount=cmf.getFriendOnlineCount();
- }
- application.setAttribute("friendOnlines",String.valueOf(gvFriendOnlineCount));
- */
- %>