📄 notmember_005ftwo_005fview_jsp.java.svn-base
字号:
SYSTEM_VM_PATH = "web2";
isQVGA = false;
}
else
{
SYSTEM_VM_PATH = "web";
isQVGA = true;
}
szPageURL = null;
}
/*------------------------------------------------------------------------------------------------
* 변수설정
-------------------------------------------------------------------------------------------------*/
img_path = "/mugeta/client/mugeta_ODC/"+SYSTEM_VM_PATH+"/";
ava_path = "http://localhost/client/mugeta_ODC_movata/web/user/itemcoordi/";
url_path = "/client/mugeta_ODC/"+SYSTEM_VM_PATH+"/user";
db_name = "mugeta";
ContentserverIP = "http://localhost";
SYSTEM_URL_PATH = "/client/mugeta_ODC/web/user";
SYSTEM_MOVATA_CACHE_PATH = "/client/mugeta_ODC_movata/"+SYSTEM_VM_PATH+"/user";
SYSTEM_MOVATA_SERVER = new String[1];
SYSTEM_MOVATA_SERVER[0] = "localhost";
/*------------------------------------------------------------------------------------------------
* Movata Object Name
-------------------------------------------------------------------------------------------------*/
String SYSTEM_OBJECT_NAME = "mugeta";
out.write('\r');
out.write('\n');
/**
* 공통 상수 정의
*
* @ version : 1.0.0
* @ author : realbeast ( realbeast@entaz.com )
* @ last modified : 2008-03-18
*/
/*------------------------------------------------------------------------------------------------
* 기본 컨텐츠 URL
-------------------------------------------------------------------------------------------------*/
String SYSTEM_USER_NUMBER = request.getParameter("mphone");
String SYSTEM_URL_HOME = url_path + "/main.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String SYSTEM_URL_ITEM_SHOP = url_path + "/itemShop/main.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String SYSTEM_URL_RECOMMEND = url_path + "/friendrecommend/friendrecommend1.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String SYSTEM_URL_AD = url_path + "/isuser_check.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String SYSTEM_URL_PHONEPY = url_path + "/mypage/my_confirm.jsp?mphone=" + SYSTEM_USER_NUMBER;
/*------------------------------------------------------------------------------------------------
* 관리자 ( 지기 ) 폰 번호
-------------------------------------------------------------------------------------------------*/
HashMap SYSTEM_ADMIN_PHONE = new HashMap();
SYSTEM_ADMIN_PHONE.put("Town", "01051737201"); // 타운지기
SYSTEM_ADMIN_PHONE.put("Cafe", "01051797201"); // 카페지기
SYSTEM_ADMIN_PHONE.put("Gong", "01051797201"); // 공감지기
SYSTEM_ADMIN_PHONE.put("Knowledge", "01051787201"); // 지식지기
SYSTEM_ADMIN_PHONE.put("Police", "01051767201"); // 신고지기
out.write('\r');
out.write('\n');
out.write('\r');
out.write('\n');
out.write('\r');
out.write('\n');
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
String URL_ITEMSHOP_VM = SYSTEM_URL_PATH + "/itemShop/DoItemShopVM.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_VM_CHECK = SYSTEM_URL_PATH + "/itemShop/DispItemCheck.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST = SYSTEM_URL_PATH + "/itemShop/MovataContest_list.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST_VIEW = SYSTEM_URL_PATH + "/itemShop/MovataContest_proc.jsp?type=hitUpdate&mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST_VIEW2 = SYSTEM_URL_PATH + "/itemShop/MovataContest_view.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST_PROC = SYSTEM_URL_PATH + "/itemShop/MovataContest_proc.jsp";
String URL_ITEMSHOP_CONTEST_WRITE = SYSTEM_URL_PATH + "/itemShop/MovataContest_write.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST_RE_WRITE = SYSTEM_URL_PATH + "/itemShop/MovataContest_replyWrite.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST_DELETE = SYSTEM_URL_PATH + "/itemShop/MovataContest_confirm.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CONTEST_ALERT_MESSAGE = SYSTEM_URL_PATH + "/itemShop/MovataContest_alert.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_list.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION_VIEW = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_proc.jsp?type=hitUpdate&mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION_VIEW2 = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_view.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION_PROC = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_proc.jsp";
String URL_ITEMSHOP_COORDINATION_WRITE = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_write.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION_RE_WRITE = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_replyWrite.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION_DELETE = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_confirm.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_COORDINATION_ALERT_MESSAGE = SYSTEM_URL_PATH + "/itemShop/MovataCoordination_alert.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_HOT_ITEM = SYSTEM_URL_PATH + "/itemShop/DispItem.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CLOVER_RANKING = SYSTEM_URL_PATH + "/itemShop/CloverRanking_list.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_CLOVER_RANKING_MESSAGE = SYSTEM_URL_PATH + "/itemShop/CloverRanking_Manage.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_MY = SYSTEM_URL_PATH + "/itemShop/MyItemShop.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
String URL_ITEMSHOP_BUY_CONFIRM = SYSTEM_URL_PATH + "/itemShop/ItemBuy.jsp?mphone=" + SYSTEM_USER_NUMBER + "&gphone=" + SYSTEM_USER_NUMBER;
out.write('\r');
out.write('\n');
response.setHeader("cache-control","no-cache");
response.setHeader("expires","0");
response.setHeader("pragma","no-cache");
/**
*
*
* @ version : 1.0.0
* @ author : cui qiuyue ( qycui@isoftstone.com )
* @ last modified : 2008-04-29
*/
/*------------------------------------------------------------------------------------------------------
+ 기본 파라미터
-------------------------------------------------------------------------------------------------------*/
String mphone = request.getParameter("mphone");
String gphone = request.getParameter("gphone");
int nIdx = 0;
int nCafeIdx =0;
String strCafeName = null;
int nIssueIdx =0;
String strIssueTitle = null;
int nKthemaIdx =0;
String strKthemaTitle = null;
String szCount = null;
String szQuery = null;
Connection con = null;
PreparedStatement pstmt = null;
Statement stmt = null;
ResultSet rs = null;
try
{
/*------------------------------------------------------------------------------------------------
* DB 커넥션
-------------------------------------------------------------------------------------------------*/
/**
* 무료게임타운 시스템점검 및 블랙유저 검출
*
* @ date ?8-01-21
* @ version 1.2.0
*/
String SYSTEM_PARAMETER_SET = "?mphone="+request.getParameter("mphone")+"&gphone="+request.getParameter("mphone");
String SYSTEM_PHONE_NUMBER = request.getParameter("mphone");
// 시스템 점검 체크
//
if(IS_SYSTEM_CHECK)
{
if( ! IS_TESTER_MODE )
{
response.sendRedirect(url_path+"/17_members_view.jsp"+SYSTEM_PARAMETER_SET);
return;
}
}
// DB 연결이 되지 않을 때, 안내창으로 이동
//
con = com.entaz.lib.db.DBConnector.getConnection("mugeta");
if( con == null )
{
response.sendRedirect(url_path+"/system_notice2.jsp"+SYSTEM_PARAMETER_SET);
return;
}
// 시스템점검 중이여도 테스터는 사용가능
//
if( IS_TESTER_MODE )
{
boolean isTester = com.entaz.lib.db.DBConnector.chkTester( con, SYSTEM_PHONE_NUMBER );
if( ! isTester )
{
response.sendRedirect(url_path+"/system_notice.jsp"+SYSTEM_PARAMETER_SET);
return;
}
}
// 블랙유저인지 체크,
//
boolean isBlackUser = com.entaz.lib.db.DBConnector.chkBlackList( con, SYSTEM_PHONE_NUMBER );
if( isBlackUser )
{
response.sendRedirect(url_path+"/bad_member.jsp"+SYSTEM_PARAMETER_SET);
return;
}
/*------------------------------------------------------------------------------------------------
* 타운 카페
-------------------------------------------------------------------------------------------------*/
szCount = " SELECT top 1 idx from GT_t_1 where flag = 5 ORDER BY newid()";
pstmt = con.prepareStatement(szCount);
rs = pstmt.executeQuery();
if( rs.next() )
{
nIdx = rs.getInt("idx");
szQuery ="SELECT cafe_idx,cafe_name FROM GT_cafe WHERE cafe_idx = "+nIdx;
}
else
{
szQuery ="SELECT top 1 cafe_idx,cafe_name FROM GT_cafe ORDER BY cafe_idx DESC";
}
pstmt = con.prepareStatement(szQuery);
rs = pstmt.executeQuery();
if( rs.next() )
{
nCafeIdx = rs.getInt("cafe_idx");
strCafeName = rs.getString("cafe_name");
}
rs.close();
pstmt.close();
/*------------------------------------------------------------------------------------------------
* 타운 공감
-------------------------------------------------------------------------------------------------*/
szCount = "SELECT top 1 idx from GT_t_1 where flag = 4 ORDER BY newid()";
pstmt = con.prepareStatement(szCount);
rs = pstmt.executeQuery();
if( rs.next() )
{
nIdx = rs.getInt("idx");
szQuery ="SELECT issue_title,issue_idx FROM GT_issue WHERE issue_idx = "+nIdx;
}
else
{
szQuery ="SELECT top 1 issue_title,issue_idx FROM GT_issue order BY issue_idx DESC";
}
pstmt = con.prepareStatement(szQuery);
rs = pstmt.executeQuery();
if( rs.next() )
{
nIssueIdx = rs.getInt("issue_idx");
strIssueTitle = rs.getString("issue_title");
}
rs.close();
pstmt.close();
/*------------------------------------------------------------------------------------------------
* 타운 광장
-------------------------------------------------------------------------------------------------*/
szCount = "SELECT top 1 idx FROM GT_t_1 WHERE flag = 1 OR flag = 2 ORDER BY newid()";
pstmt = con.prepareStatement(szCount);
rs = pstmt.executeQuery();
if( rs.next() )
{
nIdx = rs.getInt("idx");
szQuery ="SELECT kthema_idx,kthema_title,phonenum FROM GT_kthema WHERE kthema_idx="+nIdx;
}
else
{
szQuery ="SELECT top 1 kthema_idx,kthema_title,phonenum FROM GT_kthema ORDER BY kthema_idx DESC";
}
pstmt = con.prepareStatement(szQuery);
rs = pstmt.executeQuery();
if( rs.next() )
{
nKthemaIdx = rs.getInt("kthema_idx");
strKthemaTitle = rs.getString("kthema_title");
}
rs.close();
pstmt.close();
}
catch(Exception e)
{
throw e;
}
finally
{
if ( rs != null ) { try { rs.close(); } catch ( Exception e ) { } }
if ( stmt != null ) { try { stmt.close(); } catch ( Exception e ) { } }
if ( con != null ) { try { con.close(); } catch ( Exception e ) { } }
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<body bgcolor=\"#FFFFFF\">\r\n");
out.write("\r\n");
out.write("<!--↓본문 -->\r\n");
out.write("<table width=\"228\" height=\"65\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
out.write("\t<tr valign=\"top\" >\r\n");
out.write("\t\t<td>\r\n");
out.write("\t\t\t\r\n");
out.write("\t\t\t<table width=\"228\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write("\t\t\t\t<tr height=\"2\">\r\n");
out.write("\t\t\t\t\t<td></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\r\n");
out.write("\t\t\t\t<!--↓타운카페 시작 -->\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td><img src=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/bu_06.png\" pictosrc=\"8\"> <a href=\"#\"><font color=\"#FC3F4E\"><b>[타운카페]</b></font></a> ");
out.print(strCafeName );
out.write("</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<!--↑타운카페 끝-->\r\n");
out.write("\r\n");
out.write("\t\t\t\t<tr height=\"4\">\r\n");
out.write("\t\t\t\t\t<td></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td width=\"228\" height=\"1\" background=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/dot_01.png\"></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr height=\"4\">\r\n");
out.write("\t\t\t\t\t<td></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\r\n");
out.write("\t\t\t\t<!--↓타운공감 시작 -->\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td><img src=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/bu_03.png\" pictosrc=\"5\"> <a href=\"#\"><font color=\"#B160FA\"><b>[타운공감]</b></font></a> ");
out.print(strIssueTitle );
out.write("</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<!--↑타운공감 끝-->\r\n");
out.write("\r\n");
out.write("\t\t\t\t<tr height=\"4\">\r\n");
out.write("\t\t\t\t\t<td></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td width=\"228\" height=\"1\" background=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/dot_01.png\"></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr height=\"4\">\r\n");
out.write("\t\t\t\t\t<td></td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\r\n");
out.write("\t\t\t\t<!--↓지식광장 시작 -->\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td><img src=\"http://entaz.mugeta.com/client/FTP_Working_Folder/web/images/main/bu_02.png\" pictosrc=\"4\"> <a href=\"#\"><font color=\"#FC3F4E\"><b>[지식광장]</b></font></a> ");
out.print(strKthemaTitle );
out.write("</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<!--↑지식광장 끝-->\r\n");
out.write("\t\t\t</table>\t\t\t\r\n");
out.write("\r\n");
out.write("\t\t</td>\r\n");
out.write("\t</tr>\r\n");
out.write("</table>\r\n");
out.write("<!--↑본문 -->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -