|
|
|
|
俵ÀÌ / 2001-10-08 / ¿ÀÈÄ 7:21:58 / 203.255.3.190
Á¶È¸¼ö : 120
|
[Áú¹®] ¿ì¿Õ Á¦¹ß Á» »ì·ÁÁÖ¼¼¿ä.(everybodyȯ¿µ) |
>
> [login.asp]
> <% logid = Request.QueryString("num") %>
>
> <html>
> <head>
> ......
> <style>
> <!--
> td {font-size:9pt; color:Black; font-family:gulim}
> a {font-size:9pt; font-family:gulim}
> a:hover {text-decoration:none; color:#996666;}
> a:link {text-decoration:none; color:#3333cc;}
> a:visited{text-decoration:none; color:#cc6699;}
> -->
> </style>
>
> <SCRIPT LANGUAGE="javascript">
>
>
> var num=0;
> var click1=-1;
> no=0;
>
> standard = new MakeArray(13)
> over = new MakeArray(13)
>
> standard[9].src = "images/login7.gif"
> standard[10].src = "images/login8.gif"
>
>
> over[9].src = "images/login71.gif"
> over[10].src = "images/login81.gif"
>
>
> function MakeArray(n) {
> this.length = n
> for(var i=0; i<=n; i++)
> {
> this[i]= new Image()
> }
> return this
> }
>
> function msclick(num){
> document.images[num+0].src = over[num].src;
> if(click1 != num && click1 != -1)
> msout(click1);
> click1 = num;
>
> }
>
> function msover(num){
> document.images[num+0].src = over[num].src;
> no=num;
> }
>
> function msout(num) {
> if(no != -1 && click1 != no)
> document.images[num+0].src = standard[num].src;
> }
>
> </script>
> </head>
>
>
> <body bgcolor="white" leftmargin="0" topmargin="10" marginwidth="0" marginheight="10">
>
> <table cellpadding="0" cellspacing="0" border="0" align="center">
> <tr>
> <td align="center">
> <font style="font-size:9pt" color="green">
>
> º» ¼ºñ½º´Â ·Î±×ÀÎÀ» ÇϽŠÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. <br>
> ȸ¿øÀÌ ¾Æ´Ï½Å ºÐÀº ¹«·á <a href="member.asp" target="right">ȸ¿ø °¡ÀÔ</a> ÈÄ ¹Ù·Î ÀÌ¿ë °¡´É ÇÕ´Ï´Ù.<br><br><br></font>
>
>
> <table border=0 cellspacing=0 cellpadding=0>
> <tr>
> <td><img src="../images/dum.gif" width=10 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> </tr>
> <tr>
> <td><img src="../images/dum.gif" width=10 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif" width=1><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> <td>
> <table border=0 cellspacing=0 cellpadding=8>
> <tr>
> <td>
>
>
> <!-------------------¿©±âºÎÅÍ login form½ÃÀÛ ----------------------->
>
> <form action="login_next.asp?num=<%=logid%>" name="login" method="post">
> (¿¡·¯ºÎºÐ ¿¡·¯ºÎºÐ ¿¡·¯ºÎºÐ ¿¡·¯ºÎºÐ)
>
>
> <table width="206" cellspacing="0" cellpadding="0" border="0">
> <tr>
> <td colspan="4"><img src="images/login1.gif" width=206 height=24 alt="" border="0"></td>
> </tr>
> <tr>
> <td rowspan="3" width="7"><img src="images/login2.gif" width=9 height=80 alt="" border="0"></td>
> <td align="right" bgcolor="#FAE751" valign="bottom">ID </td>
> <td bgcolor="#FAE751" valign="bottom">
> <input type="text" name="uid" size=10 style="color:#333399;font-size:9pt;background-color:#FFFFFF;border:1 solid #FF8C29">
> </td>
> <td rowspan="3"><img src="images/login3.gif" width=10 height=80 alt="" border="0"></td>
> </tr>
> <tr>
> <td width="92" align="right" bgcolor="#FAE751" valign="bottom">ºñ¹Ð¹øÈ£ </td>
> <td bgcolor="#FAE751" valign="bottom" width="96">
> <input type="password" name="passwd" size=10 style="color:#333399;font-size:9pt;background-color:#FFFFFF;border:1 solid #FF8C29"></td>
> </tr>
> <tr>
> <td bgcolor="#FAE751" colspan="2" align="right">
> <input type="image" src="images/login7.gif" width=38 height=26 border="0" TARGET="right">
> <a href="member.asp" TARGET="right"><img src="images/login8.gif" width=66 height=26 alt="" border="0"></a></td>
> </tr>
>
> <tr>
> <td><img src="images/login4.gif" width=9 height=8 alt="" border="0"></td>
> <td colspan="2"><img src="images/login5.gif" width=187 height=8 alt="" border="0"></td>
> <td><img src="images/login6.gif" width=10 height=8 alt="" border="0"></td>
> </tr>
> </table>
>
>
>
>
>
>
> <!-------------------¿©±â±îÁö login form ----------------------->
>
>
> </td>
> </tr>
> </table>
> </td>
>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> </tr>
> <tr>
> <td><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> <td background="images/1cross2.gif"><img src="../images/dum.gif" width=1 height=1 alt="" border="0"></td>
> </tr>
> </table>
> <br>
>
> </td>
> </tr>
> </table>
>
> </form>
> </body>
> </html>
>
>
>
>
> [login_next.asp]
> <%
> Response.Buffer = true
>
> uid = Request.Form("uid")
> pass_wd = Request.Form("passwd")
> num = Request.QueryString("num")
>
> 'Response.Write uid &"<br>"
> 'Response.Write pass_wd &"<br>"
> 'Response.Write num &"<br>"
>
>
>
> authority = left(num,1)
>
> If pass_wd="" or uid="" then
> %>
> <script language="javascript">
> <!--
> alert("Ç׸ñÁß ºü¶ß¸° °ÍÀÌ ÀÖ½À´Ï´Ù.");
> history.back();
> //-->
> </script>
> <%
> Response.End
> End if
>
> Conn = Application("DBConn")
> Sql = "SELECT uid, passwd FROM members WHERE uid = '" & uid & "'"
> Set Rs = Server.CreateObject("ADODB.Recordset")
> Rs.open sql, Conn, 1
>
> If Rs.EOF then
> %>
> <script language="javascript">
> <!--
> alert("Á¸ÀçÇÏÁö ¾Ê´Â ȸ¿ø IDÀÔ´Ï´Ù.");
> history.back();
> //-->
> </script>
> <%
> Response.End
> Else
> uid = Rs(0)
> pwd = Rs(1)
>
> If pwd <> pass_wd then
> %>
> <script language="javascript">
> <!--
> alert("ºñ¹Ð¹øÈ£°¡ Ʋ¸³´Ï´Ù.");
> history.back();
> //-->
> </script>
> <%
> Response.End
> End if
> End if
>
> response.cookies("user_id") = uid
>
> Select Case num
> Case "a"
> urlPath = "modify.asp?uid="+uid
> %>
> <script language=javascript>
> opener.parent.right.location.replace("<%=urlPath%>") ;
> self.close();
> </script>
> <%
> Case "b"
> urlPath = "right_member3.asp?uid="+uid
> %>
> <script language=javascript>
> opener.parent.right.location.replace("<%=urlPath%>") ;
> self.close();
> </script>
> <%
> Case "c"
> urlPath = "right_member3.asp?uid="+uid
> %>
> <script language=javascript>
> opener.opener.parent.right.location.replace("<%=urlPath%>") ;
> opener.window.close();
> self.close();
> </script>
> <%
> Case "d"
> urlPath = "../menu9.html"
> %>
> <script language=javascript>
> opener.opener.parent.location.replace("<%=urlPath%>") ;
> opener.window.close();
> self.close();
> </script>
>
> <%
> Case "f"
> urlPath = ""
> %>
> <script language=javascript>
> self.close();
> </script>
>
> <%
> Case Else
> urlPath = "../main.asp"
> End Select
> %>
>
>
> num°ªÀÌ ³Ñ¾î¿ÀÁú ¾Ê³×¿ä.....
> login.asp ¿Í login_next.asp´Â ±âÁ¸¿¡ ÀÖ´ø
> ÆÄÀÏ·Î ÀÚü¿¡¼´Â ½ÇÇà°¡´ÉÇÕ´Ï´Ù.
> ±×·±µ¥ ¿©±â¼ updateÇϱâ À§ÇØ
> Á¢¼ÓÀÚ ¼±ÅûçÇ×À» µÎ±â À§Çؼ ´Ù¸¥ ÆÄÀÏÀ» Ãß°¡Ç޴µ¥ ¿©±â¼ ´Ù¸¥°ÍÀº ´ÙµÇ´Âµ¥ ´ÜÁö ¸µÅ©½ÃÄ×´Ù´Â ÀÌÀ¯·Î °¡µ¿(?)ÀÌ ¾ÈµÇ³×¿ä.
> ¿øÀÎ Á» Àâ¾Æ ÁÖ¼¼¿ä.
>
>
>
>
>
>
>
-----------------------------------------------------------
numÀÇ °ªÀÌ ³Ñ¾î ¿ÀÁö ¾Ê¾Æ¼ ¹®Á¦¶ó¸é ´ç¿¬È÷ ¿øÀÎÀº µÎ°¡ÁöÀÔ´Ï´Ù.
ù¹ø°´Â login.asp¿¡¼ ¾Æ¿¹ óÀ½ºÎÅÍ num °ªÀÌ ³Ñ¾î°¡Áö ¾Ê´Â °æ¿ìÀÔ´Ï´Ù.
login.asp¿¡¼
<% logid = Request.QueryString("num") %>
ÀÌ·¸°Ô ÇÑ ´ÙÀ½¿¡
<form action="login_next.asp?num=<%=logid%>" name="login" method="post">
ÀÌ·¸°Ô Çϼ̴µ¥....
À̶§ num¿¡ °ªÀÌ Á¦´ë·Î µé¾î°¡¼ ³Ñ¾î°¡´ÂÁö È®ÀÎÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
µÎ¹ø°´Â login_next.asp¿¡¼ Á¦´ë·Î °ªÀ» ¹ÞÁö ¸øÇÏ´Â °æ¿ìÀÔ´Ï´Ù.
°£´ÜÈ÷ num = Request("num")
ÀÌ·¸°Ô ÇÑ ´ÙÀ½¿¡ numÀÌ ³Ñ¾î¿À³ª È®ÀÎÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
¿øÀÎÀº ÀÌ 2°¡Áö»ÓÀÔ´Ï´Ù....
ÀÌ°Ô ¾Æ´Ï¶ó¸é ´Ù¸¥µ¥ ¹®Á¦°¡ Àִ°̴ϴÙ...
´Ù½Ã È®ÀÎÇØ º¸¼¼¿ä...
|
|
|
|