| 1. |
<? |
| 2. |
global $referer,$logtype; |
| 3. |
if($my['uid']) getLink('./','',''); |
| 4. |
?> |
| 5. |
|
| 6. |
<style type="text/css"> |
| 7. |
.inputcss { |
| 8. |
width:240px; |
| 9. |
height:18px; |
| 10. |
border:#dfdfdf solid 1px; |
| 11. |
} |
| 12. |
</style> |
| 13. |
<form name="KimsonMemberLoginSSL" action="https://<?=$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']?>" method="post"> |
| 14. |
<input type="hidden" name="action" value="login" /> |
| 15. |
<input type="hidden" name="a" value="login" /> |
| 16. |
<input type="hidden" name="referer" value="" /> |
| 17. |
<input type="hidden" name="id" value="" /> |
| 18. |
<input type="hidden" name="pw" value="" /> |
| 19. |
<input type="hidden" name="idpwsave" value="" /> |
| 20. |
</form> |
| 21. |
<form name="KimsonMemberLoginForm" action="<?=$global['thisfile']?>" method="post" "return logCheck1(this)"> |
| 22. |
<input type="hidden" name="action" value="login" /> |
| 23. |
<input type="hidden" name="a" value="login" /> |
| 24. |
<input type="hidden" name="openid_action" value="" /> |
| 25. |
<input type="hidden" name="referer" value="<?=$referer?$referer:$_SERVER['HTTP_REFERER']?>" /> |
| 26. |
<div align="center"> |
| 27. |
<table width="400" height="450" cellspacing="0" cellpadding="0"> |
| 28. |
<tr> |
| 29. |
<td> |
| 30. |
<?getRound('message','top','padding:10px;text-align:left;','')?> |
| 31. |
|
| 32. |
<table width="100%" cellspacing="0" cellpadding="0"> |
| 33. |
<tr height="20"> |
| 34. |
<td style="color:#ff7700;font-size:14px;font-family:dotum;"> |
| 35. |
<b>로그인</b> |
| 36. |
</td> |
| 37. |
<td align="right" style="font-size:11px;font-family:dotum;color:#c0c0c0;"> |
| 38. |
<a href="#." "history.back();">돌아가기</a> |
| 39. |
</td> |
| 40. |
</tr> |
| 41. |
<tr><td colspan="2" height="5"></td></tr> |
| 42. |
<tr><td colspan="2" height="1" bgcolor="#dfdfdf"></td></tr> |
| 43. |
<tr><td colspan="2" height="25"></td></tr> |
| 44. |
<tr height="30"> |
| 45. |
<td colspan="2"> |
| 46. |
<table width="100%" cellspacing="0" cellpadding="0" id="logtbl_normal"> |
| 47. |
<tr height="30"> |
| 48. |
<td width="20" nowrap="nowrap"></td> |
| 49. |
<td width="60" nowrap="nowrap" style="color:#666666;"> |
| 50. |
<b><?if($mbr['idsystem']):?>아이디<?else:?>이메일<?endif?></b> |
| 51. |
</td> |
| 52. |
<td width="5" nowrap="nowrap"></td> |
| 53. |
<td> |
| 54. |
<input type="text" size="18" name="id" tabindex="1" value="<?=getArrayCookie($_COOKIE['svkimson'],"|",0)?>" class="inputcss" /> |
| 55. |
</td> |
| 56. |
</tr> |
| 57. |
<tr height="30"> |
| 58. |
<td width="20" nowrap="nowrap"></td> |
| 59. |
<td width="60" nowrap="nowrap" style="color:#666666;"> |
| 60. |
<b>패스워드</b> |
| 61. |
</td> |
| 62. |
<td width="5" nowrap="nowrap"></td> |
| 63. |
<td> |
| 64. |
<input type="password" size="18" maxlength="16" name="pw" tabindex="2" value="<?=getArrayCookie($_COOKIE['svkimson'],"|",1)?>" class="inputcss" /> |
| 65. |
</td> |
| 66. |
</tr> |
| 67. |
</table> |
| 68. |
<?if($mbr['use_openid']):?> |
| 69. |
|
| 70. |
<table width="100%" cellspacing="0" cellpadding="0" id="logtbl_openid" style="display:none;"> |
| 71. |
<tr height="30"> |
| 72. |
<td width="20" nowrap="nowrap"></td> |
| 73. |
<td width="60" nowrap="nowrap" style="color:#666666;font-size:11px;font-family:arial;"> |
| 74. |
<img src="<?=$img['plugin']?>/openid.gif" align="absmiddle" />OpenID |
| 75. |
</td> |
| 76. |
<td width="5" nowrap="nowrap"></td> |
| 77. |
<td> |
| 78. |
<input type="text" size="18" name="openid_url" tabindex="1" value="" class="inputcss" /> |
| 79. |
</td> |
| 80. |
</tr> |
| 81. |
<tr height="30"> |
| 82. |
<td width="20" nowrap="nowrap"></td> |
| 83. |
<td width="60" nowrap="nowrap"></td> |
| 84. |
<td width="5" nowrap="nowrap"></td> |
| 85. |
<td align="left" valign="top" style="font-size:11px;font-family:dotum;color:#909090;padding-left:5px;"> |
| 86. |
오픈아이디를 입력해 주세요. |
| 87. |
</td> |
| 88. |
</tr> |
| 89. |
</table> |
| 90. |
<?endif?> |
| 91. |
|
| 92. |
<table width="100%" cellspacing="0" cellpadding="0"> |
| 93. |
<tr><td colspan="2" height="10"></td></tr> |
| 94. |
<tr align="left"> |
| 95. |
<td width="82" nowrap="nowrap"></td> |
| 96. |
<td> |
| 97. |
<input type="checkbox" name="idpwsave" value="checked" <?=getArrayCookie($_COOKIE['svkimson'],"|",2)?> "remember_idpw1(this)" /><span style="color:#4a4d4a;font-family:돋움;font-size:11px;">아이디/패스워드 기억</span> |
| 98. |
|
| 99. |
<?if($mbr['use_ssl']):?> |
| 100. |
<input type="checkbox" name="sslcheck" value="secu" /><span style="color:#4a4d4a;font-size:11px;font-family:돋움;" />보안접속(SSL)</span> |
| 101. |
<?endif?> |
| 102. |
|
| 103. |
<br /> |
| 104. |
|
| 105. |
<?if($mbr['use_openid']):?> |
| 106. |
<input type="checkbox" name="openidcheck" "openidChk(this)" /><span style="color:#F68E50;font-size:11px;font-family:돋움;" />OpenID로 접속하기</span> |
| 107. |
<?else:?> |
| 108. |
<br /> |
| 109. |
<?endif?> |
| 110. |
</td> |
| 111. |
</tr> |
| 112. |
<tr><td colspan="2" height="10"></td></tr> |
| 113. |
<tr><td colspan="2" align="right" style="padding-right:22px;"><input type="image" src="<?=$img['plugin']?>/btn_signin.gif" tabindex="3" /></td></tr> |
| 114. |
</table> |
| 115. |
</td> |
| 116. |
</tr> |
| 117. |
<tr><td colspan="2" height="15"></td></tr> |
| 118. |
<tr><td colspan="2" height="1" bgcolor="#dfdfdf"></td></tr> |
| 119. |
<tr><td colspan="2" height="8"></td></tr> |
| 120. |
<tr height="20"> |
| 121. |
<td colspan="2"> |
| 122. |
|
| 123. |
<table width="100%" cellspacing="0" cellpadding="0"> |
| 124. |
<tr> |
| 125. |
<td><a href="<?=$skin['home']?>"><img src="<?=$img['plugin']?>/arr_01.gif" align="absmiddle" /></a></td> |
| 126. |
<td align="right"> |
| 127. |
<a href="./index.php?q=join"><img src="<?=$img['plugin']?>/btn_regis.gif" /></a> |
| 128. |
<a href="./index.php?q=idpw"><img src="<?=$img['plugin']?>/search_idpw.gif" /></a> |
| 129. |
|
| 130. |
</td> |
| 131. |
</tr> |
| 132. |
</table> |
| 133. |
</td> |
| 134. |
</tr> |
| 135. |
</table> |
| 136. |
<?getRound('message','bottom','','')?> |
| 137. |
</td> |
| 138. |
</tr> |
| 139. |
</table> |
| 140. |
</div> |
| 141. |
</form> |
| 142. |
<script type="text/javascript" language="javascript"> |
| 143. |
function logCheck1(f) |
| 144. |
{ |
| 145. |
if (f.openid_action.value == 'login') |
| 146. |
{ |
| 147. |
if (f.openid_url.value == '') |
| 148. |
{ |
| 149. |
alert('오픈아이디를 입력해 주세요. '); |
| 150. |
f.openid_url.focus(); |
| 151. |
return false; |
| 152. |
} |
| 153. |
} |
| 154. |
else { |
| 155. |
if (f.id.value == "") |
| 156. |
{ |
| 157. |
alert('아이디를 입력해 주세요. '); |
| 158. |
f.id.focus(); |
| 159. |
return false; |
| 160. |
} |
| 161. |
<?if(!$mbr['idsystem']):?> |
| 162. |
if (f.id.value.indexOf('@') == -1) |
| 163. |
{ |
| 164. |
alert('아이디는 이메일주소입니다. '); |
| 165. |
f.id.focus(); |
| 166. |
return false; |
| 167. |
} |
| 168. |
<?endif?> |
| 169. |
if (f.pw.value == "") |
| 170. |
{ |
| 171. |
alert('비밀번호를 입력해 주세요. '); |
| 172. |
f.pw.focus(); |
| 173. |
return false; |
| 174. |
} |
| 175. |
} |
| 176. |
if(f.referer.value=="") f.referer.value = location.href; |
| 177. |
<?if($mbr['use_ssl']):?> |
| 178. |
if (f.sslcheck.checked == true) |
| 179. |
{ |
| 180. |
var fs = document.KimsonMemberLoginSSL; |
| 181. |
fs.referer.value = f.referer.value; |
| 182. |
fs.id.value = f.id.value; |
| 183. |
fs.pw.value = f.pw.value; |
| 184. |
if(f.idpwsave.checked == true) fs.idpwsave.value |
| 185. |
|
| 186. |
fs.submit(); |
| 187. |
return false; |
| 188. |
} |
| 189. |
<?endif?> |
| 190. |
} |
| 191. |
function openidChk(obj) |
| 192. |
{ |
| 193. |
var f = document.KimsonMemberLoginForm; |
| 194. |
var n = getId('logtbl_normal'); |
| 195. |
var o = getId('logtbl_openid'); |
| 196. |
if (obj.checked == true) |
| 197. |
{ |
| 198. |
n.style.display = 'none'; |
| 199. |
o.style.display = 'block'; |
| 200. |
f.a.value = 'openid_login'; |
| 201. |
f.openid_action.value = 'login'; |
| 202. |
f.openid_url.focus(); |
| 203. |
} |
| 204. |
else { |
| 205. |
n.style.display = 'block'; |
| 206. |
o.style.display = 'none'; |
| 207. |
f.a.value = 'login'; |
| 208. |
f.openid_action.value = ''; |
| 209. |
f.id.focus(); |
| 210. |
} |
| 211. |
} |
| 212. |
function remember_idpw1(ths) |
| 213. |
{ |
| 214. |
if (ths.checked == true) |
| 215. |
{ |
| 216. |
if (!confirm('\n\n패스워드정보를 저장할 경우 다음접속시 \n\n패스워드를 입력하지 않으셔도 됩니다.\n\n그러나, 개인PC가 아닐 경우 타인이 로그인할 수 있습니다. \n\nPC를 여러사람이 사용하는 공공장소에서는 체크하지 마세요.\n\n정말로 패스워드를 기억시키겠습니까?\n\n')) |
| 217. |
{ |
| 218. |
ths.checked = false; |
| 219. |
} |
| 220. |
} |
| 221. |
} |
| 222. |
function xfocus() |
| 223. |
{ |
| 224. |
var f = document.KimsonMemberLoginForm; |
| 225. |
<?if($mbr['use_openid']&&$logtype=='openid'):?> |
| 226. |
f.openidcheck.checked = true; |
| 227. |
openidChk(f.openidcheck); |
| 228. |
<?else:?> |
| 229. |
f.id.focus(); |
| 230. |
<?endif?> |
| 231. |
} |
| 232. |
window.onload = xfocus; |
| 233. |
</script> |