Changeset 290


Ignore:
Timestamp:
2007/02/17 23:03:23 (17 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/entry/index.php

    r285 r290  
    204204        } 
    205205        $arrRegist["status"] = "1";             // ²¾²ñ°÷ 
    206         $arrRegist["secret_key"] = $uniqid;     // ²ñ°÷ÅÐÏ¿¥­¡¼ 
    207206    } else { 
     207        // ½ÅÊ£¤·¤Ê¤¤²ñ°÷ÅÐÏ¿¥­¡¼¤òȯ¹Ô¤¹¤ë¡£ 
     208        $count = 1; 
     209        while ($count != 0) { 
     210            $uniqid = sfGetUniqRandomId("r"); 
     211            $count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid)); 
     212        } 
    208213        $arrRegist["status"] = "2";             // Ëܲñ°÷ 
    209214    } 
    210215     
     216    /* 
     217     secret_key¤Ï¡¢¥Æ¡¼¥Ö¥ë¤Ç½ÅÊ£µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¤Î¤Ç¡¢ 
     218     Ëܲñ°÷ÅÐÏ¿¤Ç¤ÏÍøÍѤµ¤ì¤Ê¤¤¤¬¥»¥Ã¥È¤·¤Æ¤ª¤¯¡£ 
     219    */ 
     220    $arrRegist["secret_key"] = $uniqid;     // ²ñ°÷ÅÐÏ¿¥­¡¼ 
    211221    $arrRegist["create_date"] = "now()";    // ºîÀ®Æü 
    212222    $arrRegist["update_date"] = "now()";    // ¹¹¿·Æü 
Note: See TracChangeset for help on using the changeset viewer.