콘텐츠 바로가기

> >
    질문하기오픈노트작성하기


로그인전체만들었는데 오류가 ㅋ 도와주세요
3레벨회원아카젠 |
이 지식이 받은추천
0
답변 0  |  조회 524

나름대로 고생헤서 스타일태그나 배경이미지나 만들어 넣고

기본제공 보디 (?) 플러그인인 전체 로그인 을 복사해놓고 온라인 상으로

작업했습니다.

 

그런데.. 플러그인 파일내에서 스타일 태그가 적용된 부분을 제가 만든 스타일로 변경하니 첫줄부터 오류가 나더군요 흑흑...

 

정확한 수정법좀 알려주시면 매우 감사하겠습니다.

제사이트는 오픈아이디도, SSL도 사용안해서 그 부분 외부로그인 제작할때지우면 오류나서 안건드리고, 열심히 했는데 오류가 났답니다.

 

아래는 원본 플러그인 소스이며 그 아래는 제가 만든 소스입니다.

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>

 

아래가 제가제작한거 입니다. -_-

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

목록
답변하시면 포인트 200점을 답변이 채택되면 포인트 800점 (기본:500점+선물:300점) 을 더 드립니다. 나도 답변하기
목록 TOP

관련 검색           질문하기오픈노트작성하기
큐노트 디렉토리:  
포인트 적립 팁
  • 큐노트 최초등록 300
  • 질문등록 50
  • 답변등록 200
  • 답변채택 500 점 + @
  • 오픈노트 등록 1,500
  • 태그입력 5
  • 추천 3
  • 나도한마디 3
  • 질문삭제 -50
  • 답변삭제 -200
HOME+%3E+%ED%81%90%EB%85%B8%ED%8A%B8+%3E+%EB%AC%B8%EC%A0%9C%ED%95%B4%EA%B2%B0