2009/09/18 17:01:31     19937     0   
   [Á¦·Îº¸µå4] mysql 4.0 ÀÌÇÏ¿¡¼­ 4.1 ÀÌ»óÀ¸·Î ¼­¹öÀÌÀüÈÄ ·Î±×ÀÎ ¾ÊµÉ¶§
login_check.php ÆÄÀÏ ¼öÁ¤...

¿øº»¼Ò½º¸¦...
// ȸ¿ø ·Î±×ÀΠüũ
      $result = mysql_query("select * from $member_table where user_id='$user_id' and password=password('$password')") or error(mysql_error());
      $member_data = mysql_fetch_array($result);


´ÙÀ½°ú °°ÀÌ ¼öÁ¤...
// ȸ¿ø ·Î±×ÀΠüũ
      $p_result = mysql_query("select length(password) from $member_table where user_id='$user_id'") or error("password error<br>".mysql_error());
      $p_data = mysql_fetch_row($p_result);
      if($p_data[0] == 41)
              $result = mysql_query("select * from $member_table where user_id='$user_id' and password=password('$password')") or error(mysql_error());
      else {
              $m_result = mysql_query("select * from $member_table where user_id='$user_id' and password=old_password('$password')") or error(mysql_error());
              $m_data = mysql_fetch_array($m_result);
              if($m_data[no]) {
                      @mysql_query("update $member_table set password=password('$password') where no='$m_data[no]'") or error("new password update error<br>".mysql_error());
                      $result = mysql_query("select * from $member_table where user_id='$user_id' and password=password('$password')") or error(mysql_error());
              }
              else Error("·Î±×ÀÎÀ» ½ÇÆÐÇÏ¿´½À´Ï´Ù");
      }
      $member_data = mysql_fetch_array($result);


À§¿Í°°ÀÌ ÀÛ¾÷Çϱâ Àü¿¡ zetyx_member_tableÀÇ password Ä÷³±æÀ̸¦ 20¿¡¼­ 41·Î Á¶Á¤
, 2009/09/18 17:01:46    
ÄÚ¸àÆ®¸¦ ÀÛ¼ºÇϽøé 2 Æ÷ÀÎÆ®°¡ Áö±ÞµË´Ï´Ù.

       

296 ÇϷ縦 6½Ã°£À¸·Î 4°³·Î ³ª´©¾î °¢°¢ÀÇ ½Ã°£´ë¿¡... [1] Ã÷ 06/22 16036 09/23(19:34)
295 ¸¶¿ì½º¿¡¼­ Á¶±ÝÇÑ ³ªºñ°¡ Ä¿Áö¸é¼­ ¿Ã¶ó°¡´Â ½º... [6] Ã÷ 06/22 15531 01/10(20:28)
294 ¸·°­ÇÑ ±â´ÉÀÇ ¾ËÅø¹Ù¸¦ ¼Ò°³ÇÕ´Ï´Ù. [1] °ø¼±»ý 06/18 12379 07/13(17:47)
293 Á¦·Îº¸µå4.1À» MySQL 5.0 ¹öÁ¯¿¡¼­ ¼³Ä¡Çϱâ [2] 05/26 20873 03/28(11:39)
292 Á¦·Îº¸µå4 ¼­¹öÀÌÀüÈÄ ·Î±×ÀκҴɽà ÇØ°áÃ¥ [2] 05/23 15235 05/29(11:58)
291 ssh Á¢¼Ó À¯Áö ¹æ¹ý [3] ²Ü¹Ú½º 04/28 16124 09/23(19:34)
290 °°Àº Æú´õ ¾È¿¡ ÀÖ´Â Æú´õ³ª ÆÄÀÏ Ã£¾Æ ¿Ã¸®±â(À©... ²Ü¹Ú½º 03/24 12891
289 CD³ª DVD¿¡ ÀúÀåÇÑ µ¥ÀÌÅÍ ¸ñ·ÏÀ» ÅؽºÆ®ÆÄÀÏ·Î ... [3] ²Ü¹Ú½º 02/18 14958 01/20(01:06)
288 À¯¿ëÇÑ »çÀÌÆ® Çϳª ¼Ò°³(½ºÆÔÀüÈ­ È®ÀÎÇϴ ȨÆä... Âî´Ï±º 02/15 15590
287 ´ëÇѹα¹À» ´ëÇ¥ÇÏ´Â ¸Å½ÅÁ®µé [2] Rickyman 02/04 13373 06/02(16:20)
286 ÀÎÅÍ³Ý ¹æÈ­º®¿¡ ´ëÇؼ­... [1] Rickyman 02/04 12925 02/29(13:04)
285 ¾Ñ! ¹ÙÅÁÈ­¸éÀÌ ¾Èº¸¿© [1] Rickyman 02/04 12521 06/02(16:21)
284 ÀÎÅÍ³Ý ÀͽºÇ÷η¯¸¦ ´ëüÇÏ´Â ÇÁ·Î±×·¥ Rickyman 02/04 12517
283 ÀÎÅͳÝÇÏ´Ù ÀÀ´ä¾øÀ½¶¸À»¶§ ´ëó¹æ¹ý [1] Á¿ì¸í 02/03 13075 06/02(16:21)
282 ´«ÀÌ ÁÁ¾ÆÁö°Ô Çϴ¹ý [6] Á¿ì¸í 01/13 13827 01/20(01:06)
FIRST123456712LAST